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.
        value - the color
      • backgroundValueTipText

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

        public Color getBackgroundValue()
        Returns the background color.
        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
        img - the image
        background - the background color
        the boolean matrix representing the image