|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 problems
public 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 problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void getSize(int[] columns,
int[] rows)
throws IOException,
AutomationException
getSize in interface IPixelFiltergetSize in interface IRasterConvolutionFiltercolumns - 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 IPixelFiltergetCenterPosition in interface IRasterConvolutionFilteratColumn - 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 IPixelFilterpBlock - 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 IRasterConvolutionFilternColumns - 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 IRasterConvolutionFilteratColumn - 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 IRasterConvolutionFiltercoefList - 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 IRasterConvolutionFiltercoefList - 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 IRasterConvolutionFiltergainFactor - 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 IRasterConvolutionFilterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRecursive(boolean recursive)
throws IOException,
AutomationException
setRecursive in interface IRasterConvolutionFilterrecursive - 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 IRasterConvolutionFilterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void normalize()
throws IOException,
AutomationException
normalize in interface IRasterConvolutionFilterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isNormalized()
throws IOException,
AutomationException
isNormalized in interface IRasterConvolutionFilterIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void scaleBy(double scaleFactor)
throws IOException,
AutomationException
scaleBy in interface IRasterConvolutionFilterscaleFactor - 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 IStockConvolutionFilterfilterType - 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 IStockConvolutionFilterIOException - 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 | ||||||||