Uses of Class
org.geotools.image.ImageWorker
Packages that use ImageWorker
-
Uses of ImageWorker in org.geotools.image
Methods in org.geotools.image that return ImageWorkerModifier and TypeMethodDescriptionfinal ImageWorker
ImageWorker.addBand
(RenderedImage image, boolean before) Perform a BandMerge operation between the underlying image and the provided one.final ImageWorker
ImageWorker.addBand
(RenderedImage image, boolean before, boolean addAlpha, Range nodata2) Perform a BandMerge operation between the underlying image and the provided one.final ImageWorker
ImageWorker.addBands
(RenderedImage[] bands, boolean addAlpha, Range[] nodata2) Perform a BandMerge operation between the underlying image and the provided one.final ImageWorker
ImageWorker.addBands
(RenderedImage[] bands, boolean addAlpha, Range[] nodata2, List<AffineTransform> transformationList) Perform a BandMerge operation between the underlying image and the provided one.final ImageWorker
ImageWorker.addImage
(RenderedImage renderedImage) Takes two rendered or renderable source images, and adds every pair of pixels, one from each source image of the corresponding position and band.ImageWorker.addTransparencyToIndexColorModel
(RenderedImage alphaChannel, boolean errorDiffusion) Adds transparency to a preexisting image whose color model is index color model.final ImageWorker
ImageWorker.addTransparencyToIndexColorModel
(RenderedImage alphaChannel, boolean translucent, int transparent, boolean errorDiffusion) Adds transparency to a preexisting image whose color model is index color model.ImageWorker.affine
(AffineTransform tx, Interpolation interpolation, double[] bgValues) Performs an affine transform on the image, applying optimization such as affine removal in case the affine is an identity, affine merging if the affine is applied on top of another affine, and using optimized operations for integer translatesImageWorker.applyOpacity
(float opacity) Applies the specified opacity to the image by either adding an alpha band, or modifying the existing one by multiplicationfinal ImageWorker
ImageWorker.artifactsFilter
(int threshold, int filterSize) ImageWorker.bandCombine
(double[][] coeff) Apply a rescale operation on the underlying image.final ImageWorker
ImageWorker.bandMerge
(int writeband) Add the bands to the Component Color Modelfinal ImageWorker
ImageWorker.binarize()
Binarizes the image.final ImageWorker
ImageWorker.binarize
(double threshold) Binarizes the image.final ImageWorker
ImageWorker.binarize
(int value0, int value1) Binarizes the image (if not already done) and replace all 0 values byvalue0
and all 1 values byvalue1
.ImageWorker.border
(int leftPad, int rightPad, int topPad, int bottomPad, BorderExtender ext) Apply a Raster classification on the underlying image.ImageWorker.colorIndex
(ColorIndexer indexer) Warps the underlying using the provided Warp object.ImageWorker.crop
(float x, float y, float width, float height) Crops the image to the specified bounds.final ImageWorker
ImageWorker.forceBitmaskIndexColorModel()
final ImageWorker
ImageWorker.forceBitmaskIndexColorModel
(int suggestedTransparent, boolean errorDiffusion) final ImageWorker
ImageWorker.forceColorSpaceGRAYScale()
Forces the image color model to the GRAYScale color space.final ImageWorker
ImageWorker.forceColorSpaceIHS()
Forces the image color model to the IHS color space.final ImageWorker
ImageWorker.forceColorSpaceRGB()
Forces the image color model to the RGB color space.final ImageWorker
ImageWorker.forceColorSpaceYCbCr()
Forces the image color model to the YCbCr color space.final ImageWorker
ImageWorker.forceComponentColorModel()
Reformats the color model to a component color model preserving transparency.final ImageWorker
ImageWorker.forceComponentColorModel
(boolean checkTransparent) Reformats the color model to a component color model preserving transparency.final ImageWorker
ImageWorker.forceComponentColorModel
(boolean checkTransparent, boolean optimizeGray) Reformats the color model to a component color model preserving transparency.final ImageWorker
ImageWorker.forceComponentColorModel
(boolean checkTransparent, boolean optimizeGray, boolean omitAlphaOnExpand) Reformats the color model to a component color model preserving transparency.final ImageWorker
ImageWorker.forceIndexColorModel
(boolean error) Reduces the color model to index color model.final ImageWorker
ImageWorker.forceIndexColorModelForGIF
(boolean errorDiffusion) Converts the image to a GIF-compliant image.final ImageWorker
ImageWorker.format
(int dataType) Formats the underlying image to the provided data type.ImageWorker.function
(ImageFunction function, int w, int h, float xScale, float yScale, float xTrans, float yTrans) final ImageWorker
ImageWorker.intensity()
Creates an image which represents approximatively the intensity of image.final ImageWorker
ImageWorker.invert()
Inverts the pixel values of the image.ImageWorker.lookup
(LookupTable table) Performs Lookup on the underlying imagefinal ImageWorker
ImageWorker.makeColorTransparent
(Color transparentColor) Replaces all occurences of the given color (usually opaque) by a fully transparent color.final ImageWorker
ImageWorker.mask
(RenderedImage mask, boolean maskValue, int newValue) Applies the specified mask over the current image.ImageWorker.max
(RenderedImage[] sources) Copmputes a pixel-by-pixel maximum value from all the provided sources.ImageWorker.min
(RenderedImage[] sources) Copmputes a pixel-by-pixel minimum value from all the provided sources.ImageWorker.mosaic
(RenderedImage[] images, MosaicType type, PlanarImage[] alphas, ROI[] rois, double[][] thresholds, Range[] nodata) final ImageWorker
ImageWorker.multiply
(RenderedImage renderedImage) Takes two rendered or renderable source images, and myltiply form each pixel the related value of the second image, each one from each source image of the corresponding position and band.final ImageWorker
ImageWorker.multiplyConst
(double[] inValues) Takes one rendered or renderable image and an array of double constants, and multiplies every pixel of the same band of the source by the constant from the corresponding array entry.ImageWorker.nullOp()
Returns the rendered image after null operation.final ImageWorker
ImageWorker.or
(RenderedImage renderedImage) Takes two rendered or renderable source images, and do an OR for each pixel images, each one from each source image of the corresponding position and band.Apply a Generic Piecewise operation on the underlying image.ImageWorker.prepareForRendering()
Forces all NODATA pixels, as well as those outside of the ROI, to be transparent (expanding the color model as needed in order to make it so).ImageWorker.rangeLookup
(Object rangeLookup) Apply a rangeLookup operation on the underlying image.final ImageWorker
ImageWorker.removeIndexColorModel()
If the image has an indexed color model, removes it, and replaces it with a component color model. can be useful before a band-merge if the image in question is not meant to be color expanded.final ImageWorker
ImageWorker.removeRenderingHint
(RenderingHints.Key key) Removes a rendering hint.final ImageWorker
ImageWorker.removeRenderingHints()
ImageWorker.rescale
(double[] scale, double[] offset) Apply a rescale operation on the underlying image.final ImageWorker
ImageWorker.rescaleToBytes()
Rescales the image such that it uses 8 bits.final ImageWorker
ImageWorker.retainBands
(int numBands) Retains inconditionnaly the firstnumBands
of image.final ImageWorker
ImageWorker.retainBands
(int[] bands) Retains inconditionnaly certain bands of image.final ImageWorker
ImageWorker.retainFirstBand()
Retains inconditionnaly the first band of image.final ImageWorker
ImageWorker.retainLastBand()
Retains unconditionally the last band of image.ImageWorker.scale
(double xScale, double yScale, double xTrans, double yTrans, Interpolation interp) Scales the underlying raster using the provided parameters.final ImageWorker
ImageWorker.setBackground
(double[] background) Set the image background valuefinal ImageWorker
ImageWorker.setImage
(RenderedImage image) Prepare this builder for the specified image.final ImageWorker
ImageWorker.setNoData
(Range nodata) Set the NoData Range for checking NoData during computation.final ImageWorker
ImageWorker.setRenderingHint
(RenderingHints.Key key, Object value) Sets a rendering hint tile to use for all images to be computed by this class.final ImageWorker
ImageWorker.setRenderingHints
(RenderingHints hints) Set a map of rendering hints to use for all images to be computed by this class.final ImageWorker
ImageWorker.setROI
(ROI roi) Set the region of interest (ROI).ImageWorker.setXPeriod
(int xPeriod) Sets the x-period used by statistical operations (e.g. extrema, mean, histogram).ImageWorker.setYPeriod
(int yPeriod) Sets the x-period used by statistical operations (e.g. extrema, mean, histogram).final ImageWorker
ImageWorker.show()
final ImageWorker
ImageWorker.subtract
(RenderedImage renderedImage) Takes two rendered or renderable source images, and subtract form each pixel the related value of the second image, each one from each source image of the corresponding position and band.final ImageWorker
ImageWorker.tile()
If the was not already tiled, tile it.final ImageWorker
ImageWorker.tileCacheEnabled
(boolean status) Iffalse
, disables the tile cache.ImageWorker.translate
(float xTrans, float yTrans, Interpolation interp) ImageWorker.warp
(Warp warp, Interpolation interp) Warps the underlying raster using the provided Warp object.final ImageWorker
Writes the image to the specified file.final ImageWorker
Writes outs the image contained into thisImageWorker
as a GIF using the provided destination, compression and compression rate.final ImageWorker
ImageWorker.xorConst
(int[] values) Takes one rendered or renderable image and an array of integer constants, and performs a bit-wise logical "xor" between every pixel in the same band of the source and the constant from the corresponding array entry.