public class IntegralImage extends Object
| Constructor and Description |
|---|
IntegralImage() |
| Modifier and Type | Method and Description |
|---|---|
void |
compute(ij.process.ByteProcessor ip)
Constructs the integral image.
|
long |
get(int x,
int y)
Get value of integral image at specified position.
|
long |
get(Rectangle region)
Returns the sum of intensities in the specified rectangle.
|
int |
getHeight()
Get the image's height.
|
int |
getWidth()
Get the image's width.
|
public void compute(ij.process.ByteProcessor ip)
ip - ImageProcessor to usepublic long get(int x,
int y)
compute(ij.process.ByteProcessor) is required before calling this method. No
sanity-check of indices
x and y is performed!x - x-coordinatey - y-coordinatepublic long get(Rectangle region)
region - region of interestpublic int getHeight()
public int getWidth()
Copyright © 2013. All Rights Reserved.