Catalano.Imaging.Filters
Class AdaptiveContrastEnhancement
- java.lang.Object
-
- Catalano.Imaging.Filters.AdaptiveContrastEnhancement
-
- All Implemented Interfaces:
- IApplyInPlace
public class AdaptiveContrastEnhancement extends java.lang.Object implements IApplyInPlace
Adaptive Contrast Enhancement is modification of the gray level values based on some criterion that adjusts its parameters as local image characteristics change.Filter supports:
- Images: Grayscale.
- Coordinate System: Matrix.
-
-
Constructor Summary
Constructors Constructor and Description AdaptiveContrastEnhancement(int windowSize, double k1, double k2, double minGain, double maxGain)Initialize a new instance of the AdaptiveContrastEnhancement class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.
-
-
-
Constructor Detail
-
AdaptiveContrastEnhancement
public AdaptiveContrastEnhancement(int windowSize, double k1, double k2, double minGain, double maxGain)Initialize a new instance of the AdaptiveContrastEnhancement class.- Parameters:
windowSize- Size of window(should be an odd number).k1- Local gain factor, between 0 and 1.k2- Local mean constant, between 0 and 1.minGain- The minimum gain factor.maxGain- The maximum gain factor.
-
-
Method Detail
-
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