public static class FacePatchFeature.DetectedFacePart extends FacialKeypoint implements ReadWriteableBinary
FacialKeypoint with an associated featureFacialKeypoint.FacialKeypointTypeposition, type| Constructor and Description |
|---|
DetectedFacePart()
Default constructor
|
DetectedFacePart(FacialKeypoint.FacialKeypointType type,
Point2d position)
Construct with the given parameters
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
binaryHeader()
Header for binary input.
|
FImage |
getImage() |
void |
readBinary(DataInput in)
Read internal state from in.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
getKeypoint, updateImagePosition, updatePositionpublic DetectedFacePart()
public DetectedFacePart(FacialKeypoint.FacialKeypointType type, Point2d position)
type - the type of keypointposition - the position of the keypointpublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryreadBinary in class FacialKeypointin - source to read from.IOException - an error reading inputpublic byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarybinaryHeader in class FacialKeypointpublic void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinarywriteBinary in class FacialKeypointout - sink to write toIOException - an error writing to out