|
|||||||||
| 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.FixedWeightsKernelFilter
com.xinapse.filter.LaplacianFilter
com.xinapse.filter.SharpenFilter
public final class SharpenFilter
A FixedWeightsKernelFilter for performing a sharpen filtering operation on an image.
| Nested Class Summary | |
|---|---|
static class |
SharpenFilter.SharpenSpecifierPanel
A FilterSpecifierPanel for a sharpening filter. |
| Nested classes/interfaces inherited from class com.xinapse.filter.LaplacianFilter |
|---|
LaplacianFilter.LaplacianSpecifierPanel |
| Nested classes/interfaces inherited from interface com.xinapse.filter.SpatialFilter |
|---|
SpatialFilter.SpecifierPanel |
| Field Summary |
|---|
| Fields inherited from class com.xinapse.filter.FixedWeightsKernelFilter |
|---|
weights |
| Fields inherited from interface com.xinapse.filter.SpatialFilter |
|---|
N_DOTS |
| Method Summary | |
|---|---|
static java.lang.String |
getName()
Returns the human-readable name of this filter. |
static java.lang.String |
getOptionName()
Returns the name of this type of filter when specifying it in program optional arguments. |
static SpatialFilter.SpecifierPanel |
getSpecifierPanel(java.lang.String preferencesNodeName)
Returns a SpatialFilter.SpecifierPanel that can be used to set the parameters for a SharpenFilter. |
static void |
main(java.lang.String[] args)
Runs a self-test of this class. |
static SharpenFilter |
new2DInstance(float pixelXSize,
float pixelYSize,
int kernelSize)
Creates a new 2-D SharpenFilter suitable for filtering an image with the given pixel sizes. |
static SharpenFilter |
new2DInstance(LoadableImage image,
int kernelSize)
Creates a new 2-D SharpenFilter suitable for filtering the supplied image. |
static SharpenFilter |
new3DInstance(float pixelXSize,
float pixelYSize,
float pixelZSize,
int kernelSize)
Creates a new 3-D SharpenFilter suitable for sharpening an image. |
static SharpenFilter |
new3DInstance(LoadableImage image,
int kernelSize)
Creates a new 3-D SharpenFilter suitable for sharpening the supplied image. |
static SharpenFilter |
newInstance(org.apache.commons.cli.CommandLine commandLine,
LoadableImage image)
Creates a new SharpenFilter using the supplied command line arguments. |
| Methods inherited from class com.xinapse.filter.LaplacianFilter |
|---|
getOptions |
| Methods inherited from class com.xinapse.filter.FixedWeightsKernelFilter |
|---|
add, add, convolve, copyResize, filterInPlaceBinary, filterInPlaceByte, filterInPlaceDouble, filterInPlaceFloat, filterInPlaceInt, filterInPlaceLong, filterInPlaceShort, filterInPlaceUByte, filterInPlaceUInt, filterInPlaceUShort, getNKernelCols, getNKernelRows, getNKernelSlices, scale, sumWeights, toString |
| Methods inherited from class com.xinapse.filter.AbstractKernelFilter |
|---|
filter, filter, filter, filterInPlace, filterInPlace, filterInPlace, filterInPlace, filterInPlace, filterInPlace, filterInPlace |
| 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 |
| Method Detail |
|---|
public static SharpenFilter 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.
com.xinapse.util.InvalidArgumentException
public static SharpenFilter new2DInstance(LoadableImage image,
int kernelSize)
image - the image to which this filter is designed to apply. The image pixel
size is used to scale the kernel weights.kernelSize - the (odd) kernel size for the filter.
public static SharpenFilter new2DInstance(float pixelXSize,
float pixelYSize,
int kernelSize)
pixelXSize - the pixel width.pixelYSize - the pixel height.kernelSize - the (odd) kernel size for the filter.
public static SharpenFilter new3DInstance(LoadableImage image,
int kernelSize)
throws InvalidImageException
image - the image to which this filter is designed to apply. The image pixel
sizes are used to determine the kernel weights.
InvalidImageException - if the supplied image is invalid.
public static SharpenFilter new3DInstance(float pixelXSize,
float pixelYSize,
float pixelZSize,
int kernelSize)
pixelXSize - the image horizontal pixel size used to determine the kernel weights.pixelYSize - the image vertical pixel size used to determine the kernel weights.pixelZSize - the image slice thickness used to determine the kernel weights.public static java.lang.String getOptionName()
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 | ||||||||