Catalano.Imaging.Tools
Class HuMoments
- java.lang.Object
-
- Catalano.Imaging.Tools.HuMoments
-
public class HuMoments extends java.lang.ObjectHu 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.booleanisNormalize()Check if the moments are normalized.voidsetNormalize(boolean normalize)Normalize the moments.
-
-
-
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