Catalano.Imaging.Filters
Class HistogramShrink
- java.lang.Object
-
- Catalano.Imaging.Filters.HistogramShrink
-
- All Implemented Interfaces:
- IApplyInPlace
public class HistogramShrink extends java.lang.Object implements IApplyInPlace
Decrease image contrast by compressing the gray values.- See Also:
Imaging - Scott E. Umbaugh - Chapter 8 - p. 353
-
-
Constructor Summary
Constructors Constructor and Description HistogramShrink()Initialize a new instance of the HistogramShrink class.HistogramShrink(int min, int max)Initialize a new instance of the HistogramShrink class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.intgetMax()Maximum desired in the compressed histogram.intgetMin()Minimum desired in the compressed histogram.voidsetMax(int max)Maximum desired in the compressed histogram.voidsetMin(int min)Minimum desired in the compressed histogram.
-
-
-
Constructor Detail
-
HistogramShrink
public HistogramShrink()
Initialize a new instance of the HistogramShrink class.
-
HistogramShrink
public HistogramShrink(int min, int max)Initialize a new instance of the HistogramShrink class.- Parameters:
min- Correspond to the minimum desired in the compressed histogram. Range[0..255].max- Correspond to the maximum desired in the compressed histogram. Range[0..255].
-
-
Method Detail
-
getMax
public int getMax()
Maximum desired in the compressed histogram.- Returns:
- Maximum.
-
setMax
public void setMax(int max)
Maximum desired in the compressed histogram.- Parameters:
max- Maximum. Range[0..255].
-
getMin
public int getMin()
Minimum desired in the compressed histogram.- Returns:
- Minimum.
-
setMin
public void setMin(int min)
Minimum desired in the compressed histogram.- Parameters:
min- Minimum. Range[0..255].
-
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