public class SummedSqTiltAreaTable extends SummedSqAreaTable
See http://en.wikipedia.org/wiki/Summed_area_table and http://research.microsoft .com/en-us/um/people/viola/Pubs/Detect/violaJones_IJCV.pdf
Basically, this provides an efficient way to find the sum of all pixels in a rectangular area of an image.
Modifier and Type | Field and Description |
---|---|
FImage |
tiltSum
The tilted sum data
|
sqSum, sum
Constructor and Description |
---|
SummedSqTiltAreaTable()
Construct an empty SAT.
|
SummedSqTiltAreaTable(FImage image)
Construct a SAT for normal sum, squared sum and tilted sum from the
provided image.
|
SummedSqTiltAreaTable(FImage image,
boolean computeTilted)
Construct a SAT for normal sum, squared sum and (optionally) tilted sum
from the provided image.
|
Modifier and Type | Method and Description |
---|---|
void |
analyseImage(FImage image)
Analyse an image.
|
float |
calculateTiltedSumArea(int x,
int y,
int width,
int height)
Calculate the sum of pixels in the image used for constructing this SAT
within the 45 degree tilted rectangle.
|
float |
calculateTiltedSumArea(Rectangle r)
Calculate the sum pixels in the image used for constructing this SAT
within the given 45-degree tilted rectangle.
|
protected void |
computeRotSqSumIntegralImages(FImage image) |
protected void |
computeSqSumIntegralImages(FImage img) |
calculateSqSumArea, calculateSqSumArea, calculateSumArea, calculateSumArea, computeTable
public SummedSqTiltAreaTable()
public SummedSqTiltAreaTable(FImage image)
image
- the image.public SummedSqTiltAreaTable(FImage image, boolean computeTilted)
image
- the image.computeTilted
- if true compute the tilted features.protected void computeSqSumIntegralImages(FImage img)
protected final void computeRotSqSumIntegralImages(FImage image)
public float calculateTiltedSumArea(int x, int y, int width, int height)
x
- y
- width
- height
- public float calculateTiltedSumArea(Rectangle r)
r
- rectanglepublic void analyseImage(FImage image)
ImageAnalyser
analyseImage
in interface ImageAnalyser<FImage>
analyseImage
in class SummedSqAreaTable
image
- The image to process in place.