|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRasterStatistics
Provides access to members that control raster statistics.
The RasterStatistics class is not cocreatable and must be retrieved from a RasterBand object. The statistics only provide information about a single band and are used when displaying the raster. The statistics may be modified or recalculated using this object.
Statistics can be calculated by setting a skip factor to avoid calculating on a full raster. Although the statitics calculated this way is not true statstics of the raster, it can reduce the calculating time significantly for large images without noticeable decreasing of the display quality.
Method Summary | |
---|---|
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. |
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. |
Method Detail |
---|
double getMinimum() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMinimum(double pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getMaximum() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaximum(double pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getMean() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMean(double pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getStandardDeviation() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setStandardDeviation(double pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getMedian() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getMode() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isValid() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setIsValid(boolean pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getIgnoredValues() throws IOException, AutomationException
The ignore value is ignored if calculating statistics on a grid.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setIgnoredValues(Object pVal) throws IOException, AutomationException
pVal
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSkipFactorX() throws IOException, AutomationException
The skip factor is ignored, always use 1, if calculating statistics on a grid.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSkipFactorX(int pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSkipFactorY() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSkipFactorY(int pVal) throws IOException, AutomationException
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setRasterBand(IRasterBand rhs1) throws IOException, AutomationException
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.void recalculate() throws IOException, AutomationException
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 |