public class AffineInvariantMoments extends Object implements ConnectedComponentProcessor, FeatureVectorProvider<DoubleFV>
Modifier and Type | Field and Description |
---|---|
double |
I1
The first affine-invariant moment
|
double |
I2
The second affine-invariant moment
|
double |
I3
The third affine-invariant moment
|
double |
I4
The forth affine-invariant moment
|
Constructor and Description |
---|
AffineInvariantMoments() |
Modifier and Type | Method and Description |
---|---|
DoubleFV |
getFeatureVector()
Get the FeatureVector associated with this object.
|
double[] |
getFeatureVectorArray()
Get all the values of the descriptor as an array.
|
void |
process(ConnectedComponent cc)
Perform an operation on the given
ConnectedComponent . |
String |
toString() |
public double I1
public double I2
public double I3
public double I4
public AffineInvariantMoments()
public void process(ConnectedComponent cc)
ConnectedComponentProcessor
ConnectedComponent
.process
in interface ConnectedComponentProcessor
cc
- The ConnectedComponent
to process.public double[] getFeatureVectorArray()
public DoubleFV getFeatureVector()
FeatureVectorProvider
getFeatureVector
in interface FeatureVectorProvider<DoubleFV>