public class RotateScaleAligner extends Object implements FaceAligner<KEDetectedFace>
| Constructor and Description | 
|---|
RotateScaleAligner()
Default constructor with no mask. 
 | 
RotateScaleAligner(FImage mask)
Construct with a mask (in the canonical frame) to apply after alignment. 
 | 
RotateScaleAligner(int targetSize)
Default constructor with no mask. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
FImage | 
align(KEDetectedFace descriptor)
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. 
 | 
void | 
writeBinary(DataOutput out)
Write the content of this as binary to out. 
 | 
public RotateScaleAligner()
public RotateScaleAligner(int targetSize)
targetSize - target aligned image sizepublic RotateScaleAligner(FImage mask)
mask - The mask.public FImage align(KEDetectedFace descriptor)
FaceAligneralign in interface FaceAligner<KEDetectedFace>descriptor - the face to alignpublic FImage getMask()
FaceAlignergetMask in interface FaceAligner<KEDetectedFace>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