Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/plugin/filter/UnsharpMask.html
Дата изменения: Thu Dec 2 23:03:10 2010 Дата индексирования: Mon Oct 1 23:32:04 2012 Кодировка: Поисковые слова: п п п р п р п р п р п |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij.plugin.filter.UnsharpMask
public class UnsharpMask
This plugin-filter implements ImageJ's Unsharp Mask command. Unsharp masking subtracts a blurred copy of the image and rescales the image to obtain the same contrast of large (low-frequency) structures as in the input image. This is equivalent to adding a high-pass filtered image and thus sharpens the image. "Radius (Sigma)" is the standard deviation (blur radius) of the Gaussian blur that is subtracted. "Mask Weight" determines the strength of filtering, where "Mask Weight"=1 would be an infinite weight of the high-pass filtered image that is added.
Field Summary |
---|
Fields inherited from interface ij.plugin.filter.ExtendedPlugInFilter |
---|
KEEP_PREVIEW |
Fields inherited from interface ij.plugin.filter.PlugInFilter |
---|
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING |
Constructor Summary | |
---|---|
UnsharpMask()
|
Method Summary | |
---|---|
boolean |
dialogItemChanged(GenericDialog gd,
java.awt.AWTEvent e)
This method is invoked by a Generic Dialog if any of the inputs have changed (CANCEL does not trigger it; OK and running the dialog from a macro only trigger the first DialogListener added to a GenericDialog). |
void |
run(ImageProcessor ip)
This method is invoked for each slice or color channel. |
void |
setNPasses(int nPasses)
Since most computing time is spent in GaussianBlur, forward the information about the number of passes to Gaussian Blur. |
int |
setup(java.lang.String arg,
ImagePlus imp)
Method to return types supported |
void |
sharpenFloat(FloatProcessor fp,
double sigma,
float weight)
Unsharp Mask filtering of a float image. |
int |
showDialog(ImagePlus imp,
java.lang.String command,
PlugInFilterRunner pfr)
Ask the user for the parameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnsharpMask()
Method Detail |
---|
public int setup(java.lang.String arg, ImagePlus imp)
setup
in interface PlugInFilter
arg
- Not used by this pluginimp
- The image to be filtered
public void run(ImageProcessor ip)
run
in interface PlugInFilter
ip
- The image, slice or channel to filterpublic void sharpenFloat(FloatProcessor fp, double sigma, float weight)
public int showDialog(ImagePlus imp, java.lang.String command, PlugInFilterRunner pfr)
showDialog
in interface ExtendedPlugInFilter
imp
- The active image already passed in the
setup(arg, imp)
call. It will be null, however, if
the NO_IMAGE_REQUIRED
flag has been set.command
- The command that has led to the invocation of
the plugin-filter. Useful as a title for the dialog.pfr
- The PlugInFilterRunner calling this plugin-filter.
It can be passed to a GenericDialog by addPreviewCheckbox
to enable preview by calling the run(ip)
method of this
plugin-filter. pfr
can be also used later for calling back
the PlugInFilterRunner, e.g., to obtain the slice number
currently processed by run(ip)
.
PlugInFilter
and
ExtendedPlugInFilter
.public boolean dialogItemChanged(GenericDialog gd, java.awt.AWTEvent e)
DialogListener
dialogItemChanged
in interface DialogListener
gd
- A reference to the GenericDialog.e
- The event that has been generated by the user action in the dialog.
Note that e
is null
if the
dialogItemChanged method is called after the user has pressed the
OK button or if the GenericDialog has read its parameters from a
macro.
public void setNPasses(int nPasses)
setNPasses
in interface ExtendedPlugInFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |