@Reference(type=Inproceedings, author={"Jason M. Saragih","Simon Lucey","Jeffrey F. Cohn"}, title="Face alignment through subspace constrained mean-shifts", year="2009", booktitle="IEEE 12th International Conference on Computer Vision, ICCV 2009, Kyoto, Japan, September 27 - October 4, 2009", pages={"1034","1041"}, publisher="IEEE", customData={"doi","http://dx.doi.org/10.1109/ICCV.2009.5459377","researchr","http://researchr.org/publication/SaragihLC09","cites","0","citedby","0"}) public class CLMDetectedFace extends DetectedFace
bounds, confidence, facePatch| Modifier | Constructor and Description |
|---|---|
protected |
CLMDetectedFace() |
|
CLMDetectedFace(MultiTracker.TrackedFace face,
FImage image)
Construct a
CLMDetectedFace by copying the state from a
MultiTracker.TrackedFace |
|
CLMDetectedFace(Rectangle bounds,
Jama.Matrix shape,
Jama.Matrix poseParameters,
Jama.Matrix shapeParameters,
Jama.Matrix visibility,
FImage fullImage)
Construct with the given bounds, shape and pose parameters and detection
image.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
binaryHeader()
Header for binary input.
|
MultiTracker.TrackedFace |
convert()
Helper method that converts this
CLMDetectedFace into
a MultiTracker.TrackedFace. |
static List<CLMDetectedFace> |
convert(List<MultiTracker.TrackedFace> faces,
FImage image)
Helper method to convert a list of
MultiTracker.TrackedFaces to
CLMDetectedFaces. |
static List<CLMDetectedFace> |
convert(List<MultiTracker.TrackedFace> faces,
MBFImage image)
Helper method to convert a list of
MultiTracker.TrackedFaces to
CLMDetectedFaces. |
double |
getPitch()
Returns the pitch of the model (that is the look up/down, noddy head movement).
|
DoubleFV |
getPoseParameters()
Get the parameters describing the pose of the face.
|
DoubleFV |
getPoseShapeParameters()
Get a vector describing the pose (pitch, yaw and roll only) and shape of
the model.
|
double |
getRoll()
Returns the roll of the model (that is the spinning, standy on the head movement)
|
double |
getScale()
Returns the scale (size) of the face
|
Jama.Matrix |
getShapeMatrix()
Get the matrix of points describing the model.
|
DoubleFV |
getShapeParameters()
Get the parameters describing the shape model (i.e.
|
double |
getTranslationX()
Returns the x-translation in the model
|
double |
getTranslationY()
Returns the y-translation in the model
|
Jama.Matrix |
getVisibility()
Get the visibility matrix
|
double |
getYaw()
Returns the yaw of the face (that is the side-to-side, shakey head movement).
|
void |
readBinary(DataInput in)
Read internal state from in.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
getBounds, getConfidence, getFacePatch, getShape, setBounds, setConfidence, setFacePatchprotected CLMDetectedFace()
public CLMDetectedFace(MultiTracker.TrackedFace face, FImage image)
CLMDetectedFace by copying the state from a
MultiTracker.TrackedFaceface - the MultiTracker.TrackedFaceimage - the image in which the tracked face was detectedpublic CLMDetectedFace(Rectangle bounds, Jama.Matrix shape, Jama.Matrix poseParameters, Jama.Matrix shapeParameters, Jama.Matrix visibility, FImage fullImage)
bounds - shape - poseParameters - shapeParameters - visibility - fullImage - public static List<CLMDetectedFace> convert(List<MultiTracker.TrackedFace> faces, MBFImage image)
MultiTracker.TrackedFaces to
CLMDetectedFaces.faces - the MultiTracker.TrackedFaces.image - the image the MultiTracker.TrackedFaces came from.CLMDetectedFacespublic static List<CLMDetectedFace> convert(List<MultiTracker.TrackedFace> faces, FImage image)
MultiTracker.TrackedFaces to
CLMDetectedFaces.faces - the MultiTracker.TrackedFaces.image - the image the MultiTracker.TrackedFaces came from.CLMDetectedFacespublic MultiTracker.TrackedFace convert()
CLMDetectedFace into
a MultiTracker.TrackedFace.MultiTracker.TrackedFacepublic void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinarywriteBinary in class DetectedFaceout - sink to write toIOException - an error writing to outpublic byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarybinaryHeader in class DetectedFacepublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryreadBinary in class DetectedFacein - source to read from.IOException - an error reading inputpublic double getScale()
public double getPitch()
public double getYaw()
public double getRoll()
public double getTranslationX()
public double getTranslationY()
public DoubleFV getPoseParameters()
public DoubleFV getShapeParameters()
public DoubleFV getPoseShapeParameters()
public Jama.Matrix getShapeMatrix()
DetectedFace.getFacePatch().public Jama.Matrix getVisibility()