NDVIFunction
Base Type: RasterFunction
A class for a raster NDVI function.
Remarks
Calculates the Normalized Vegetation Differential Index values given a 2 band raster consisting of the Red and NIR bands. The ColormapFunction can then be used to visualize the values.
Examples
C#
RenderingRule renderRule = new RenderingRule();
NDVIFunction function = new NDVIFunction();
NDVIFunctionArguments argument = new NDVIFunctionArguments();
argument.Names = new string[] { "VisibleBandID", "InfraredBandID" };
argument.Values = new object[] { visualBand, infBand }; //0-based integer
renderRule.Arguments = argument;
renderRule.Function = function;
renderRule.VariableName = "Raster";
geoImgDesc.RenderingRule = renderRule;
10/23/2013