|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesraster.RasterStatistics
public class RasterStatistics
A raster statistics class.
A RasterStatistics object provides access to statistics from a raster band.
The RasterStatistics can be retrieved from a RasterBand using IRasterBand interface.
Constructor Summary | |
---|---|
RasterStatistics()
Constructs a RasterStatistics using ArcGIS Engine. |
|
RasterStatistics(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. RasterStatistics theRasterStatistics = (RasterStatistics) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
Object |
getIgnoredValues()
Array of doubles indicating the pixel values not included in the statistics calculation. |
double |
getMaximum()
Approximate largest value. |
double |
getMean()
Approximate average value. |
double |
getMedian()
Divides pixel population approximately in halves. |
double |
getMinimum()
Approximate smallest value. |
double |
getMode()
Approximate most popular pixel value. |
int |
getSkipFactorX()
Number of horizontal pixels between samples for purposes of calculating statistics. |
int |
getSkipFactorY()
Number of vertical pixels between samples for purposes of calculating statistics. |
double |
getStandardDeviation()
Measures spread of pixel values about the mean. |
int |
hashCode()
the hashcode for this object |
boolean |
isValid()
Indicates if statistics are fresh. |
void |
recalculate()
Recalculate statistics based upon current skip factors and ignored values. |
void |
setIgnoredValues(Object pVal)
Array of doubles indicating the pixel values not included in the statistics calculation. |
void |
setIsValid(boolean pVal)
Indicates if statistics are fresh. |
void |
setMaximum(double pVal)
Approximate largest value. |
void |
setMean(double pVal)
Approximate average value. |
void |
setMinimum(double pVal)
Approximate smallest value. |
void |
setRasterBand(IRasterBand rhs1)
The RasterBand. |
void |
setSkipFactorX(int pVal)
Number of horizontal pixels between samples for purposes of calculating statistics. |
void |
setSkipFactorY(int pVal)
Number of vertical pixels between samples for purposes of calculating statistics. |
void |
setStandardDeviation(double pVal)
Measures spread of pixel values about the mean. |
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 |
---|
public RasterStatistics() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic RasterStatistics(Object obj) throws IOException
RasterStatistics theRasterStatistics = (RasterStatistics) obj;
obj
to RasterStatistics
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public double getMinimum() throws IOException, AutomationException
getMinimum
in interface IRasterStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMinimum(double pVal) throws IOException, AutomationException
setMinimum
in interface IRasterStatistics
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMaximum() throws IOException, AutomationException
getMaximum
in interface IRasterStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMaximum(double pVal) throws IOException, AutomationException
setMaximum
in interface IRasterStatistics
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMean() throws IOException, AutomationException
getMean
in interface IRasterStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMean(double pVal) throws IOException, AutomationException
setMean
in interface IRasterStatistics
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getStandardDeviation() throws IOException, AutomationException
getStandardDeviation
in interface IRasterStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setStandardDeviation(double pVal) throws IOException, AutomationException
setStandardDeviation
in interface IRasterStatistics
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMedian() throws IOException, AutomationException
getMedian
in interface IRasterStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMode() throws IOException, AutomationException
getMode
in interface IRasterStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isValid() throws IOException, AutomationException
isValid
in interface IRasterStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIsValid(boolean pVal) throws IOException, AutomationException
setIsValid
in interface IRasterStatistics
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getIgnoredValues() throws IOException, AutomationException
The ignore value is ignored if calculating statistics on a grid.
getIgnoredValues
in interface IRasterStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIgnoredValues(Object pVal) throws IOException, AutomationException
setIgnoredValues
in interface IRasterStatistics
pVal
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSkipFactorX() throws IOException, AutomationException
The skip factor is ignored, always use 1, if calculating statistics on a grid.
getSkipFactorX
in interface IRasterStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSkipFactorX(int pVal) throws IOException, AutomationException
setSkipFactorX
in interface IRasterStatistics
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSkipFactorY() throws IOException, AutomationException
getSkipFactorY
in interface IRasterStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSkipFactorY(int pVal) throws IOException, AutomationException
setSkipFactorY
in interface IRasterStatistics
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRasterBand(IRasterBand rhs1) throws IOException, AutomationException
setRasterBand
in interface IRasterStatistics
rhs1
- A reference to a com.esri.arcgis.datasourcesraster.IRasterBand (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void recalculate() throws IOException, AutomationException
recalculate
in interface IRasterStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |