Skip navigation links
LuciadFusion
2023.1.07

Package com.luciad.view.lightspeed.style.imagefilter

Defines raster filter styles, which can be used to apply image processing operations to raster layers.

See: Description

Package com.luciad.view.lightspeed.style.imagefilter Description

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
Skip navigation links
LuciadFusion
2023.1.07