Facemorph.haar
Class Tree

java.lang.Object
  extended by 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
 
Method Summary
 Feature getFeature()
           
 double getLeft_val()
           
 double getRight_val()
           
 double getThreshold()
           
 java.lang.String toString()
          Return this object as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tree

public Tree(Feature feature,
            double threshold,
            double leftVal,
            double rightVal)
Create a new Tree node

Parameters:
feature - the feature retangles + weights
threshold - the threshold for the feature
leftVal - the left value
rightVal - the right value
Method Detail

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