|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesraster.RasterConvolutionFilter
public class RasterConvolutionFilter
A raster kernel-based filter.
The RasterConvolutionFitler object is a kernel based raster filter. There are several predefined kernels available, and you can also implement your own kernels to filter the raster.
RasterConvolutionFitler supports two convolution
filter-specific interfaces,
IStockConvolutionFilter and
IRasterConvolutionFilter.
IStockConvolutionFilter is used to select one of
predefined, well-known convolution filters, such as horizontal and
vertical line detection, 3x3 and 5x5 Laplacian filters, and etc.
IRasterConvolutionFilter is used to set up custom
kernel with kernel coefficients. A constant gain factor can be
added to both stock or custom convolution filters.
Constructor Summary | |
---|---|
RasterConvolutionFilter()
Constructs a RasterConvolutionFilter using ArcGIS Engine. |
|
RasterConvolutionFilter(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. RasterConvolutionFilter theRasterConvolutionFilter = (RasterConvolutionFilter) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
void |
filter(IPixelBlock pBlock)
Filters a pixel block. |
void |
getCenterPosition(int[] atColumn,
int[] atRow)
Gets center position of the filter. |
static String |
getClsid()
getClsid. |
double |
getGainFactor()
The gain factor of the kernel filter. |
void |
getSize(int[] columns,
int[] rows)
Gets dimension of the filter. |
int |
getType()
The type of the stock kernel filter. |
int |
hashCode()
the hashcode for this object |
boolean |
isNormalized()
Indicates whether the filter is normalized. |
boolean |
isRecursive()
Indicates whether the filter is recursive. |
void |
normalize()
Normalizes the filter. |
void |
putCoefficients(double[][] coefList)
Sets the element coefficients of the kernel filter. |
void |
queryCoefficients(double[][] coefList)
Gets the element coefficients of the kernel filter. |
void |
scaleBy(double scaleFactor)
Scales the filter coefficients. |
void |
setCenterPosition(int atColumn,
int atRow)
Sets the center position of the kernel filter. |
void |
setGainFactor(double gainFactor)
The gain factor of the kernel filter. |
void |
setRecursive(boolean recursive)
Indicates whether the filter is recursive. |
void |
setSize(int nColumns,
int nRows)
Sets the size of the kernel filter. |
void |
setType(int filterType)
The type of the stock kernel filter. |
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 RasterConvolutionFilter() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic RasterConvolutionFilter(Object obj) throws IOException
RasterConvolutionFilter theRasterConvolutionFilter = (RasterConvolutionFilter) obj;
obj
to RasterConvolutionFilter
.
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 void getSize(int[] columns, int[] rows) throws IOException, AutomationException
getSize
in interface IPixelFilter
getSize
in interface IRasterConvolutionFilter
columns
- The columns (in/out: use single element array)rows
- The rows (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getCenterPosition(int[] atColumn, int[] atRow) throws IOException, AutomationException
getCenterPosition
in interface IPixelFilter
getCenterPosition
in interface IRasterConvolutionFilter
atColumn
- The atColumn (in/out: use single element array)atRow
- The atRow (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void filter(IPixelBlock pBlock) throws IOException, AutomationException
filter
in interface IPixelFilter
pBlock
- A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSize(int nColumns, int nRows) throws IOException, AutomationException
setSize
in interface IRasterConvolutionFilter
nColumns
- The nColumns (in)nRows
- The nRows (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCenterPosition(int atColumn, int atRow) throws IOException, AutomationException
setCenterPosition
in interface IRasterConvolutionFilter
atColumn
- The atColumn (in)atRow
- The atRow (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void putCoefficients(double[][] coefList) throws IOException, AutomationException
PutCoefficents takes a dimentional (1D) array (row * column of the kernel), then transforms automatically to a 2D array. The side of 2D array is defined by SetSize method.
size of 1D array = row * column of the kernel
putCoefficients
in interface IRasterConvolutionFilter
coefList
- The coefList (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryCoefficients(double[][] coefList) throws IOException, AutomationException
queryCoefficients
in interface IRasterConvolutionFilter
coefList
- The coefList (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGainFactor(double gainFactor) throws IOException, AutomationException
setGainFactor
in interface IRasterConvolutionFilter
gainFactor
- The gainFactor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getGainFactor() throws IOException, AutomationException
getGainFactor
in interface IRasterConvolutionFilter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRecursive(boolean recursive) throws IOException, AutomationException
setRecursive
in interface IRasterConvolutionFilter
recursive
- The recursive (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isRecursive() throws IOException, AutomationException
isRecursive
in interface IRasterConvolutionFilter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void normalize() throws IOException, AutomationException
normalize
in interface IRasterConvolutionFilter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isNormalized() throws IOException, AutomationException
isNormalized
in interface IRasterConvolutionFilter
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void scaleBy(double scaleFactor) throws IOException, AutomationException
scaleBy
in interface IRasterConvolutionFilter
scaleFactor
- The scaleFactor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setType(int filterType) throws IOException, AutomationException
setType
in interface IStockConvolutionFilter
filterType
- A com.esri.arcgis.datasourcesraster.esriRasterFilterTypeEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getType() throws IOException, AutomationException
getType
in interface IStockConvolutionFilter
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 |