public class IntegralImage
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int[][] |
integralImage
Provides access to internal array keeping integral image data.
|
| Modifier | Constructor and Description |
|---|---|
|
IntegralImage(FastBitmap fastBitmap)
Initializes a new instance of the IntegralImage class.
|
|
IntegralImage(FastBitmap fastBitmap,
int power)
Initializes a new instance of the IntegralImage class.
|
protected |
IntegralImage(int width,
int height)
Initializes a new instance of the IntegralImage class.
|
| Modifier and Type | Method and Description |
|---|---|
static IntegralImage |
FromFastBitmap(FastBitmap fastBitmap)
Construct integral image from source grayscale image.
|
static IntegralImage |
FromFastBitmap(FastBitmap fastBitmap,
int power)
Construct integral image from source grayscale image.
|
int |
getHaarYWavelet(int x,
int y,
int radius)
Calculate vertical (Y) haar wavelet at the specified point.
|
int |
getHarrXWavelet(int x,
int y,
int radius)
Calculate horizontal (X) haar wavelet at the specified point.
|
int |
getHeight()
Height of the source image the integral image was constructed for.
|
int[][] |
getInternalData()
Provides access to internal array keeping integral image data.
|
int |
getInternalData(int x,
int y)
Provides access to internal value keeping integral image data.
|
float |
getRectangleMean(int x,
int y,
int radius)
Calculate mean value of pixels in the specified rectangle.
|
float |
getRectangleMean(int x1,
int y1,
int x2,
int y2)
Calculate mean value of pixels in the specified rectangle.
|
float |
getRectangleMeanUnsafe(int x,
int y,
int radius)
Calculate mean value of pixels in the specified rectangle without checking it's coordinates.
|
float |
getRectangleMeanUnsafe(int x1,
int y1,
int x2,
int y2)
Calculate mean value of pixels in the specified rectangle without checking it's coordinates.
|
int |
getRectangleSum(int x,
int y,
int radius)
Calculate sum of pixels in the specified rectangle.
|
int |
getRectangleSum(int x1,
int y1,
int x2,
int y2)
Calculate sum of pixels in the specified rectangle.
|
int |
getRectangleSumUnsafe(int x,
int y,
int radius)
Calculate sum of pixels in the specified rectangle without checking it's coordinates.
|
int |
getRectangleSumUnsafe(int x1,
int y1,
int x2,
int y2)
Calculate mean value of pixels in the specified rectangle without checking it's coordinates.
|
int |
getWidth()
Width of the source image the integral image was constructed for.
|
protected int[][] integralImage
public IntegralImage(FastBitmap fastBitmap)
fastBitmap - An image to be processed.public IntegralImage(FastBitmap fastBitmap, int power)
fastBitmap - An image to be processed.power - Power of the number.protected IntegralImage(int width,
int height)
width - Image width.height - Image height.public int getWidth()
public int getHeight()
public int[][] getInternalData()
public int getInternalData(int x,
int y)
x - X axis coordinate.y - Y axis coordinate.public static IntegralImage FromFastBitmap(FastBitmap fastBitmap)
fastBitmap - Image to be processed.public static IntegralImage FromFastBitmap(FastBitmap fastBitmap, int power)
fastBitmap - Image to be processed.power - Power of the number.public int getRectangleSum(int x1,
int y1,
int x2,
int y2)
x1 - Coordinate of left-top rectangle's corner.y1 - Coordinate of left-top rectangle's corner.x2 - Coordinate of right-bottom rectangle's corner.y2 - Coordinate of right-bottom rectangle's corner.public int getRectangleSum(int x,
int y,
int radius)
x - Coordinate of central point of the rectangle.y - Coordinate of central point of the rectangle.radius - Radius of the rectangle.public int getHarrXWavelet(int x,
int y,
int radius)
x - X coordinate of the point to calculate wavelet at.y - Y coordinate of the point to calculate wavelet at.radius - Wavelet size to calculate.public int getHaarYWavelet(int x,
int y,
int radius)
x - X coordinate of the point to calculate wavelet at.y - Y coordinate of the point to calculate wavelet at.radius - Wavelet size to calculate.public float getRectangleMean(int x1,
int y1,
int x2,
int y2)
x1 - X coordinate of left-top rectangle's corner.y1 - Y coordinate of left-top rectangle's corner.x2 - X coordinate of right-bottom rectangle's corner.y2 - Y coordinate of right-bottom rectangle's corner.public float getRectangleMean(int x,
int y,
int radius)
x - X coordinate of central point of the rectangle.y - Y coordinate of central point of the rectangle.radius - Radius of the rectangle.public int getRectangleSumUnsafe(int x1,
int y1,
int x2,
int y2)
x1 - X coordinate of left-top rectangle's corner.y1 - Y coordinate of left-top rectangle's corner.x2 - X coordinate of right-bottom rectangle's corner.y2 - Y coordinate of right-bottom rectangle's corner.public int getRectangleSumUnsafe(int x,
int y,
int radius)
x - X coordinate of central point of the rectangle.y - Y coordinate of central point of the rectangle.radius - Radius of the rectangle.public float getRectangleMeanUnsafe(int x1,
int y1,
int x2,
int y2)
x1 - X coordinate of left-top rectangle's corner.y1 - Y coordinate of left-top rectangle's corner.x2 - X coordinate of right-bottom rectangle's corner.y2 - Y coordinate of right-bottom rectangle's corner.public float getRectangleMeanUnsafe(int x,
int y,
int radius)
x - X coordinate of central point of the rectangle.y - Y coordinate of central point of the rectangle.radius - Radius of the rectangle.