@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.TrackedFace s to
CLMDetectedFace s. |
static List<CLMDetectedFace> |
convert(List<MultiTracker.TrackedFace> faces,
MBFImage image)
Helper method to convert a list of
MultiTracker.TrackedFace s to
CLMDetectedFace s. |
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, setFacePatch
protected CLMDetectedFace()
public CLMDetectedFace(MultiTracker.TrackedFace face, FImage image)
CLMDetectedFace
by copying the state from a
MultiTracker.TrackedFace
face
- the MultiTracker.TrackedFace
image
- 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.TrackedFace
s to
CLMDetectedFace
s.faces
- the MultiTracker.TrackedFace
s.image
- the image the MultiTracker.TrackedFace
s came from.CLMDetectedFace
spublic static List<CLMDetectedFace> convert(List<MultiTracker.TrackedFace> faces, FImage image)
MultiTracker.TrackedFace
s to
CLMDetectedFace
s.faces
- the MultiTracker.TrackedFace
s.image
- the image the MultiTracker.TrackedFace
s came from.CLMDetectedFace
spublic MultiTracker.TrackedFace convert()
CLMDetectedFace
into
a MultiTracker.TrackedFace
.MultiTracker.TrackedFace
public void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
writeBinary
in class DetectedFace
out
- sink to write toIOException
- an error writing to outpublic byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
binaryHeader
in class DetectedFace
public void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
readBinary
in class DetectedFace
in
- 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()