public class StatsHistogram extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IStatsHistogram, IStatsHistogram2, IStatsHistogram3, IStatsHistogram4, IPersist, IPersistStream, java.io.Externalizable
Description 'A raster statistics and histogram class.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
IID, IID620b3f79_6b77_4273_8825_cf2b029431eb, xxDummy
IIDdbe269bf_6bde_43f2_9bfb_d90551d7efe3
IID0a69bfa0_d411_468d_be27_3042e80a9cc0
IID2b9062e8_df44_4012_a0e4_cf0efaa21693
IID, IID00000109_0000_0000_c000_000000000046, xxDummy
IID0000010c_0000_0000_c000_000000000046
Constructor and Description |
---|
StatsHistogram()
Constructs a StatsHistogram using ArcGIS Engine.
|
StatsHistogram(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
StatsHistogram theStatsHistogram = (StatsHistogram) obj; |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(double value,
int count)
Accumulates a value and its count.
|
void |
accumulateCovariance(int iBand,
double numValidPixel,
double xy,
double x,
double y)
Accumulates covariance array, numValidPixel.
|
void |
empty()
Empties this RasterStatsHistogram and marks it invalid.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
void |
getClassID(GUID[] pClassID)
getClassID
|
static java.lang.String |
getClsid()
getClsid.
|
void |
getCovarAccu(int iBand,
double[] numValidPixel,
double[] covarXY,
double[] meanX,
double[] meanY)
Get the accumulating or running variables used for covar computation.
|
java.lang.Object |
getCovariances()
Array of doubles, the covariances with the n bands of the raster.
|
java.lang.Object |
getHistogram()
The histogram values of the statistics.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
double |
getMax()
The maximum value of the historgram.
|
double |
getMean()
The mean value of the historgram.
|
double |
getMin()
The minimum value of the historgram.
|
double |
getPixelCount()
The total pixel count.
|
IRasterHistogram |
getRasterHistogram()
The raster histogram.
|
IRasterStatistics |
getRasterStatistics()
The raster statistics.
|
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax
|
double |
getStdDev()
The standard deviation value of the historgram.
|
int |
hashCode()
the hashcode for this object
|
boolean |
hasHistogram()
Checks if this StatsHistogram has histogram.
|
boolean |
hasStats()
Checks if this StatsHistogram has stats.
|
void |
initCovariances(int nBands)
Resizes covariance array to nBands, init all elements to 0.
|
void |
isDirty()
isDirty
|
void |
load(IStream pstm)
load
|
void |
putCovarAccu(int iBand,
double numValidPixel,
double covarXY,
double meanX,
double meanY)
Put the accumulating or running variables used for covar computation.
|
void |
putHistogramInfo(int size,
double resolution,
double minh,
double maxh)
Sets histogram size, resolution, and min/max range.
|
void |
putHistogramMinmax(double min,
double max)
Sets histogram min and max range.
|
void |
putStats(double min,
double max,
double mean,
double stdDev)
Computes stats and histogram from a given Raster.
|
void |
queryHistogramInfo(int[] size,
double[] resolution,
double[] minh,
double[] maxh)
Gets histogram size, resolutiom, and min/max range.
|
void |
queryHistogramMinmax(double[] min,
double[] max)
Gets histogram min and max range.
|
void |
queryStats(double[] min,
double[] max,
double[] mean,
double[] stdDev)
Computes stats and histogram from a given Raster.
|
void |
readExternal(java.io.ObjectInput in) |
void |
release()
Release this COM object reference
|
void |
save(IStream pstm,
int fClearDirty)
save
|
void |
setCovariances(java.lang.Object pVal)
Array of doubles, the covariances with the n bands of the raster.
|
void |
setHistogram(java.lang.Object histogram)
The histogram values of the statistics.
|
void |
setMax(double max)
The maximum value of the historgram.
|
void |
setMean(double mean)
The mean value of the historgram.
|
void |
setMin(double min)
The minimum value of the historgram.
|
void |
setStdDev(double stdDev)
The standard deviation value of the historgram.
|
void |
update()
Updates the histogram after accumulation.
|
void |
updateCovariances()
Final update after accumulate is finished.
|
void |
writeExternal(java.io.ObjectOutput out) |
public static final long serialVersionUID
public StatsHistogram() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic StatsHistogram(java.lang.Object obj) throws java.io.IOException
StatsHistogram theStatsHistogram = (StatsHistogram) obj;
obj
to StatsHistogram
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public double getMin() throws java.io.IOException, AutomationException
getMin
in interface IStatsHistogram
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setMin(double min) throws java.io.IOException, AutomationException
setMin
in interface IStatsHistogram
min
- The min (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public double getMax() throws java.io.IOException, AutomationException
getMax
in interface IStatsHistogram
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setMax(double max) throws java.io.IOException, AutomationException
setMax
in interface IStatsHistogram
max
- The max (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public double getMean() throws java.io.IOException, AutomationException
getMean
in interface IStatsHistogram
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setMean(double mean) throws java.io.IOException, AutomationException
setMean
in interface IStatsHistogram
mean
- The mean (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public double getStdDev() throws java.io.IOException, AutomationException
getStdDev
in interface IStatsHistogram
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setStdDev(double stdDev) throws java.io.IOException, AutomationException
setStdDev
in interface IStatsHistogram
stdDev
- The stdDev (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void putHistogramMinmax(double min, double max) throws java.io.IOException, AutomationException
putHistogramMinmax
in interface IStatsHistogram
min
- The min (in)max
- The max (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void queryHistogramMinmax(double[] min, double[] max) throws java.io.IOException, AutomationException
queryHistogramMinmax
in interface IStatsHistogram
min
- The min (out: use single element array)max
- The max (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.Object getHistogram() throws java.io.IOException, AutomationException
getHistogram
in interface IStatsHistogram
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setHistogram(java.lang.Object histogram) throws java.io.IOException, AutomationException
setHistogram
in interface IStatsHistogram
histogram
- A Variant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void putStats(double min, double max, double mean, double stdDev) throws java.io.IOException, AutomationException
putStats
in interface IStatsHistogram
min
- The min (in)max
- The max (in)mean
- The mean (in)stdDev
- The stdDev (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void queryStats(double[] min, double[] max, double[] mean, double[] stdDev) throws java.io.IOException, AutomationException
queryStats
in interface IStatsHistogram
min
- The min (out: use single element array)max
- The max (out: use single element array)mean
- The mean (out: use single element array)stdDev
- The stdDev (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void empty() throws java.io.IOException, AutomationException
empty
in interface IStatsHistogram
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean hasStats() throws java.io.IOException, AutomationException
hasStats
in interface IStatsHistogram
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean hasHistogram() throws java.io.IOException, AutomationException
hasHistogram
in interface IStatsHistogram
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void accumulate(double value, int count) throws java.io.IOException, AutomationException
accumulate
in interface IStatsHistogram
value
- The value (in)count
- The count (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void update() throws java.io.IOException, AutomationException
update
in interface IStatsHistogram
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public double getPixelCount() throws java.io.IOException, AutomationException
getPixelCount
in interface IStatsHistogram2
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void putHistogramInfo(int size, double resolution, double minh, double maxh) throws java.io.IOException, AutomationException
putHistogramInfo
in interface IStatsHistogram3
size
- The size (in)resolution
- The resolution (in)minh
- The minh (in)maxh
- The maxh (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void queryHistogramInfo(int[] size, double[] resolution, double[] minh, double[] maxh) throws java.io.IOException, AutomationException
queryHistogramInfo
in interface IStatsHistogram3
size
- The size (out: use single element array)resolution
- The resolution (out: use single element array)minh
- The minh (out: use single element array)maxh
- The maxh (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IRasterStatistics getRasterStatistics() throws java.io.IOException, AutomationException
getRasterStatistics
in interface IStatsHistogram3
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IRasterHistogram getRasterHistogram() throws java.io.IOException, AutomationException
getRasterHistogram
in interface IStatsHistogram3
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void initCovariances(int nBands) throws java.io.IOException, AutomationException
initCovariances
in interface IStatsHistogram3
nBands
- The nBands (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void accumulateCovariance(int iBand, double numValidPixel, double xy, double x, double y) throws java.io.IOException, AutomationException
accumulateCovariance
in interface IStatsHistogram3
iBand
- The iBand (in)numValidPixel
- The numValidPixel (in)xy
- The xy (in)x
- The x (in)y
- The y (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void updateCovariances() throws java.io.IOException, AutomationException
updateCovariances
in interface IStatsHistogram3
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.Object getCovariances() throws java.io.IOException, AutomationException
getCovariances
in interface IStatsHistogram3
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setCovariances(java.lang.Object pVal) throws java.io.IOException, AutomationException
setCovariances
in interface IStatsHistogram3
pVal
- A Variant (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void getCovarAccu(int iBand, double[] numValidPixel, double[] covarXY, double[] meanX, double[] meanY) throws java.io.IOException, AutomationException
getCovarAccu
in interface IStatsHistogram4
iBand
- The iBand (in)numValidPixel
- The numValidPixel (out: use single element array)covarXY
- The covarXY (out: use single element array)meanX
- The meanX (out: use single element array)meanY
- The meanY (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void putCovarAccu(int iBand, double numValidPixel, double covarXY, double meanX, double meanY) throws java.io.IOException, AutomationException
putCovarAccu
in interface IStatsHistogram4
iBand
- The iBand (in)numValidPixel
- The numValidPixel (in)covarXY
- The covarXY (in)meanX
- The meanX (in)meanY
- The meanY (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws java.io.IOException, AutomationException
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws java.io.IOException, AutomationException
isDirty
in interface IPersistStream
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws java.io.IOException, AutomationException
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws java.io.IOException, AutomationException
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws java.io.IOException, AutomationException
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException