public class LocalLBPHistogram extends Object implements FacialFeature, FeatureVectorProvider<FloatFV>
FacialFeature built from decomposing the face image into
(non-overlapping) blocks and building histograms of the
ExtendedLocalBinaryPatterns for each block and then concatenating to
form the final feature.| Modifier and Type | Class and Description |
|---|---|
static class |
LocalLBPHistogram.Extractor<T extends DetectedFace>
A
FacialFeatureExtractor for building LocalLBPHistograms. |
| Constructor and Description |
|---|
LocalLBPHistogram() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
binaryHeader()
Header for binary input.
|
FloatFV |
getFeatureVector()
Get the FeatureVector associated with this object.
|
protected void |
initialise(FImage face,
FImage mask,
int blocksX,
int blocksY,
int samples,
int radius) |
void |
readBinary(DataInput in)
Read internal state from in.
|
protected void |
updateFeatureVector() |
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
public LocalLBPHistogram()
protected void initialise(FImage face, FImage mask, int blocksX, int blocksY, int samples, int radius)
protected void updateFeatureVector()
public byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarypublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryin - source to read from.IOException - an error reading inputpublic void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinaryout - sink to write toIOException - an error writing to outpublic FloatFV getFeatureVector()
FeatureVectorProvidergetFeatureVector in interface FeatureVectorProvider<FloatFV>