|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.haar.SAT
public class SAT
Summed area table
Constructor Summary | |
---|---|
SAT(BufferedImg src)
Creates a summed area table from the top left corner |
|
SAT(BufferedImg src,
boolean squared)
Creates a summed area table from the top left corner |
|
SAT(BufferedImg src,
boolean squared,
boolean tilted)
Creates a summed area table from the top left corner |
Method Summary | |
---|---|
int |
getMaxX()
Returns the maximum X value of the summed area table representation. |
int |
getMaxY()
Returns the maximum Y value of the summed area table representation. |
double |
getSumOfTiltedVals(int x,
int y,
int w,
int h)
Calculate the sum of values between pixel (startX, startY) and (endX, endY) |
double |
getSumOfVals(int startX,
int startY,
int endX,
int endY)
Calculate the sum of values between pixel (startX, startY) and (endX, endY) |
static void |
main(java.lang.String[] args)
Main method for testing |
static double |
sumOfTiltedVals(BufferedImg img,
int x,
int y,
int w,
int h)
Direct calculation of tilted sums for testing |
static double |
sumOfVals(BufferedImg img,
int x,
int y,
int w,
int h)
Direct calculation of sums for testing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAT(BufferedImg src)
src
- The image to create a summed area table frompublic SAT(BufferedImg src, boolean squared)
src
- The image to create a summed area table fromsquared
- should the pixel values be squared prior to building the SATpublic SAT(BufferedImg src, boolean squared, boolean tilted)
src
- The image to create a summed area table fromsquared
- should the pixel values be squared prior to building the SATtilted
- should the SAT be for tilted rectanglesMethod Detail |
---|
public double getSumOfVals(int startX, int startY, int endX, int endY)
startX
- The x coordinate of the bottom left of the regionstartY
- The y coordinate of the bottom left of the regionendX
- The x coordinate of the top right of the regionendY
- The y coordinate of the top right of the region
public double getSumOfTiltedVals(int x, int y, int w, int h)
x
- The x coordinate of the bottom left of the regiony
- The y coordinate of the bottom left of the regionw
- The width of the regionh
- The height of the region
public static double sumOfVals(BufferedImg img, int x, int y, int w, int h)
img
- the image to sum the values fromx
- the x-coord of the rectangley
- the y-coord of the rectanglew
- the width of the rectangleh
- the height of the rectangle
public static double sumOfTiltedVals(BufferedImg img, int x, int y, int w, int h)
img
- the image to sum the values fromx
- the x-coord of the rectangley
- the y-coord of the rectanglew
- the width of the rectangleh
- the height of the rectangle
public int getMaxX()
public int getMaxY()
public static void main(java.lang.String[] args)
args
- the program args
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |