|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.plugin.filter.ParticleAnalyzer
public class ParticleAnalyzer
Implements ImageJ's Analyze Particles command.
for each line do for each pixel in this line do if the pixel value is "inside" the threshold range then trace the edge to mark the object do the measurement fill the object with a color outside the threshold range else continue the scan
Field Summary | |
---|---|
protected Analyzer |
analyzer
|
static int |
CLEAR_WORKSHEET
Clear ImageJ console before starting. |
static int |
EXCLUDE_EDGE_PARTICLES
Do not measure particles touching edge of image. |
protected ImagePlus |
imp
|
protected ResultsTable |
rt
|
static int |
SHOW_OUTLINES
Display and image containg outlines of measured paticles. |
static int |
SHOW_PROGRESS
Display a progress bar. |
static int |
SHOW_RESULTS
Display results in the ImageJ console. |
static int |
SHOW_SIZE_DISTRIBUTION
Display a particle size distribution histogram. |
static int |
SHOW_SUMMARY
Obsolete |
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 | |
---|---|
ParticleAnalyzer()
Default constructor |
|
ParticleAnalyzer(int options,
int measurements,
ResultsTable rt,
double minSize,
double maxSize)
Construct a ParticleAnalyzer. |
Method Summary | |
---|---|
boolean |
analyze(ImagePlus imp)
Performs particle analysis on the specified image. |
boolean |
analyze(ImagePlus imp,
ImageProcessor ip)
Performs particle analysis on the specified ImagePlus and ImageProcessor. |
void |
run(ImageProcessor ip)
Filters use this method to process the image. |
static void |
savePreferences(java.util.Properties prefs)
Called by ImageJ when the user selects Quit. |
protected void |
saveResults(ImageStatistics stats,
Roi roi)
Saves statistics for one particle in a results table. |
int |
setup(java.lang.String arg,
ImagePlus imp)
This method is called once when the filter is loaded. |
boolean |
showDialog()
Displays a modal options 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 SHOW_RESULTS
public static final int SHOW_SUMMARY
public static final int SHOW_OUTLINES
public static final int EXCLUDE_EDGE_PARTICLES
public static final int SHOW_SIZE_DISTRIBUTION
public static final int SHOW_PROGRESS
public static final int CLEAR_WORKSHEET
protected ImagePlus imp
protected ResultsTable rt
protected Analyzer analyzer
Constructor Detail |
---|
public ParticleAnalyzer(int options, int measurements, ResultsTable rt, double minSize, double maxSize)
options
- a flag word created by ORing SHOW_RESULTS, SHOW_SUMMARY, etc.measurements
- a flag word created by ORing constants defined in the Measurements interfacert
- a ResultsTable where the measurements will be storedminSize
- the smallest particle size in pixelsmaxSize
- the largest particle size in pixelspublic ParticleAnalyzer()
Method Detail |
---|
public int setup(java.lang.String arg, ImagePlus imp)
PlugInFilter
setup
in interface PlugInFilter
public void run(ImageProcessor ip)
PlugInFilter
run
in interface PlugInFilter
public boolean showDialog()
public boolean analyze(ImagePlus imp)
public boolean analyze(ImagePlus imp, ImageProcessor ip)
protected void saveResults(ImageStatistics stats, Roi roi)
public static void savePreferences(java.util.Properties prefs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |