IStatsHistogram Interface

Provides access to members that controls stats and histogram.

Members

Name Description
Method Accumulate Accumulates a value and its count.
Method Empty Empties this RasterStatsHistogram and marks it invalid.
Method HasHistogram Checks if this StatsHistogram has histogram.
Method HasStats Checks if this StatsHistogram has stats.
Read/write property Histogram The histogram values of the statistics.
Read/write property Max The maximum value of the historgram.
Read/write property Mean The mean value of the historgram.
Read/write property Min The minimum value of the historgram.
Method PutHistogramMinmax Sets histogram min and max range.
Method PutStats Computes stats and histogram from a given Raster.
Method QueryHistogramMinmax Gets histogram min and max range.
Method QueryStats Computes stats and histogram from a given Raster.
Read/write property StdDev The standard deviation value of the historgram.
Method Update Updates the histogram after accumulation.

IStatsHistogram.Accumulate Method

Accumulates a value and its count.

Public Sub Accumulate ( _
    ByVal Value As Double, _
    ByVal Count As Integer _
)
public void Accumulate (
    double Value,
    int Count
);

IStatsHistogram.Empty Method

Empties this RasterStatsHistogram and marks it invalid.

Public Sub Empty ( _
)
public void Empty (
);

IStatsHistogram.HasHistogram Method

Checks if this StatsHistogram has histogram.

Public Function HasHistogram ( _
) As Boolean
public bool HasHistogram (
);

IStatsHistogram.HasStats Method

Checks if this StatsHistogram has stats.

Public Function HasStats ( _
) As Boolean
public bool HasStats (
);

IStatsHistogram.Histogram Property

The histogram values of the statistics.

Public Property Histogram As Object
public object Histogram {get; set;}

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.

IStatsHistogram.Max Property

The maximum value of the historgram.

Public Property Max As Double
public double Max {get; set;}

IStatsHistogram.Mean Property

The mean value of the historgram.

Public Property Mean As Double
public double Mean {get; set;}

IStatsHistogram.Min Property

The minimum value of the historgram.

Public Property Min As Double
public double Min {get; set;}

IStatsHistogram.PutHistogramMinmax Method

Sets histogram min and max range.

Public Sub PutHistogramMinmax ( _
    ByVal Min As Double, _
    ByVal Max As Double _
)
public void PutHistogramMinmax (
    double Min,
    double Max
);

IStatsHistogram.PutStats Method

Computes stats and histogram from a given Raster.

Public Sub PutStats ( _
    ByVal Min As Double, _
    ByVal Max As Double, _
    ByVal Mean As Double, _
    ByVal StdDev As Double _
)
public void PutStats (
    double Min,
    double Max,
    double Mean,
    double StdDev
);

IStatsHistogram.QueryHistogramMinmax Method

Gets histogram min and max range.

Public Sub QueryHistogramMinmax ( _
    ByRef Min As Double, _
    ByRef Max As Double _
)
public void QueryHistogramMinmax (
    ref double Min,
    ref double Max
);

IStatsHistogram.QueryStats Method

Computes stats and histogram from a given Raster.

Public Sub QueryStats ( _
    ByRef Min As Double, _
    ByRef Max As Double, _
    ByRef Mean As Double, _
    ByRef StdDev As Double _
)
public void QueryStats (
    ref double Min,
    ref double Max,
    ref double Mean,
    ref double StdDev
);

IStatsHistogram.StdDev Property

The standard deviation value of the historgram.

Public Property StdDev As Double
public double StdDev {get; set;}

IStatsHistogram.Update Method

Updates the histogram after accumulation.

Public Sub Update ( _
)
public void Update (
);

Classes that implement IStatsHistogram

Classes Description
StatsHistogram A raster statistics and histogram class.

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

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