|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.arcgis.geoprocessing.AbstractGPTool
com.esri.arcgis.geoprocessing.tools.spatialanalysttools.MajorityFilter
public class MajorityFilter
Replaces cells in a raster based on the majority of their contiguous neighboring cells. The Majority Filter tool is contained in the Spatial Analyst Tools tool box.
Field Summary |
---|
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool |
---|
vals |
Constructor Summary | |
---|---|
MajorityFilter()
Creates the Majority Filter tool with defaults. |
|
MajorityFilter(java.lang.Object inRaster,
java.lang.Object outRaster)
Creates the Majority Filter tool with the required parameters. |
Method Summary | |
---|---|
java.lang.Object |
getInRaster()
Returns the Input raster parameter of this tool . |
java.lang.String |
getMajorityDefinition()
Returns the Replacement threshold parameter of this tool . |
java.lang.String |
getNumberNeighbors()
Returns the Number of neighbors to use parameter of this tool . |
java.lang.Object |
getOutRaster()
Returns the Output raster parameter of this tool . |
java.lang.String |
getToolboxAlias()
Returns the alias of the tool box containing this tool. |
java.lang.String |
getToolboxName()
Returns the name of the tool box containing this tool. |
java.lang.String |
getToolName()
Returns the name of this tool. |
void |
setInRaster(java.lang.Object inRaster)
Sets the Input raster parameter of this tool . |
void |
setMajorityDefinition(java.lang.String majorityDefinition)
Sets the Replacement threshold parameter of this tool . |
void |
setNumberNeighbors(java.lang.String numberNeighbors)
Sets the Number of neighbors to use parameter of this tool . |
void |
setOutRaster(java.lang.Object outRaster)
Sets the Output raster parameter of this tool . |
Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool |
---|
getParameterValues, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MajorityFilter()
Initializes the array of tool parameters with the default values specified when the tool was created.
public MajorityFilter(java.lang.Object inRaster, java.lang.Object outRaster)
Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.
inRaster
- the input raster to be filtered based on the the majority of contiguous neighboring cells. it must be of integer type.outRaster
- the output filtered raster.Method Detail |
---|
public java.lang.Object getInRaster()
public void setInRaster(java.lang.Object inRaster)
inRaster
- the input raster to be filtered based on the the majority of contiguous neighboring cells. it must be of integer type.public java.lang.Object getOutRaster()
public void setOutRaster(java.lang.Object outRaster)
outRaster
- the output filtered raster.public java.lang.String getNumberNeighbors()
public void setNumberNeighbors(java.lang.String numberNeighbors)
numberNeighbors
- determines the number of neighboring cells to use in the kernel of the filter.public java.lang.String getMajorityDefinition()
public void setMajorityDefinition(java.lang.String majorityDefinition)
majorityDefinition
- specifies the number of contiguous (spatially connected) cells that must be of the same value before a replacement will occur.public java.lang.String getToolName()
public java.lang.String getToolboxName()
public java.lang.String getToolboxAlias()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |