Class StretchRenderer


public final class StretchRenderer extends BaseStretchRenderer
A stretch renderer enhances the visual contrast of raster data in a RasterLayer.

A stretch renderer uses continuous raster cell values across a gradual ramp of colors to visualize raster data. It works well when you have a large range of values to display, such as in imagery, aerial photographs, or elevation models.

Stretching improves the appearance of the raster data by spreading its cell values along a histogram whose minimum and maximum values are defined by the raster's bit depth. For example, an 8-bit raster dataset will be stretched along a histogram from 0 to 255.

Since:
100.0.0
See Also:
  • Constructor Details

    • StretchRenderer

      public StretchRenderer(StretchParameters stretchParameters, List<Double> gammas, boolean estimateStatistics, ColorRamp colorRamp)
      Creates an instance of StretchRenderer.
      Parameters:
      stretchParameters - stretch parameters
      gammas - gamma adjustments
      estimateStatistics - true to enable estimating statistics
      colorRamp - color ramp
      Throws:
      IllegalArgumentException - if stretchParameters is null
      Since:
      100.0.0
  • Method Details

    • getColorRamp

      public ColorRamp getColorRamp()
      Gets the color ramp.
      Returns:
      the color ramp
      Since:
      100.0.0