public final class FastIntegralImage extends Object
| Constructor and Description |
|---|
FastIntegralImage() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
doubleIntegralImage(byte[] b,
int w,
int h)
Returns an image of @{param w}+1, @{param y}+1, where the first row and the first column are zeros,
and the rest contain the sum of the area from 0,0 to that pixel in
b. |
static double[] |
doubleIntegralImage(float[] b,
int w,
int h)
Returns an image of @{param w}+1, @{param y}+1, where the first row and the first column are zeros,
and the rest contain the sum of the area from 0,0 to that pixel in
b. |
static long[] |
longIntegralImage(byte[] b,
int w,
int h)
Returns an image of @{param w}+1, @{param y}+1, where the first row and the first column are zeros,
and the rest contain the sum of the area from 0,0 to that pixel in
b. |
static long[] |
longIntegralImage(short[] b,
int w,
int h)
Returns an image of @{param w}+1, @{param y}+1, where the first row and the first column are zeros,
and the rest contain the sum of the area from 0,0 to that pixel in
b. |
static void |
main(String[] args)
For testing.
|
static byte[] |
scaleAreaAverage(double[] f,
int fw,
int fh,
int tw,
int th) |
static byte[] |
scaleAreaAverage(long[] f,
int fw,
int fh,
int tw,
int th) |
static void |
test(String image_file_path) |
public static final double[] doubleIntegralImage(byte[] b,
int w,
int h)
b.b - w - h - public static final double[] doubleIntegralImage(float[] b,
int w,
int h)
b.b - w - h - public static final long[] longIntegralImage(byte[] b,
int w,
int h)
b.b - w - h - public static final long[] longIntegralImage(short[] b,
int w,
int h)
b.b - w - h - public static final void test(String image_file_path)
public static final void main(String[] args)
public static final byte[] scaleAreaAverage(double[] f,
int fw,
int fh,
int tw,
int th)
f - The pixels of the integral image.fw - The width of the integral image (source image width + 1)fh - The height of the integral image (source image height + 1)tw - The target width to scale to.th - The target height to scale to.public static final byte[] scaleAreaAverage(long[] f,
int fw,
int fh,
int tw,
int th)
f - The pixels of the integral image.fw - The width of the integral image (source image width + 1)fh - The height of the integral image (source image height + 1)tw - The target width to scale to.th - The target height to scale to.Copyright © 2015–2021 Fiji. All rights reserved.