This document is archived and information here might be outdated.  Recommended version.


IRasterStatistics Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

IRasterStatistics Interface

Provides access to members that control raster statistics.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Read/write property IgnoredValues Array of doubles indicating the pixel values not included in the statistics calculation.
Read/write property IsValid Indicates if statistics are fresh.
Read/write property Maximum Approximate largest value.
Read/write property Mean Approximate average value.
Read-only property Median Divides pixel population approximately in halves.
Read/write property Minimum Approximate smallest value.
Read-only property Mode Approximate most popular pixel value.
Write-only property RasterBand The RasterBand.
Method Recalculate Recalculate statistics based upon current skip factors and ignored values.
Read/write property SkipFactorX Number of horizontal pixels between samples for purposes of calculating statistics.
Read/write property SkipFactorY Number of vertical pixels between samples for purposes of calculating statistics.
Read/write property StandardDeviation Measures spread of pixel values about the mean.

CoClasses that implement IRasterStatistics

CoClasses and Classes Description
RasterStatistics A raster statistics class.

Remarks

The RasterStatistics class is not cocreatable and must be retrieved from a RasterBand object. The statistics only provide information about a single band and are used when displaying the raster. The statistics may be modified or recalculated using this object.

Statistics can be calculated by setting a skip factor to avoid calculating on a full raster. Although the statitics calculated this way is not true statstics of the raster, it can reduce the calculating time significantly for large images without noticeable decreasing of the display quality.

See Also

IRasterBand Interface

.NET Samples

Create a Raster Function template (Code Files: CreateRasterFunctionTemplate) | Create a custom raster type from the ground up for DMCII data (Code Files: DMCIIRasterType)

.NET Related Topics

DataSourcesRaster