com.esri.arcgis.datasourcesraster
Class RasterCalcStatsHistogram

java.lang.Object
  extended by com.esri.arcgis.datasourcesraster.RasterCalcStatsHistogram
All Implemented Interfaces:
IRasterCalcStatsHistogram, IRasterCalcStatsHistogram2, IRasterCalcStatsHistogram3, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class RasterCalcStatsHistogram
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRasterCalcStatsHistogram, IRasterCalcStatsHistogram2, IRasterCalcStatsHistogram3

A helper class for calculating raster statistics and histogram.

Remarks

RasterCalcStatsHistogram object is used to calculate the "unified" statistics and histogram for one or multiple raster bands.

RasterCalcStatsHistogram creates StatsHistogram object, which is used in RasterStretchColorRampRenderer .

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
RasterCalcStatsHistogram()
          Constructs a RasterCalcStatsHistogram using ArcGIS Engine.
RasterCalcStatsHistogram(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterCalcStatsHistogram theRasterCalcStatsHistogram = (RasterCalcStatsHistogram) obj;
 
Method Summary
 void computeAllFromBlock(IPixelBlock pBlock, IArray pStatsHistograms)
          Computes stats and histogram from a pixel block.
 void computeAllFromRaster(IRaster pRaster, IArray pStatsHistograms)
          Computes stats and histogram from a given Raster.
 void computeFromRaster(IRaster pRaster, int iBand, IStatsHistogram pStatsHistogram)
          Computes stats and histogram from a given Raster.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 void loadFromRasterBand(IRasterBand pBand, Object noData, IStatsHistogram pStatsHistogram)
          Computes stats and histogram from a given RasterBand.
 void loadFromRasterBandEx(IRasterBand pBand, Object noData, boolean approximation, IStatsHistogram pStatsHistogram)
          Computes stats and histogram from a given RasterBand.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

RasterCalcStatsHistogram

public RasterCalcStatsHistogram()
                         throws IOException,
                                UnknownHostException
Constructs a RasterCalcStatsHistogram using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

RasterCalcStatsHistogram

public RasterCalcStatsHistogram(Object obj)
                         throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterCalcStatsHistogram theRasterCalcStatsHistogram = (RasterCalcStatsHistogram) obj;

Construct a RasterCalcStatsHistogram using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RasterCalcStatsHistogram.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

computeFromRaster

public 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

Specified by:
computeFromRaster in interface IRasterCalcStatsHistogram
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

public 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

Specified by:
loadFromRasterBand in interface IRasterCalcStatsHistogram
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.

computeAllFromRaster

public void computeAllFromRaster(IRaster pRaster,
                                 IArray pStatsHistograms)
                          throws IOException,
                                 AutomationException
Computes stats and histogram from a given Raster.

Product Availability

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

Specified by:
computeAllFromRaster in interface IRasterCalcStatsHistogram2
Parameters:
pRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
pStatsHistograms - A reference to a com.esri.arcgis.system.IArray (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

computeAllFromBlock

public void computeAllFromBlock(IPixelBlock pBlock,
                                IArray pStatsHistograms)
                         throws IOException,
                                AutomationException
Computes stats and histogram from a pixel block.

Product Availability

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

Specified by:
computeAllFromBlock in interface IRasterCalcStatsHistogram3
Parameters:
pBlock - A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
pStatsHistograms - A reference to a com.esri.arcgis.system.IArray (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

loadFromRasterBandEx

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

Product Availability

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

Specified by:
loadFromRasterBandEx in interface IRasterCalcStatsHistogram3
Parameters:
pBand - A reference to a com.esri.arcgis.datasourcesraster.IRasterBand (in)
noData - A Variant (in)
approximation - The approximation (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.