Class AbstractComparisonPanel

    • Field Detail

      • m_PanelLabels

        protected JPanel m_PanelLabels
        the panel with the labels.
      • m_ButtonGroup

        protected ButtonGroup m_ButtonGroup
        the button group.
      • m_LastLabel

        protected String m_LastLabel
        the last selected label.
      • m_AnnotationsPrefix

        protected String m_AnnotationsPrefix
        the annotations object prefix.
      • m_PredictionsPrefix

        protected String m_PredictionsPrefix
        the predictions object prefix.
    • Constructor Detail

      • AbstractComparisonPanel

        public AbstractComparisonPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        For initializing the GUI.
        Overrides:
        initGUI in class BasePanel
      • setAnnotationsPrefix

        public void setAnnotationsPrefix​(String value)
        Sets the object prefix to use for the annotations.
        Parameters:
        value - the object prefix
      • setPredictionsPrefix

        public void setPredictionsPrefix​(String value)
        Sets the object prefix to use for the predictions.
        Parameters:
        value - the object prefix
      • filterObjects

        protected Report filterObjects​(String label,
                                       LocatedObjects objects,
                                       String suffix,
                                       String prefix)
        Filters the objects using the specified label and returns the newly generated report.
        Parameters:
        label - the label to restrict display to, empty/null for all
        objects - the objects to filter
        suffix - the suffix in the meta-data that contains the label
        prefix - the prefix to use for the report
        Returns:
        the filtered report
      • filterObjects

        protected abstract void filterObjects​(String label)
        Filters the objects using the specified label and updates the GUI.
        Parameters:
        label - the label to restrict display to, empty/null for all
      • updateButtons

        protected void updateButtons​(List<String> labels)
        Updates the panel with the buttons.
        Parameters:
        labels - the labels to display
      • clearPanel

        public abstract void clearPanel()
        Clears the content of the panel.
      • display

        public abstract void display​(AbstractImageContainer cont,
                                     List<String> labels,
                                     Report repAnn,
                                     LocatedObjects objAnn,
                                     Report repPred,
                                     LocatedObjects objPred)
        Displays the new image.
        Parameters:
        cont - the image to display
        labels - the object labels
        repAnn - the report with the annotations (ground truth)
        objAnn - the object locations (ground truth from report)
        repPred - the report with the predictions
        objPred - the object locations (predictions)