Provides access to members that controls calculation of stats and histogram.
Members
Name | Description | |
---|---|---|
ComputeFromRaster | Computes stats and histogram from a given Raster. | |
LoadFromRasterBand | Computes stats and histogram from a given RasterBand. |
IRasterCalcStatsHistogram.ComputeFromRaster Method
Computes stats and histogram from a given Raster.
Public Sub ComputeFromRaster ( _
ByVal pRaster As IRaster, _
ByVal iBand As Integer, _
ByVal pStatsHistogram As IStatsHistogram _
)
public void ComputeFromRaster (
IRaster pRaster,
int iBand,
IStatsHistogram pStatsHistogram
);
IRasterCalcStatsHistogram.LoadFromRasterBand Method
Computes stats and histogram from a given RasterBand.
Public Sub LoadFromRasterBand ( _
ByVal pBand As IRasterBand, _
ByVal NoData As Object, _
ByVal pStatsHistogram As IStatsHistogram _
)
public void LoadFromRasterBand (
IRasterBand pBand,
object NoData,
IStatsHistogram pStatsHistogram
);
Classes that implement IRasterCalcStatsHistogram
Classes | Description |
---|---|
RasterCalcStatsHistogram | A helper class for calculating raster statistics and histogram. |
Remarks
`Both methods return the StatsHistogram object by reference, so you must co-create the StatsHistogram object first before using it in the two methods.
To accumulate the statistics and histogram from raster bands coming from different raster datasets, simply return to the same StatsHistogram object.`