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
ExtendedLocalBinaryPattern
s 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 LocalLBPHistogram s. |
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()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
public void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
in
- source to read from.IOException
- an error reading inputpublic void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
out
- sink to write toIOException
- an error writing to outpublic FloatFV getFeatureVector()
FeatureVectorProvider
getFeatureVector
in interface FeatureVectorProvider<FloatFV>