public class FacePatchFeature extends Object implements FacialFeature, FeatureVectorProvider<FloatFV>
FacialFeature that is built by concatenating each of the normalised
facial part patches from a detected face.| Modifier and Type | Class and Description |
|---|---|
static class |
FacePatchFeature.DetectedFacePart
A
FacialKeypoint with an associated feature |
static class |
FacePatchFeature.Extractor
A
FacialFeatureExtractor for producing FacialFeatures |
| Modifier and Type | Field and Description |
|---|---|
protected List<FacePatchFeature.DetectedFacePart> |
faceParts |
protected FloatFV |
featureVector |
protected int |
radius
The radius of the descriptor samples about each point
|
protected float |
scl
The scale of the descriptor samples about each point
|
| Constructor and Description |
|---|
FacePatchFeature()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
binaryHeader()
Header for binary input.
|
protected FloatFV |
createFeatureVector() |
protected void |
extractFeatures(KEDetectedFace face) |
FloatFV |
getFeatureVector()
Get the FeatureVector associated with this object.
|
protected void |
initialise(KEDetectedFace face) |
void |
readBinary(DataInput in)
Read internal state from in.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
protected FloatFV featureVector
protected int radius
protected float scl
protected List<FacePatchFeature.DetectedFacePart> faceParts
public FacePatchFeature()
protected void initialise(KEDetectedFace face)
protected FloatFV createFeatureVector()
protected void extractFeatures(KEDetectedFace face)
public FloatFV getFeatureVector()
FeatureVectorProvidergetFeatureVector in interface FeatureVectorProvider<FloatFV>public void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryin - source to read from.IOException - an error reading inputpublic byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarypublic void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinaryout - sink to write toIOException - an error writing to out