public class CLMDetectedFaceRenderer extends Object implements DetectedFaceRenderer<CLMDetectedFace>
CLMDetectedFace
sConstructor and Description |
---|
CLMDetectedFaceRenderer()
Loads the triangles and connections used to render
|
Modifier and Type | Method and Description |
---|---|
void |
drawDetectedFace(MBFImage image,
int thickness,
CLMDetectedFace f) |
void |
drawDetectedFace(MBFImage image,
MultiTracker.TrackedFace f)
Helper function, does the same as
drawDetectedFace(MBFImage,int, CLMDetectedFace) but with the
insides of a MultiTracker.TrackedFace . |
static void |
render(MBFImage mbf,
int thickness,
CLMDetectedFace face)
Static helper function for quick and dirty rendering
|
public CLMDetectedFaceRenderer()
public void drawDetectedFace(MBFImage image, int thickness, CLMDetectedFace f)
drawDetectedFace
in interface DetectedFaceRenderer<CLMDetectedFace>
image
- the image to draw ontothickness
- the line thicknessf
- the detected face to drawpublic void drawDetectedFace(MBFImage image, MultiTracker.TrackedFace f)
drawDetectedFace(MBFImage,int, CLMDetectedFace)
but with the
insides of a MultiTracker.TrackedFace
.image
- f
- public static void render(MBFImage mbf, int thickness, CLMDetectedFace face)
mbf
- image to draw on tothickness
- line thicknessface
- face to draw