public static class FacePatchFeature.DetectedFacePart extends FacialKeypoint implements ReadWriteableBinary
FacialKeypoint
with an associated featureFacialKeypoint.FacialKeypointType
position, 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, updatePosition
public DetectedFacePart()
public DetectedFacePart(FacialKeypoint.FacialKeypointType type, Point2d position)
type
- the type of keypointposition
- the position of the keypointpublic void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
readBinary
in class FacialKeypoint
in
- source to read from.IOException
- an error reading inputpublic byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
binaryHeader
in class FacialKeypoint
public void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
writeBinary
in class FacialKeypoint
out
- sink to write toIOException
- an error writing to out