Provides access to members that control a raster histogram.
Description
IRasterHistogram is used to obtain the histogram of pixel values in a raster band.
Members
Name | Description | |
---|---|---|
Bin | Translates pixel values to integer Bin index. | |
BinFunction | The Bin function that maps pixel value into histogram index. | |
Counts | Count array in doubles. |
IRasterHistogram.Bin Method
Translates pixel values to integer Bin index.
Public Function Bin ( _
ByVal pixval As Double _
) As Integer
public int Bin (
double pixval
);
IRasterHistogram.BinFunction Property
The Bin function that maps pixel value into histogram index.
Public ReadOnly Property BinFunction As IBinFunction
public IBinFunction BinFunction {get;}
IRasterHistogram.Counts Property
Count array in doubles.
Public Property Counts As Object
public object Counts {get; set;}
Remarks
This property returns the histogram of the binned pixel values in range 0-255. e.g. an array of 256 and each element is the count.
The pixel values in the raster band will be binned to 0-255 if they are beyond this range.
Classes that implement IRasterHistogram
Classes | Description |
---|---|
RasterHistogram | A raster histogram class. |