Class ContrastEnhancer
java.lang.Object
ij.plugin.ContrastEnhancer
- All Implemented Interfaces:
Measurements, PlugIn
Implements ImageJ's Process/Enhance Contrast command.
-
Field Summary
Fields inherited from interface Measurements
ADD_TO_OVERLAY, ALL_STATS, AREA, AREA_FRACTION, CENTER_OF_MASS, CENTROID, CIRCULARITY, ELLIPSE, FERET, INTEGRATED_DENSITY, INVERT_Y, KURTOSIS, LABELS, LIMIT, MAX_STANDARDS, MEAN, MEDIAN, MIN_MAX, MODE, NaN_EMPTY_CELLS, PERIMETER, RECT, SCIENTIFIC_NOTATION, SHAPE_DESCRIPTORS, SKEWNESS, SLICE, STACK_POSITION, STD_DEV -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidChanges the tone curves of images.voidThis method is called when the plugin is loaded.voidsetEqualize(boolean equalize) voidsetNormalize(boolean normalize) voidsetProcessStack(boolean processStack) voidsetSaturated(double saturated) voidsetUseStackHistogram(boolean useStackHistogram) voidstretchHistogram(ImagePlus imp, double saturated) voidstretchHistogram(ImageProcessor ip, double saturated) voidstretchHistogram(ImageProcessor ip, double saturated, ImageStatistics stats)
-
Constructor Details
-
ContrastEnhancer
public ContrastEnhancer()
-
-
Method Details
-
run
-
stretchHistogram
-
stretchHistogram
-
stretchHistogram
-
equalize
-
equalize
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 method uses a similar algorithm, but uses the square root of the histogram values, so its effects are less extreme. Hold the alt key down to use the standard histogram equalization algorithm. This code was contributed by Richard Kirk (rak@cre.canon.co.uk). -
setNormalize
public void setNormalize(boolean normalize) -
setEqualize
public void setEqualize(boolean equalize) -
setSaturated
public void setSaturated(double saturated) -
setProcessStack
public void setProcessStack(boolean processStack) -
setUseStackHistogram
public void setUseStackHistogram(boolean useStackHistogram)
-