public class HuMoments extends Object implements ConnectedComponentProcessor, FeatureVectorProvider<DoubleFV>
Modifier and Type | Field and Description |
---|---|
double |
h1
The first Hu moment
|
double |
h2
The second Hu moment
|
double |
h3
The third Hu moment
|
double |
h4
The forth Hu moment
|
double |
h5
The fifth Hu moment
|
double |
h6
The sixth Hu moment
|
double |
h7
The seventh Hu moment
|
Constructor and Description |
---|
HuMoments() |
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 h1
public double h2
public double h3
public double h4
public double h5
public double h6
public double h7
public HuMoments()
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>