|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.haar.FeatureFinder
public class FeatureFinder
Experimental method for finding features, I suppose
| Constructor Summary | |
|---|---|
FeatureFinder()
|
|
| Method Summary | |
|---|---|
java.awt.geom.Point2D.Double[] |
eyeRect(Face face,
float ratio,
boolean left,
int baseWidth,
int baseHeight)
Estimates a search box for the eyes given the face rectangle |
java.awt.geom.Point2D.Double[] |
findFeatures(java.awt.image.BufferedImage image,
java.lang.String[] cascades)
Find the feature in the image using the cascades named |
static Face |
getBiggest(java.util.List<Face> faces)
Get the biggest from the list |
java.util.List<Face> |
haarDetect(BufferedImg img,
HaarReader haar,
int xstart,
int ystart,
int width,
int height)
Haar detector |
static void |
main(java.lang.String[] args)
Main method for testing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureFinder()
| Method Detail |
|---|
public java.awt.geom.Point2D.Double[] findFeatures(java.awt.image.BufferedImage image,
java.lang.String[] cascades)
image - the image to searchcascades - the cascades to use {face, lefteye, righteye}
public java.util.List<Face> haarDetect(BufferedImg img,
HaarReader haar,
int xstart,
int ystart,
int width,
int height)
img - the image to searchhaar - the haar detectorxstart - the x start of the search rectangleystart - the y start of the search rectanglewidth - the width of the search rectangleheight - the height of the search rectangle
public static Face getBiggest(java.util.List<Face> faces)
faces - the list of object locations / sizes
public java.awt.geom.Point2D.Double[] eyeRect(Face face,
float ratio,
boolean left,
int baseWidth,
int baseHeight)
face - the detected face boxratio - seems to indicate how far down the face the eye box should start (as a fraction)left - if true left eye, otherwise right eyebaseWidth - the basic width of the face rectange (ignores the scale)baseHeight - the basic height of the face rectange (ignores the scale)
public static void main(java.lang.String[] args)
throws java.io.IOException
args - the program args
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||