com.esri.arcgis.datasourcesraster
Interface IRasterCalcStatsHistogram

All Superinterfaces:
Serializable
All Known Subinterfaces:
IRasterCalcStatsHistogram2
All Known Implementing Classes:
RasterCalcStatsHistogram

public interface IRasterCalcStatsHistogram
extends Serializable

Provides access to members that controls calculation of stats and histogram.

Superseded By

IRasterCalcStatsHistogram2

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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void computeFromRaster(IRaster pRaster, int iBand, IStatsHistogram pStatsHistogram)
          Computes stats and histogram from a given Raster.
 void loadFromRasterBand(IRasterBand pBand, Object noData, IStatsHistogram pStatsHistogram)
          Computes stats and histogram from a given RasterBand.
 

Method Detail

computeFromRaster

void computeFromRaster(IRaster pRaster,
                       int iBand,
                       IStatsHistogram pStatsHistogram)
                       throws IOException,
                              AutomationException
Computes stats and histogram from a given Raster.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
pRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
iBand - The iBand (in)
pStatsHistogram - A reference to a com.esri.arcgis.datasourcesraster.IStatsHistogram (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

loadFromRasterBand

void loadFromRasterBand(IRasterBand pBand,
                        Object noData,
                        IStatsHistogram pStatsHistogram)
                        throws IOException,
                               AutomationException
Computes stats and histogram from a given RasterBand.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
pBand - A reference to a com.esri.arcgis.datasourcesraster.IRasterBand (in)
noData - A Variant (in)
pStatsHistogram - A reference to a com.esri.arcgis.datasourcesraster.IStatsHistogram (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.