Class CompareAnnotationWithPrediction

    • Field Detail

      • m_Labels

        protected BaseString[] m_Labels
        the labels to analyze (all if none specified).
      • m_BackgroundColor

        protected Color m_BackgroundColor
        the background color to use.
      • m_ColorOverlap

        protected Color m_ColorOverlap
        the color for correct overlaps.
      • m_ColorMissed

        protected Color m_ColorMissed
        the color for missed annotations.
      • m_ColorAdditional

        protected Color m_ColorAdditional
        the color for additional predictions.
    • Constructor Detail

      • CompareAnnotationWithPrediction

        public CompareAnnotationWithPrediction()
    • Method Detail

      • setLabels

        public void setLabels​(BaseString[] value)
        Sets the labels to generate the images for instead of all.
        Parameters:
        value - the labels
      • getLabels

        public BaseString[] getLabels()
        Returns the labels to generate the images for instead of all.
        Returns:
        the labels
      • labelsTipText

        public String labelsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setBackgroundColor

        public void setBackgroundColor​(Color value)
        Sets the color to use as background.
        Parameters:
        value - the background color
      • getBackgroundColor

        public Color getBackgroundColor()
        Returns the color to use as background.
        Returns:
        the background color
      • backgroundColorTipText

        public String backgroundColorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setColorOverlap

        public void setColorOverlap​(Color value)
        Sets the color for correct overlaps.
        Parameters:
        value - the color
      • getColorOverlap

        public Color getColorOverlap()
        Returns the color for correct overlaps.
        Returns:
        the color
      • colorOverlapTipText

        public String colorOverlapTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setColorMissed

        public void setColorMissed​(Color value)
        Sets the color for missed annotations.
        Parameters:
        value - the color
      • getColorMissed

        public Color getColorMissed()
        Returns the color for missed annotations.
        Returns:
        the color
      • colorMissedTipText

        public String colorMissedTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setColorAdditional

        public void setColorAdditional​(Color value)
        Sets the color for predictions that had no annotations.
        Parameters:
        value - the color
      • getColorAdditional

        public Color getColorAdditional()
        Returns the color for predictions that had no annotations.
        Returns:
        the color
      • colorAdditionalTipText

        public String colorAdditionalTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • generate

        protected BufferedImageContainer generate​(int width,
                                                  int height,
                                                  int[] predPixels,
                                                  int[] annoPixels)
        Compares the two pixel arrays and generates an images from it.
        Parameters:
        predPixels - the prediction pixels
        annoPixels - the annotation pixels
        Returns:
        the statistics