Catalano.Imaging.Filters
Class ModifiedWhitePatch
- java.lang.Object
-
- Catalano.Imaging.Filters.ModifiedWhitePatch
-
- All Implemented Interfaces:
- IApplyInPlace
public class ModifiedWhitePatch extends java.lang.Object implements IApplyInPlace
Modified White Patch algorithm.
-
-
Constructor Summary
Constructors Constructor and Description ModifiedWhitePatch()Initialize a new instance of the ModifiedWhitePatch class.ModifiedWhitePatch(int threshold)Initialize a new instance of the ModifiedWhitePatch class.ModifiedWhitePatch(int redThreshold, int greenThreshold, int blueThreshold)Initialize a new instance of the ModifiedWhitePatch class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.intgetBlueThreshold()intgetGreenThreshold()intgetRedThreshold()voidsetBlueThreshold(int blueThreshold)voidsetGreenThreshold(int greenThreshold)voidsetRedThreshold(int redThreshold)voidsetThreshold(int threshold)
-
-
-
Constructor Detail
-
ModifiedWhitePatch
public ModifiedWhitePatch()
Initialize a new instance of the ModifiedWhitePatch class.
-
ModifiedWhitePatch
public ModifiedWhitePatch(int threshold)
Initialize a new instance of the ModifiedWhitePatch class.- Parameters:
threshold- Threshold.
-
ModifiedWhitePatch
public ModifiedWhitePatch(int redThreshold, int greenThreshold, int blueThreshold)Initialize a new instance of the ModifiedWhitePatch class.- Parameters:
redThreshold- Red Threshold.greenThreshold- Green Threshold.blueThreshold- Blue Threshold.
-
-
Method Detail
-
setThreshold
public void setThreshold(int threshold)
-
getRedThreshold
public int getRedThreshold()
-
setRedThreshold
public void setRedThreshold(int redThreshold)
-
getGreenThreshold
public int getGreenThreshold()
-
setGreenThreshold
public void setGreenThreshold(int greenThreshold)
-
getBlueThreshold
public int getBlueThreshold()
-
setBlueThreshold
public void setBlueThreshold(int blueThreshold)
-
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