public class IntegralImage extends Object
ByteProcessor
.Constructor and Description |
---|
IntegralImage(ij.process.ByteProcessor I)
Creates a new integral image from pixel values in a
ByteProcessor . |
IntegralImage(int[][] I)
Creates a new integral image from pixel values in a 2D int-array.
|
Modifier and Type | Method and Description |
---|---|
long |
getBlockSum1(int ua,
int va,
int ub,
int vb)
Calculates the sum of the pixel values in the rectangle
R, specified by the corner points a = (ua, va) and b = (b1, vb).
|
long |
getBlockSum2(int ua,
int va,
int ub,
int vb)
Calculates the sum of the squared pixel values in the rectangle
R, specified by the corner points a = (ua, va) and b = (b1, vb).
|
double |
getMean(int ua,
int va,
int ub,
int vb)
Calculates the mean of the image values in the specified rectangle.
|
long[][] |
getS1()
Returns the summed area table of pixel values (Sigma_1).
|
long[][] |
getS2()
Returns the summed area table of squared pixel values (Sigma_2).
|
int |
getSize(int u0,
int v0,
int u1,
int v1) |
double |
getVariance(int ua,
int va,
int ub,
int vb)
Calculates the variance of the image values in the specified rectangle.
|
public IntegralImage(int[][] I)
I
- pixel valuespublic IntegralImage(ij.process.ByteProcessor I)
ByteProcessor
.I
- input imagepublic long[][] getS1()
public long[][] getS2()
public long getBlockSum1(int ua, int va, int ub, int vb)
ua
- leftmost position in Rva
- top position in Rub
- rightmost position in Rvb
- bottom position in Rpublic long getBlockSum2(int ua, int va, int ub, int vb)
ua
- leftmost position in Rva
- top position in Rub
- rightmost position in Rvb
- bottom position in Rpublic int getSize(int u0, int v0, int u1, int v1)
public double getMean(int ua, int va, int ub, int vb)
ua
- leftmost position in Rva
- top position in Rub
- rightmost position in R (u1 >= u0)vb
- bottom position in R (v1 >= v0)public double getVariance(int ua, int va, int ub, int vb)
ua
- leftmost position in Rva
- top position in Rub
- rightmost position in R (u1 >= u0)vb
- bottom position in R (v1 >= v0)Copyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)