Facemorph.haar
Class Feature

java.lang.Object
  extended by Facemorph.haar.Feature

public class Feature
extends java.lang.Object

A set of rectangles


Constructor Summary
Feature(java.util.ArrayList<Rect> rects, boolean tilt)
          Constructs a set of rectangles
 
Method Summary
 void calcHidRects(double scale)
          Calculate the hidden rectangles
 void flipHorizontal(int width)
          Flip the set of rectangles horizontally
 Rect[] getHidRects()
          Get the hidden rectangles
 Rect[] getRects()
          Get the rectangles
 boolean getTilt()
          Get the tilt
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Feature

public Feature(java.util.ArrayList<Rect> rects,
               boolean tilt)
Constructs a set of rectangles

Parameters:
rects - list of rectangles to use
tilt - tilted
Method Detail

flipHorizontal

public void flipHorizontal(int width)
Flip the set of rectangles horizontally

Parameters:
width - the width of the window

getRects

public Rect[] getRects()
Get the rectangles

Returns:
The array of rectangles in this feature

getHidRects

public Rect[] getHidRects()
Get the hidden rectangles

Returns:
The array of rectangles in this feature

getTilt

public boolean getTilt()
Get the tilt

Returns:
The tilt of this feature

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
The feature as a string

calcHidRects

public void calcHidRects(double scale)
Calculate the hidden rectangles

Parameters:
scale - the scale