public class NormalizeLocalContrast extends AbstractBlockFilter
Modifier and Type | Field and Description |
---|---|
protected boolean |
cent |
protected static boolean |
center |
protected NormalizeLocalContrast[] |
nlcs |
protected static double |
standardDeviations |
protected double |
stds |
protected boolean |
stret |
protected static boolean |
stretch |
blockRadiusX, blockRadiusY, brx, bry, flags, fps, pip
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, NO_UNDO_RESET, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
Constructor and Description |
---|
NormalizeLocalContrast() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyParameters() |
boolean |
dialogItemChanged(GenericDialog gd,
AWTEvent e) |
protected String |
dialogTitle() |
protected void |
init(ij.ImagePlus imp) |
protected void |
process(int i) |
static void |
run(ij.process.ImageProcessor ip,
int brx,
int bry,
float stds,
boolean cent,
boolean stret)
Apply local contrast enhancement to and
ImageProcessor . |
int |
showDialog(ij.ImagePlus imp,
String command,
ij.plugin.filter.PlugInFilterRunner pfr) |
run, setNPasses, setup, toByte, toRGB, toShort
protected static double standardDeviations
protected double stds
protected static boolean center
protected boolean cent
protected static boolean stretch
protected boolean stret
protected NormalizeLocalContrast[] nlcs
protected String dialogTitle()
dialogTitle
in class AbstractBlockFilter
protected void init(ij.ImagePlus imp)
init
in class AbstractBlockFilter
public int showDialog(ij.ImagePlus imp, String command, ij.plugin.filter.PlugInFilterRunner pfr)
showDialog
in interface ij.plugin.filter.ExtendedPlugInFilter
showDialog
in class AbstractBlockFilter
public boolean dialogItemChanged(GenericDialog gd, AWTEvent e)
dialogItemChanged
in interface DialogListener
dialogItemChanged
in class AbstractBlockFilter
protected void copyParameters()
copyParameters
in class AbstractBlockFilter
protected void process(int i)
process
in class AbstractBlockFilter
public static void run(ij.process.ImageProcessor ip, int brx, int bry, float stds, boolean cent, boolean stret)
ImageProcessor
.
The method performs best when you adjust the ImageProcessor
s
min and max range such that a region of interest in the image has
optimal contrast and spans the full range.ip
- brx
- block widthbry
- block heightstds
- in case that the contrast is to be stretched, how many STDs
wide should it becent
- local contrast range at the estimated mean (the original
mean is at (max-min)/2), that is mean is mapped to min+(max-min)/2.stret
- stretch contrast such that mean-stds*STD is mapped to min
and mean+stds*STD is mapped to max (if cent is true) otherwise only
the scaling is performed such that max-min = 2*stds*STDCopyright © 2015–2021 Fiji. All rights reserved.