T
- Type of DetectedFace
public class IdentityAligner<T extends DetectedFace> extends Object implements FaceAligner<T>
Constructor and Description |
---|
IdentityAligner() |
Modifier and Type | Method and Description |
---|---|
FImage |
align(T face)
For the provided face detection, return an aligned version of the face.
|
byte[] |
binaryHeader()
Header for binary input.
|
FImage |
getMask()
Return a mask image for aligned faces.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
String |
toString() |
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
public IdentityAligner()
public FImage align(T face)
FaceAligner
align
in interface FaceAligner<T extends DetectedFace>
face
- the face to alignpublic FImage getMask()
FaceAligner
getMask
in interface FaceAligner<T extends DetectedFace>
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 out