java.lang.Object
imagingbook.common.mser.MserData
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
FieldsModifier and TypeFieldDescriptionprotected booleanTrue iff the associated component is a MSER.protected booleanComponent stability statusprotected long[]Component coordinate ordinary moments (m10, m01, m20, m02, m11)protected floatComponent size variation (wrt. to the size at delta levels higher), undefined = -1 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 voidinit()Calculates the central moments and the equivalent ellipse for the associated component.booleanisMser()Returns true iff the associated component is a MSER.toString()
-
Field Details
-
isMserP
True iff the associated component is a MSER. -
variation
Component size variation (wrt. to the size at delta levels higher), undefined = -1 -
isStable
Component stability status -
stats
Component coordinate ordinary moments (m10, m01, m20, m02, m11)
-
-
Constructor Details
-
MserData
Constructor.- Parameters:
c- a reference to the associatedComponent
-
-
Method Details
-
isMser
Returns true iff the associated component is a MSER.- Returns:
- true iff a MSER
-
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
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
Calculates the central moments and the equivalent ellipse for the associated component. -
toString
-