java.lang.Object
imagingbook.common.geometry.moments.FlusserMoments
Naive implementation of Flusser's complex invariant moments [1]. See Sec. 8.6.5 (Eq. 8.51 - 8.54) of [2] for additional details.
[1] J. Flusser, B. Zitova, and T. Suk. "Moments and Moment Invariants in Pattern Recognition". John Wiley and Sons
(2009).
[2] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer
(2022).
- Version:
- 2022/12/28
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComplexMoment
(int p, int q) Returns the scale-normalized complex moment of order (p,q) for the 2D point set associated with thisFlusserMoments
instance.double[]
Calculates and returns a vector of 11 invariant moments for the specified set of 2D points.getScaleNormalizedMoment
(int p, int q) Returns the scale-normalized complex moment of order (p,q) for the specified set of 2D points.
-
Constructor Details
-
FlusserMoments
-
-
Method Details
-
getComplexMoment
Returns the scale-normalized complex moment of order (p,q) for the 2D point set associated with thisFlusserMoments
instance.- Parameters:
p
- order index pq
- order index q- Returns:
- the complex moment of order (p,q)
-
getScaleNormalizedMoment
Returns the scale-normalized complex moment of order (p,q) for the specified set of 2D points.- Parameters:
p
- order index pq
- order index q- Returns:
- the complex moment of order (p,q)
-
getInvariantMoments
Calculates and returns a vector of 11 invariant moments for the specified set of 2D points.- Returns:
- the vector of invariant moments
-