public class GIntegralImageOps
extends java.lang.Object
IntegralImageOps with unknown types at compile time.| Constructor and Description |
|---|
GIntegralImageOps() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ImageSingleBand> |
block_unsafe(T integral,
int x0,
int y0,
int x1,
int y1)
Computes the value of a block inside an integral image without bounds checking.
|
static <T extends ImageSingleBand> |
block_zero(T integral,
int x0,
int y0,
int x1,
int y1)
Computes the value of a block inside an integral image and treats pixels outside of the
image as zero.
|
static <T extends ImageSingleBand> |
convolve(T integral,
IntegralKernel kernel,
T output)
General code for convolving a box filter across an image using the integral image.
|
static <T extends ImageSingleBand> |
convolveBorder(T integral,
IntegralKernel kernel,
T output,
int borderX,
int borderY)
Convolves the kernel only across the image's border.
|
static <T extends ImageSingleBand> |
convolveSparse(T integral,
IntegralKernel kernel,
int x,
int y)
Convolves a kernel around a single point in the integral image.
|
static <I extends ImageSingleBand,II extends ImageSingleBand> |
getIntegralType(java.lang.Class<I> inputType)
Given the input image, return the type of image the integral image should be.
|
static <I extends ImageSingleBand,T extends ImageSingleBand> |
transform(I input,
T transformed)
Converts a regular image into an integral image.
|
public static <I extends ImageSingleBand,II extends ImageSingleBand> java.lang.Class<II> getIntegralType(java.lang.Class<I> inputType)
public static <I extends ImageSingleBand,T extends ImageSingleBand> T transform(I input, T transformed)
input - Regular image. Not modified.transformed - Integral image. If null a new image will be created. Modified.public static <T extends ImageSingleBand> T convolve(T integral, IntegralKernel kernel, T output)
integral - Integral image.kernel - Convolution kernel.output - The convolved image. If null a new image will be declared and returned. Modified.public static <T extends ImageSingleBand> T convolveBorder(T integral, IntegralKernel kernel, T output, int borderX, int borderY)
integral - Integral image. Not modified.kernel - Convolution kernel.output - The convolved image. If null a new image will be created. Modified.borderX - Size of the image border along the horizontal axis.borderY - size of the image border along the vertical axis.public static <T extends ImageSingleBand> double convolveSparse(T integral, IntegralKernel kernel, int x, int y)
integral - Input integral image. Not modified.kernel - Convolution kernel.x - Pixel the convolution is performed at.y - Pixel the convolution is performed at.public static <T extends ImageSingleBand> double block_zero(T integral, int x0, int y0, int x1, int y1)
Computes the value of a block inside an integral image and treats pixels outside of the image as zero. The block is defined as follows: x0 < x ≤ x1 and y0 < y ≤ y1.
integral - Integral image.x0 - Lower bound of the block. Exclusive.y0 - Lower bound of the block. Exclusive.x1 - Upper bound of the block. Inclusive.y1 - Upper bound of the block. Inclusive.public static <T extends ImageSingleBand> double block_unsafe(T integral, int x0, int y0, int x1, int y1)
Computes the value of a block inside an integral image without bounds checking. The block is defined as follows: x0 < x ≤ x1 and y0 < y ≤ y1.
integral - Integral image.x0 - Lower bound of the block. Exclusive.y0 - Lower bound of the block. Exclusive.x1 - Upper bound of the block. Inclusive.y1 - Upper bound of the block. Inclusive.