Documentation of 'Catalano.Imaging.Tools.HuMoments' Java class
HuMoments
Catalano.Imaging.Tools

Class HuMoments



  • public class HuMoments
    extends java.lang.Object
    Hu Moments. Compute 7 moments from hu, + 1 the last was proposed by J. Flusser and T. Suk. Compute RST invariants.
    • Constructor Summary

      Constructors 
      Constructor and Description
      HuMoments()
      Initialize a new instance of the HuMoments class.
      HuMoments(boolean normalize)
      Initialize a new instance of the HuMoments class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double[] Compute(FastBitmap fastBitmap)
      Compute Hu moments.
      boolean isNormalize()
      Check if the moments are normalized.
      void setNormalize(boolean normalize)
      Normalize the moments.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HuMoments

        public HuMoments()
        Initialize a new instance of the HuMoments class.
      • HuMoments

        public HuMoments(boolean normalize)
        Initialize a new instance of the HuMoments class. Normalize by sign(x) * log10(x).
        Parameters:
        normalize - Normalize.
    • Method Detail

      • isNormalize

        public boolean isNormalize()
        Check if the moments are normalized.
        Returns:
        Check if the moments are normalized.
      • setNormalize

        public void setNormalize(boolean normalize)
        Normalize the moments.
        Parameters:
        normalize - True if needs to normalize the moments, otherwise return false.
      • Compute

        public double[] Compute(FastBitmap fastBitmap)
        Compute Hu moments.
        Parameters:
        fastBitmap - Image.
        Returns:
        8 Moments.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.