Facemorph.haar
Class Tree
java.lang.Object
Facemorph.haar.Tree
public class Tree
- extends java.lang.Object
Tree node in the haar cascade
Constructor Summary |
Tree(Feature feature,
double threshold,
double leftVal,
double rightVal)
Create a new Tree node |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Tree
public Tree(Feature feature,
double threshold,
double leftVal,
double rightVal)
- Create a new Tree node
- Parameters:
feature
- the feature retangles + weightsthreshold
- the threshold for the featureleftVal
- the left valuerightVal
- the right value
getFeature
public Feature getFeature()
- Returns:
- The feature specified by this tree
getThreshold
public double getThreshold()
- Returns:
- The threshold value of this feature
getLeft_val
public double getLeft_val()
- Returns:
- The value of the tree if the picture is above the threshold
getRight_val
public double getRight_val()
- Returns:
- The value of the tree if the picture is below the threshold
toString
public java.lang.String toString()
- Return this object as a string
- Overrides:
toString
in class java.lang.Object