Package com.luciad.view.lightspeed.style.imagefilter
package com.luciad.view.lightspeed.style.imagefilter
Defines raster filter styles, which can be used to apply image processing
operations to raster layers.
To use the image processing you must specify a
TLspImageProcessingStyle
.
You can find all details about image processing and the available operators in com.luciad.imaging
.
For example to create a layer with a gray-scale filter:
TLspRasterStyle rasterStyle = ... TLspImageProcessingStyle filterStyle = TLspImageProcessingStyle.newBuilder() .operatorChain( ALcdImageOperatorChain.newBuilder() .pixelTransform( new double[]{ 0.2126, 0.7152, 0.0722, 0.2126, 0.7152, 0.0722, 0.2126, 0.7152, 0.0722 }, new double[]{0, 0, 0} ) .build() ) .build(); TLspRasterLayer layer = TLspRasterLayerBuilder.newBuilder(). model( ... ). styler( TLspPaintRepresentationState.REGULAR_BODY, new TLspStyler( rasterStyle, filterStyle ) ). build();
- Since:
- 2013.0
-
ClassDescriptionA color lookup table filter style.Builder for color lookup table filter styles.Image processing style to apply image operators to a raster layer.Builder for image processing styles.