public class FaceImageFeature extends Object implements FacialFeature, FeatureVectorProvider<FloatFV>
FacialFeature
that is just the pixel values
of a (possibly aligned) face detection.Modifier and Type | Class and Description |
---|---|
static class |
FaceImageFeature.Extractor<T extends DetectedFace>
A
FacialFeatureExtractor for producing FaceImageFeature s. |
Constructor and Description |
---|
FaceImageFeature(FloatFV feature)
Construct with the given feature
|
Modifier and Type | Method and Description |
---|---|
byte[] |
binaryHeader()
Header for binary input.
|
FloatFV |
getFeatureVector()
Get the FeatureVector associated with this object.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
public FaceImageFeature(FloatFV feature)
feature
- public void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
in
- source to read from.IOException
- an error reading inputpublic byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
public 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>