Class FlusserMoments

java.lang.Object
imagingbook.common.geometry.moments.FlusserMoments

public class FlusserMoments extends Object

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 Details

  • Method Details

    • getComplexMoment

      public Complex getComplexMoment(int p, int q)
      Returns the scale-normalized complex moment of order (p,q) for the 2D point set associated with this FlusserMoments instance.
      Parameters:
      p - order index p
      q - order index q
      Returns:
      the complex moment of order (p,q)
    • getScaleNormalizedMoment

      public Complex getScaleNormalizedMoment(int p, int q)
      Returns the scale-normalized complex moment of order (p,q) for the specified set of 2D points.
      Parameters:
      p - order index p
      q - order index q
      Returns:
      the complex moment of order (p,q)
    • getInvariantMoments

      public double[] getInvariantMoments()
      Calculates and returns a vector of 11 invariant moments for the specified set of 2D points.
      Returns:
      the vector of invariant moments