Class Moment

    • Field Detail

      • m_P

        protected int m_P
        exponent for x.
      • m_Q

        protected int m_Q
        exponent for y.
    • Constructor Detail

      • Moment

        public Moment()
    • Method Detail

      • setP

        public void setP​(int value)
        Sets the exponent for x.
        Parameters:
        value - the exponent
      • getP

        public int getP()
        Returns the exponent for x.
        Returns:
        the exponent
      • PTipText

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

        public void setQ​(int value)
        Sets the exponent for y.
        Parameters:
        value - the exponent
      • getQ

        public int getQ()
        Returns the exponent for y.
        Returns:
        the exponent
      • QTipText

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

        protected double doCalculate​(boolean[][] img)
        Performs the actual calculation.
        Specified by:
        doCalculate in class AbstractMoment<BufferedImageContainer>
        Parameters:
        img - the image to process
        Returns:
        the calculated moment