public class AdaptiveLocalThresholdingOp extends NullOp implements Parallelizable
Modifier and Type | Field and Description |
---|---|
protected int |
size |
Constructor and Description |
---|
AdaptiveLocalThresholdingOp(int size)
Constructs the operation using a neighborhood of size x size.
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dest)
Applies a varying threshold to each src sample where the threshold
is determined by analysis of local neighborhood.
|
int |
getBrightness(java.awt.image.BufferedImage src,
int col,
int row)
Computes the intensity channel of the pixel at src(x,y).
|
createCompatibleDestImage, getBounds2D, getOpName, getPoint2D, getRenderingHints
public AdaptiveLocalThresholdingOp(int size)
size
- public int getBrightness(java.awt.image.BufferedImage src, int col, int row)
src
- col
- row
- public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dest)