protected class ANHDFFeatureExtractor.Slice
extends java.lang.Object
Constructor and Description |
---|
ANHDFFeatureExtractor.Slice(int segNum)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addConnectionFeatures(java.util.List<java.lang.Double> feat,
int j,
ANHDFFeatureExtractor.Slice lastSlice)
Add connection features for segment j given the last slice
|
double |
getCenter() |
double |
getCenter(int idx) |
double |
getLength() |
double |
getLength(int idx) |
boolean |
isEmpty()
Is this slice empty?
|
boolean |
isEmpty(int idx)
Is the segment at the given position empty?
|
void |
load(org.opencv.core.Mat col)
Transforms the given column into a representation of segments as
needed for feature calculation
|
public ANHDFFeatureExtractor.Slice(int segNum)
segNum
- number of segmentspublic boolean isEmpty()
public boolean isEmpty(int idx)
public double getCenter(int idx)
public double getCenter()
public double getLength(int idx)
public double getLength()
public void load(org.opencv.core.Mat col)
col
- Matrix with raw pixel valuespublic void addConnectionFeatures(java.util.List<java.lang.Double> feat, int j, ANHDFFeatureExtractor.Slice lastSlice)
feat
- feature accumulator (exactly 2 elements will be added)j
- segment indexlastSlice
- last slice