Catalano.Imaging.Filters
Class BradleyLocalThreshold
- java.lang.Object
-
- Catalano.Imaging.Filters.BradleyLocalThreshold
-
- All Implemented Interfaces:
- IApplyInPlace
public class BradleyLocalThreshold extends java.lang.Object implements IApplyInPlace
Adaptive thresholding using the integral image.- Supported types: Grayscale.
- Coordinate System: Matrix.
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.floatgetPixelBrightnessDifferenceLimit()Brightness difference limit between processing pixel and average value across neighbors.intgetWindowSize()Window size to calculate average value of pixels for.voidsetPixelBrightnessDifferenceLimit(float pixelBrightnessDifferenceLimit)Brightness difference limit between processing pixel and average value across neighbors.voidsetWindowSize(int windowSize)Window size to calculate average value of pixels for.
-
-
-
Constructor Detail
-
BradleyLocalThreshold
public BradleyLocalThreshold()
Initialize a new instance of the BradleyLocalThreshold class.
-
BradleyLocalThreshold
public BradleyLocalThreshold(int windowSize)
Initialize a new instance of the BradleyLocalThreshold class.- Parameters:
windowSize- Window size to calculate average value of pixels for.
-
BradleyLocalThreshold
public BradleyLocalThreshold(int windowSize, float pixelBrightnessDiff)Initialize a new instance of the BradleyLocalThreshold class.- Parameters:
windowSize- Window size to calculate average value of pixels for.pixelBrightnessDiff- Brightness difference limit between processing pixel and average value across neighbors.
-
-
Method Detail
-
getWindowSize
public int getWindowSize()
Window size to calculate average value of pixels for.- Returns:
- Window size.
-
setWindowSize
public void setWindowSize(int windowSize)
Window size to calculate average value of pixels for.- Parameters:
windowSize- Window size.
-
getPixelBrightnessDifferenceLimit
public float getPixelBrightnessDifferenceLimit()
Brightness difference limit between processing pixel and average value across neighbors.- Returns:
- Brightness difference.
-
setPixelBrightnessDifferenceLimit
public void setPixelBrightnessDifferenceLimit(float pixelBrightnessDifferenceLimit)
Brightness difference limit between processing pixel and average value across neighbors.- Parameters:
pixelBrightnessDifferenceLimit- Brightness difference.
-
applyInPlace
public void applyInPlace(FastBitmap fastBitmap)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG