Package org.geotools.image.palette
Class InverseColorMapOp
- Object
-
- InverseColorMapOp
-
- All Implemented Interfaces:
BufferedImageOp
public final class InverseColorMapOp extends Object implements BufferedImageOp
This class provide an Image oriented interface for theEfficientInverseColorMapComputation
. Specifically, it is designed in order to implement theBufferedImage
for processingBufferedImage
s efficiently accessing the raster pixels directly but it also provide a method to process generalRenderedImage
s implementations.- Author:
- Simone Giannecchini - GeoSolutions SAS
- See Also:
EfficientInverseColorMapComputation
-
-
Field Summary
Fields Modifier and Type Field Description protected int
alphaThreshold
protected boolean
hasAlpha
protected IndexColorModel
icm
protected InverseColorMapRasterOp
rasterOp
protected int
transparencyIndex
-
Constructor Summary
Constructors Constructor Description InverseColorMapOp(IndexColorModel destCM)
InverseColorMapOp(IndexColorModel destCM, int quantizationColors, int alphaThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BufferedImage
createCompatibleDestImage(BufferedImage src, ColorModel destCM)
BufferedImage
filter(BufferedImage src, BufferedImage dest)
BufferedImage
filterRenderedImage(RenderedImage src)
Rectangle2D
getBounds2D(BufferedImage src)
IndexColorModel
getIcm()
Point2D
getPoint2D(Point2D srcPt, Point2D dstPt)
RenderingHints
getRenderingHints()
-
-
-
Field Detail
-
rasterOp
protected final InverseColorMapRasterOp rasterOp
-
icm
protected final IndexColorModel icm
-
alphaThreshold
protected final int alphaThreshold
-
hasAlpha
protected final boolean hasAlpha
-
transparencyIndex
protected final int transparencyIndex
-
-
Constructor Detail
-
InverseColorMapOp
public InverseColorMapOp(IndexColorModel destCM, int quantizationColors, int alphaThreshold)
-
InverseColorMapOp
public InverseColorMapOp(IndexColorModel destCM)
-
-
Method Detail
-
createCompatibleDestImage
public BufferedImage createCompatibleDestImage(BufferedImage src, ColorModel destCM)
- Specified by:
createCompatibleDestImage
in interfaceBufferedImageOp
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dest)
- Specified by:
filter
in interfaceBufferedImageOp
-
filterRenderedImage
public BufferedImage filterRenderedImage(RenderedImage src)
-
getBounds2D
public Rectangle2D getBounds2D(BufferedImage src)
- Specified by:
getBounds2D
in interfaceBufferedImageOp
-
getPoint2D
public Point2D getPoint2D(Point2D srcPt, Point2D dstPt)
- Specified by:
getPoint2D
in interfaceBufferedImageOp
-
getRenderingHints
public RenderingHints getRenderingHints()
- Specified by:
getRenderingHints
in interfaceBufferedImageOp
-
getIcm
public IndexColorModel getIcm()
-
-