Class MserData

java.lang.Object
imagingbook.common.mser.MserData

public class MserData extends Object
Defines a container holding the data for calculating MSER properties. Instances of this type are attached to Component objects during MSER calculation in MserDetector.
Version:
2022/11/19
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    True iff the associated component is a MSER.
    protected boolean
    Component stability status
    protected long[]
    Component coordinate ordinary moments (m10, m01, m20, m02, m11)
    protected float
    Component size variation (wrt.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the center point for the associated component.
    double[]
    Returns the vector of central moments (mu10, mu01, mu20, mu02, mu11) for the pixel coordinates contained in the associated component.
    double[][]
    Returns the covariance matrix for the pixel coordinates contained in the associated component.
    Returns the equivalent ellipse for the associated component.
    protected void
    Calculates the central moments and the equivalent ellipse for the associated component.
    boolean
    Returns true iff the associated component is a MSER.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • isMserP

      protected boolean isMserP
      True iff the associated component is a MSER.
    • variation

      protected float variation
      Component size variation (wrt. to the size at delta levels higher), undefined = -1
    • isStable

      protected boolean isStable
      Component stability status
    • stats

      protected long[] stats
      Component coordinate ordinary moments (m10, m01, m20, m02, m11)
  • Constructor Details

  • Method Details

    • isMser

      public boolean isMser()
      Returns true iff the associated component is a MSER.
      Returns:
      true iff a MSER
    • getCentralMoments

      public double[] getCentralMoments()
      Returns the vector of central moments (mu10, mu01, mu20, mu02, mu11) for the pixel coordinates contained in the associated component.
      Returns:
      the vector of central moments
    • getCovarianceMatrix

      public double[][] getCovarianceMatrix()
      Returns the covariance matrix for the pixel coordinates contained in the associated component.
      Returns:
      the covariance matrix
    • getCenter

      Returns the center point for the associated component.
      Returns:
      the center point
    • getEllipse

      Returns the equivalent ellipse for the associated component.
      Returns:
      the equivalent ellipse
    • init

      protected void init()
      Calculates the central moments and the equivalent ellipse for the associated component.
    • toString

      public String toString()
      Overrides:
      toString in class Object