public class BradleyLocalThreshold extends java.lang.Object implements IApplyInPlace
| Constructor and Description |
|---|
BradleyLocalThreshold()
Initialize a new instance of the BradleyLocalThreshold class.
|
BradleyLocalThreshold(int windowSize)
Initialize a new instance of the BradleyLocalThreshold class.
|
BradleyLocalThreshold(int windowSize,
float pixelBrightnessDiff)
Initialize a new instance of the BradleyLocalThreshold class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
float |
getPixelBrightnessDifferenceLimit()
Brightness difference limit between processing pixel and average value across neighbors.
|
int |
getWindowSize()
Window size to calculate average value of pixels for.
|
void |
setPixelBrightnessDifferenceLimit(float pixelBrightnessDifferenceLimit)
Brightness difference limit between processing pixel and average value across neighbors.
|
void |
setWindowSize(int windowSize)
Window size to calculate average value of pixels for.
|
public BradleyLocalThreshold()
public BradleyLocalThreshold(int windowSize)
windowSize - Window size to calculate average value of pixels for.public BradleyLocalThreshold(int windowSize,
float pixelBrightnessDiff)
windowSize - Window size to calculate average value of pixels for.pixelBrightnessDiff - Brightness difference limit between processing pixel and average value across neighbors.public int getWindowSize()
public void setWindowSize(int windowSize)
windowSize - Window size.public float getPixelBrightnessDifferenceLimit()
public void setPixelBrightnessDifferenceLimit(float pixelBrightnessDifferenceLimit)
pixelBrightnessDifferenceLimit - Brightness difference.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.