|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xinapse.filter.AbstractKernelFilter
com.xinapse.filter.MedianFilter
public final class MedianFilter
A SpatialFilter for performing a median filtering of an image.
| Nested Class Summary | |
|---|---|
static class |
MedianFilter.MedianSpecifierPanel
A FilterSpecifierPanel for a median filter. |
| Nested classes/interfaces inherited from interface com.xinapse.filter.SpatialFilter |
|---|
SpatialFilter.SpecifierPanel |
| Field Summary |
|---|
| Fields inherited from interface com.xinapse.filter.SpatialFilter |
|---|
N_DOTS |
| Constructor Summary | |
|---|---|
MedianFilter(int[] kernelSize)
Construct a MedianFilter with a kernel size specified by the argument. |
|
| Method Summary | |
|---|---|
void |
filterInPlaceFloat(float[] pixels,
int nCols,
int nRows,
int nSlices,
MonitorWorker worker,
boolean verbose)
Filter an array of floating-point pixel values "in place". |
static java.lang.String |
getName()
Returns the human-readable name of this filter. |
int |
getNKernelCols()
Returns the number of columns in the filter kernel. |
int |
getNKernelRows()
Returns the number of rows in the filter kernel. |
int |
getNKernelSlices()
Returns the number of slices in the filter kernel. |
static java.lang.String |
getOptionName()
Returns the name of this type of filter when specifying it in program optional arguments. |
static org.apache.commons.cli.Options |
getOptions()
Returns the options for this type of filter. |
static SpatialFilter.SpecifierPanel |
getSpecifierPanel(java.lang.String preferencesNodeName)
Returns a SpatialFilter.SpecifierPanel that can be used to set the parameters for a MedianFilter. |
static void |
main(java.lang.String[] args)
Runs a self-test of this class. |
static MedianFilter |
newInstance(org.apache.commons.cli.CommandLine commandLine,
LoadableImage image)
Creates a new MedianFilter using the supplied command line arguments. |
java.lang.String |
toString()
Returns a String describing this MedianFilter. |
| Methods inherited from class com.xinapse.filter.AbstractKernelFilter |
|---|
filter, filter, filter, filterInPlace, filterInPlace, filterInPlace, filterInPlace, filterInPlace, filterInPlace, filterInPlace, filterInPlaceBinary, filterInPlaceByte, filterInPlaceDouble, filterInPlaceInt, filterInPlaceLong, filterInPlaceShort, filterInPlaceUByte, filterInPlaceUInt, filterInPlaceUShort |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.xinapse.filter.SpatialFilter |
|---|
filter, filter, filterInPlace, filterInPlace, filterInPlace, filterInPlace |
| Constructor Detail |
|---|
public MedianFilter(int[] kernelSize)
throws java.lang.IllegalArgumentException
kernelSize - the kernel size in each direction.
java.lang.IllegalArgumentException - if any of the kernel size values is illegal.| Method Detail |
|---|
public int getNKernelCols()
AbstractKernelFilter
getNKernelCols in class AbstractKernelFilterpublic int getNKernelRows()
AbstractKernelFilter
getNKernelRows in class AbstractKernelFilterpublic int getNKernelSlices()
AbstractKernelFilter
getNKernelSlices in class AbstractKernelFilter
public static MedianFilter newInstance(org.apache.commons.cli.CommandLine commandLine,
LoadableImage image)
throws com.xinapse.util.InvalidArgumentException
commandLine - the command line from which a program is invoked.image - the image to which this filter is designed to apply. Not used in the design of
a MedianFilter.
com.xinapse.util.InvalidArgumentException
public void filterInPlaceFloat(float[] pixels,
int nCols,
int nRows,
int nSlices,
MonitorWorker worker,
boolean verbose)
throws CancelledException
AbstractKernelFilter
filterInPlaceFloat in class AbstractKernelFilterpixels - the array of image pixel values.nCols - the number of image columnsnRows - the number of image rows.nSlices - the number of image slices.worker - the MonitorWorker that may be used to cancel the filter operation.verbose - whether verbose reporting to System.out is turned on.
CancelledException - if the filter operation is cancelled by the user or
programmatically.public java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String getOptionName()
public static org.apache.commons.cli.Options getOptions()
public static SpatialFilter.SpecifierPanel getSpecifierPanel(java.lang.String preferencesNodeName)
preferencesNodeName - the preferences node name from which the initial settings
will be taken.
public static java.lang.String getName()
public static void main(java.lang.String[] args)
args - the program aguments (ignored).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||