Catalano.Imaging.Filters.Artistic
Class GradientMap
- java.lang.Object
-
- Catalano.Imaging.Filters.Artistic.GradientMap
-
- All Implemented Interfaces:
- IApplyInPlace
public class GradientMap extends java.lang.Object implements IApplyInPlace
Gradient Map.The Gradient image needs contains at least one row and 256 columns.
-
-
Constructor Summary
Constructors Constructor and Description GradientMap(FastBitmap gradient)Initialize a new instance of the GradientMap class.GradientMap(int[][] lut)Initialize a new instance of the GradientMap class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.FastBitmapgetGradient()Get Gradient image.int[][]getLut()Get Gradient LUT.voidsetGradient(FastBitmap gradient)Set Gradient image.voidsetLut(int[][] lut)Set Gradient LUT.
-
-
-
Constructor Detail
-
GradientMap
public GradientMap(FastBitmap gradient)
Initialize a new instance of the GradientMap class.- Parameters:
gradient- Gradient image.
-
GradientMap
public GradientMap(int[][] lut)
Initialize a new instance of the GradientMap class.- Parameters:
lut- Gradient LUT.
-
-
Method Detail
-
getGradient
public FastBitmap getGradient()
Get Gradient image.- Returns:
- Gradient image.
-
setGradient
public void setGradient(FastBitmap gradient)
Set Gradient image.- Parameters:
gradient- Gradient image.
-
getLut
public int[][] getLut()
Get Gradient LUT.- Returns:
- Gradient LUT.
-
setLut
public void setLut(int[][] lut)
Set Gradient LUT.- Parameters:
lut- Gradient LUT.
-
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