|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij.plugin.filter.MaximumFinder
public class MaximumFinder
This ImageJ plug-in filter creates a mask where the local maxima of the current image are marked (255; unmarked pixels 0). The plug-in can also create watershed-segmented particles (assume a landscape of inverted heights: maxima of the images are now water sinks. For each point in the image, the sink that the water goes to determines which particle it belongs to. Pixels with a level below the lower threshold can be left unprocessed. This plugin works with ROIs, including non-rectangular ROIs. Since this plug-in creates a separate output image it processes only single images or slices, no stacks. version 09-Nov-2006 Michael Schmid version 21-Nov-2006 Wayne Rasband. Adds "Display Point Selection" option and "Count" output type.
Field Summary | |
---|---|
static int |
COUNT
Output type no image, only count maxima |
static int |
IN_TOLERANCE
Output type all points around the maximum within the tolerance |
static int |
MAXIMA_EXACT
Output type all points at exactly the level of the maximum |
static int |
SEGMENTED
Output type watershed-segmented image |
static int |
SINGLE_POINTS
Output type single points |
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 |
Constructor Summary | |
---|---|
MaximumFinder()
|
Method Summary | |
---|---|
ByteProcessor |
findMaxima(ImageProcessor ip,
double tolerance,
double threshold,
int outputType,
boolean excludeOnEdges,
boolean isEDM)
Here the processing is done: Find the maxima of an image (8, 16, 32 bit) |
void |
run(ImageProcessor ip)
The plugin is inferred from ImageJ by this method |
int |
setup(java.lang.String arg,
ImagePlus imp)
Method to return types supported and about dialog |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SINGLE_POINTS
public static final int MAXIMA_EXACT
public static final int IN_TOLERANCE
public static final int SEGMENTED
public static final int COUNT
Constructor Detail |
---|
public MaximumFinder()
Method Detail |
---|
public int setup(java.lang.String arg, ImagePlus imp)
setup
in interface PlugInFilter
arg
- if "about", displays 'about...' dialog
if "again", does filtering with the same parameters again (without asking)imp
- unused
public void run(ImageProcessor ip)
run
in interface PlugInFilter
ip
- the image to be filtered)public ByteProcessor findMaxima(ImageProcessor ip, double tolerance, double threshold, int outputType, boolean excludeOnEdges, boolean isEDM)
ip
- The image subject to filteringtolerance
- Height tolerance: maxima are accepted only if protruding more than this value from the ridge to a higher maximumthreshold
- minimum height of a maximum (uncalibrated); for no minimum height set it to ImageProcessor.NO_THRESHOLDoutputType
- What to mark in output image: SINGLE_POINTS, MAXIMA_EXACT, IN_TOLERANCE or SEGMENTEDexcludeOnEdges
- Whether to exclude edge maximaisEDM
- Whether the image is a 16-bit Euclidian Distance Map
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |