RGBRenderer Class

  • RGBRenderer
  • class Esri::ArcGISRuntime::RGBRenderer

    An RGB stretch renderer can combine bands as red, green, blue composites to help visualize the raster data in a RasterLayer. More...

    Header: #include <RGBRenderer.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::BaseStretchRenderer

    Public Functions

    RGBRenderer(const Esri::ArcGISRuntime::StretchParameters &stretchParameters, QObject *parent = nullptr)
    RGBRenderer(const Esri::ArcGISRuntime::StretchParameters &stretchParameters, const QList<int> &bandIndexes, Esri::ArcGISRuntime::PansharpenType pansharpenType, Esri::ArcGISRuntime::Raster *panchromaticRaster, const QList<double> &weights, QObject *parent = nullptr)
    RGBRenderer(const Esri::ArcGISRuntime::StretchParameters &stretchParameters, const QList<int> &bandIndexes, const QList<double> &gammas, bool estimateStatistics, QObject *parent = nullptr)
    RGBRenderer(const Esri::ArcGISRuntime::StretchParameters &stretchParameters, const QList<int> &bandIndexes, const QList<double> &gammas, bool estimateStatistics, Esri::ArcGISRuntime::PansharpenType pansharpenType, Esri::ArcGISRuntime::Raster *panchromaticRaster, const QList<double> &weights, QObject *parent = nullptr)
    virtual ~RGBRenderer() override
    QList<int> bandIndexes() const
    Esri::ArcGISRuntime::Raster *panchromaticRaster() const
    Esri::ArcGISRuntime::PansharpenType pansharpenType() const
    QList<double> weights() const

    Detailed Description

    This renderer can be used for viewing color aerial photography, which is a three-band raster dataset, or to display different combinations of bands when working with multi-band raster datasets, such as satellite or aerial imagery.

    Member Function Documentation

    [explicit] RGBRenderer::RGBRenderer(const Esri::ArcGISRuntime::StretchParameters &stretchParameters, QObject *parent = nullptr)

    Constructor that takes stretchParameters and an optional parent.

    RGBRenderer::RGBRenderer(const Esri::ArcGISRuntime::StretchParameters &stretchParameters, const QList<int> &bandIndexes, Esri::ArcGISRuntime::PansharpenType pansharpenType, Esri::ArcGISRuntime::Raster *panchromaticRaster, const QList<double> &weights, QObject *parent = nullptr)

    CCreates a RGB renderer.

    • stretchParameters - The stretch parameters object.
    • bandIndexes - The band indexes in which the raster is displayed. A QList of int32. Can be empty.
    • pansharpenType - PansharpenType.
    • panchromaticRaster - Panchromatic raster, Raster.
    • weights - Band weights value for pansharpening. A QList of double.
    • parent - The optional parent QObject.

    RGBRenderer::RGBRenderer(const Esri::ArcGISRuntime::StretchParameters &stretchParameters, const QList<int> &bandIndexes, const QList<double> &gammas, bool estimateStatistics, QObject *parent = nullptr)

    Creates a RGB renderer.

    • stretchParameters - The stretch parameters object.
    • bandIndexes - The band indexes in which the raster is displayed. A QList of int32. Can be empty.
    • gammas - Gamma adjustment. A QList of double. Can be empty.
    • estimateStatistics - Estimates statistics.
    • parent - The optional parent QObject.

    RGBRenderer::RGBRenderer(const Esri::ArcGISRuntime::StretchParameters &stretchParameters, const QList<int> &bandIndexes, const QList<double> &gammas, bool estimateStatistics, Esri::ArcGISRuntime::PansharpenType pansharpenType, Esri::ArcGISRuntime::Raster *panchromaticRaster, const QList<double> &weights, QObject *parent = nullptr)

    Creates a RGB renderer.

    • stretchParameters - The stretch parameters object.
    • bandIndexes - The band indexes in which the raster is displayed. A QList of int32. Can be empty.
    • gammas - Gamma adjustment. A QList of double. Can be empty.
    • estimateStatistics - Estimates statistics.
    • pansharpenType - PansharpenType.
    • panchromaticRaster - Panchromatic raster, Raster.
    • weights - Band weights value for pansharpening. A QList of double.
    • parent - The optional parent QObject.

    [override virtual] RGBRenderer::~RGBRenderer()

    Destructor.

    QList<int> RGBRenderer::bandIndexes() const

    Returns the indexes of bands of a multi-band raster dataset that the renderer is based on.

    The band specified by the 0th index is used as the Red band, 1st index as the Green band, and 2nd index as the Blue band.

    Esri::ArcGISRuntime::Raster *RGBRenderer::panchromaticRaster() const

    Returns the high-resolution panchromatic raster to use as a basis for panchoromatic sharpening.

    Pan-sharpening uses a higher-resolution panchromatic image (or raster band) to fuse with a lower-resolution multi-band raster dataset. The result produces a multi-band raster dataset with the resolution of the panchromatic raster where the two rasters fully overlap.

    Note: Please see the ArcGIS Desktop documentation for further details.

    Esri::ArcGISRuntime::PansharpenType RGBRenderer::pansharpenType() const

    Returns the type of panchromatic sharpening method that is applied.

    QList<double> RGBRenderer::weights() const

    Returns the weights to use in the panchromatic sharpening method.

    Each of method uses different models to improve the spatial resolution while maintaining the color, and some are adjusted to include a weighting so that a fourth band can be included (such as the near-infrared band available in many multispectral image sources). By adding the weighting and enabling the infrared component, the visual quality in the output colors is improved.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.