Class AbstractBufferedImageMoment

    • Field Detail

      • m_BackgroundValue

        protected Color m_BackgroundValue
        the value of the background colour.
    • Constructor Detail

      • AbstractBufferedImageMoment

        public AbstractBufferedImageMoment()
    • Method Detail

      • setBackgroundValue

        public void setBackgroundValue​(Color value)
        Sets the background color.
        Parameters:
        value - the color
      • backgroundValueTipText

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

        public Color getBackgroundValue()
        Returns the background color.
        Returns:
        the color
      • imageToMatrix

        public static boolean[][] imageToMatrix​(BufferedImageContainer img,
                                                Color background)
        Takes an image of type T and returns a boolean matrix that can be used for moments
        Parameters:
        img - the image
        background - the background color
        Returns:
        the boolean matrix representing the image