Interface IStatsHistogram

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

Provides access to members that controls stats and histogram.

[Guid("2B9062E8-DF44-4012-A0E4-CF0EFAA21693")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IStatsHistogram

Remarks

IStatsHistogram, the interface for StatsHistogram , is used to access the statistics and bin histogram.

StatsHistogram can be created from RasterCalcStatsHistogram and is used to set the raster stretch (using IRasterStretch2) for RasterStretchColorRampRenderer

Properties

Histogram

The histogram values of the statistics.

object Histogram { get; set; }

Property Value

object

Remarks

This method returns a single dimensional array of value of size 256. Each value in the array is the normalized count of pixels in the specific bin.

The pixel values in the raster, if they are beyond 0-255, will be binned (or reclassfied) to 0-255.

Max

The maximum value of the historgram.

double Max { get; set; }

Property Value

double

Mean

The mean value of the historgram.

double Mean { get; set; }

Property Value

double

Min

The minimum value of the historgram.

double Min { get; set; }

Property Value

double

StdDev

The standard deviation value of the historgram.

double StdDev { get; set; }

Property Value

double

Methods

Accumulate(double, int)

Accumulates a value and its count.

void Accumulate(double Value, int Count)

Parameters

Value double
Count int

Empty()

Empties this RasterStatsHistogram and marks it invalid.

void Empty()

HasHistogram()

Checks if this StatsHistogram has histogram.

bool HasHistogram()

Returns

bool

HasStats()

Checks if this StatsHistogram has stats.

bool HasStats()

Returns

bool

PutHistogramMinmax(double, double)

Sets histogram min and max range.

void PutHistogramMinmax(double Min, double Max)

Parameters

Min double
Max double

PutStats(double, double, double, double)

Computes stats and histogram from a given Raster.

void PutStats(double Min, double Max, double Mean, double StdDev)

Parameters

Min double
Max double
Mean double
StdDev double

QueryHistogramMinmax(out double, out double)

Gets histogram min and max range.

void QueryHistogramMinmax(out double Min, out double Max)

Parameters

Min double
Max double

QueryStats(out double, out double, out double, out double)

Computes stats and histogram from a given Raster.

void QueryStats(out double Min, out double Max, out double Mean, out double StdDev)

Parameters

Min double
Max double
Mean double
StdDev double

Update()

Updates the histogram after accumulation.

void Update()