Interface IRasterStatistics

Namespace
ESRI.ArcGIS.DatasourcesRaster
Assembly
ESRI.Server.DatasourcesRaster.dll

Provides access to members that control raster statistics.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("7E7E6103-FA34-11D1-8D22-0000F8780535")]
public interface IRasterStatistics

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.

Properties

IgnoredValues

Array of doubles indicating the pixel values not included in the statistics calculation.

object IgnoredValues { get; set; }

Property Value

object

Remarks

The ignore value is ignored if calculating statistics on a grid.

IsValid

Indicates if statistics are fresh.

bool IsValid { get; set; }

Property Value

bool

Maximum

Approximate largest value.

double Maximum { get; set; }

Property Value

double

Mean

Approximate average value.

double Mean { get; set; }

Property Value

double

Median

Divides pixel population approximately in halves.

double Median { get; }

Property Value

double

Minimum

Approximate smallest value.

double Minimum { get; set; }

Property Value

double

Mode

Approximate most popular pixel value.

double Mode { get; }

Property Value

double

RasterBand

The RasterBand.

IRasterBand RasterBand { set; }

Property Value

IRasterBand

SkipFactorX

Number of horizontal pixels between samples for purposes of calculating statistics.

int SkipFactorX { get; set; }

Property Value

int

Remarks

The skip factor is ignored, always use 1, if calculating statistics on a grid.

SkipFactorY

Number of vertical pixels between samples for purposes of calculating statistics.

int SkipFactorY { get; set; }

Property Value

int

Remarks

The skip factor is ignored, always use 1, if calculating statistics on a grid.

StandardDeviation

Measures spread of pixel values about the mean.

double StandardDeviation { get; set; }

Property Value

double

Methods

Recalculate()

Recalculate statistics based upon current skip factors and ignored values.

void Recalculate()