public class Entropy_Filter extends Object implements 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, NO_UNDO_RESET, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
Constructor and Description |
---|
Entropy_Filter() |
Modifier and Type | Method and Description |
---|---|
void |
applyEntropy(ij.process.ImageProcessor ip,
int radius,
int numBins)
Apply entropy filter to an image
|
ij.process.FloatProcessor |
getEntropy(ij.process.ImageProcessor ip,
int radius,
int numBins)
Get the entropy filter version of an image
|
void |
run(ij.process.ImageProcessor ip)
Main method when called as a plugin filter
|
int |
setup(String arg,
ij.ImagePlus imp)
Setup method
|
public void run(ij.process.ImageProcessor ip)
run
in interface ij.plugin.filter.PlugInFilter
ip
- input imagepublic int setup(String arg, ij.ImagePlus imp)
setup
in interface ij.plugin.filter.PlugInFilter
arg
- filter argumentsimp
- input imagepublic ij.process.FloatProcessor getEntropy(ij.process.ImageProcessor ip, int radius, int numBins)
ip
- input imageradius
- radius to use (in pixels)numBins
- number of bins to use in the histogrampublic void applyEntropy(ij.process.ImageProcessor ip, int radius, int numBins)
ip
- input imageradius
- radius to use (in pixels)numBins
- number of bins to use in the histogramCopyright © 2015–2021 Fiji. All rights reserved.