ij.plugin.filter
Class Equalizer
java.lang.Object
ij.plugin.filter.Equalizer
- All Implemented Interfaces:
- PlugInFilter
public class Equalizer
- extends java.lang.Object
- implements PlugInFilter
Implements ImageJ's Equalize command. It changes the tone curves of
images. It should bring up the detail in the flat regions of your image.
Histogram Equalization can enhance meaningless detail and hide
important but small high-contrast features. This plugin uses a
similar algorithm, but uses the square root of the histogram
values, so its effects are less extreme. Hold the alt key down, or set
'arg' to "classic", to use the standard histogram equalization algorithm.
This code was contributed by Richard Kirk (rak@cre.canon.co.uk).
Fields inherited from interface ij.plugin.filter.PlugInFilter |
DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, ROI_REQUIRED, STACK_REQUIRED, SUPPORTS_MASKING |
Method Summary |
void |
run(ImageProcessor ip)
Filters use this method to process the image. |
int |
setup(java.lang.String arg,
ImagePlus imp)
Set 'arg' to "classic" to use the standard histogram equalization algorithm. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Equalizer
public Equalizer()
setup
public int setup(java.lang.String arg,
ImagePlus imp)
- Set 'arg' to "classic" to use the standard histogram equalization algorithm.
- Specified by:
setup
in interface PlugInFilter
run
public void run(ImageProcessor ip)
- Description copied from interface:
PlugInFilter
- Filters use this method to process the image. If the
SUPPORTS_STACKS flag was set, it is called for each slice in
a stack. Image/J will lock the image before calling
this method and unlock it when the filter is finished.
- Specified by:
run
in interface PlugInFilter