|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.beans.masks.results.Analyzer2
public class Analyzer2
This plugin implements ImageJ's Analyze/Measure and Analyze/Set Measurements commands.
Field Summary | |
---|---|
static java.awt.Color |
darkBlue
|
(package private) static int |
firstParticle
|
(package private) static int |
lastParticle
|
static int |
markWidth
|
static int |
precision
|
Fields inherited from interface 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, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING |
Fields inherited from interface ij.measure.Measurements |
---|
AREA, AREA_FRACTION, CENTER_OF_MASS, CENTROID, CIRCULARITY, ELLIPSE, FERET, INTEGRATED_DENSITY, INVERT_Y, KURTOSIS, LABELS, LIMIT, MAX_STANDARDS, MEAN, MEDIAN, MIN_MAX, MODE, PERIMETER, RECT, SCIENTIFIC_NOTATION, SHAPE_DESCRIPTORS, SKEWNESS, SLICE, STACK_POSITION, STD_DEV |
Constructor Summary | |
---|---|
Analyzer2()
|
|
Analyzer2(ij.ImagePlus imp)
Constructs a new Analyzer using the specified ImagePlus object and the current measurement options and default results table. |
|
Analyzer2(ij.ImagePlus imp,
int measurements,
ij.measure.ResultsTable rt)
Construct a new Analyzer using an ImagePlus object and private measurement options and results table. |
Method Summary | |
---|---|
void |
displayResults()
Writes the last row in the system results table to the Results window. |
(package private) void |
doSetDialog()
|
(package private) double |
getArea(java.awt.Polygon p)
|
static int |
getCounter()
Returns the current measurement count. |
(package private) java.lang.String |
getFileName()
|
static int |
getMeasurements()
|
static int |
getPrecision()
Returns the number of digits displayed to the right of decimal point. |
static ij.ImagePlus |
getRedirectImage(ij.ImagePlus currentImage)
|
(package private) ij.process.ImageStatistics |
getRedirectStats(int measurements,
ij.gui.Roi roi)
|
static ij.measure.ResultsTable |
getResultsTable()
Returns the default results table. |
static float[] |
getUMeans()
Returns an array containing the first 20 uncalibrated means. |
(package private) void |
incrementCounter()
|
static boolean |
isRedirectImage()
Returns true if an image is selected in the "Redirect To:"
popup menu of the Analyze/Set Measurements dialog box. |
void |
measure()
Measures the image or selection and adds the results to the default results table. |
(package private) void |
measureAngle(ij.gui.Roi roi)
|
(package private) void |
measureLength(ij.gui.Roi roi)
|
(package private) void |
measurePoint(ij.gui.Roi roi)
|
java.lang.String |
n(double n)
Converts a number to a formatted string with a tab at the end. |
(package private) boolean |
reset()
|
static boolean |
resetCounter()
Sets the measurement counter to zero. |
void |
run(ij.process.ImageProcessor ip)
|
(package private) void |
savePoints(ij.gui.Roi roi)
|
static void |
savePreferences(java.util.Properties prefs)
Called once when ImageJ quits. |
void |
saveResults(ij.process.ImageStatistics stats,
ij.gui.Roi roi)
Saves the measurements specified in the "Set Measurements" dialog, or by calling setMeasurements(), in the default results table. |
static void |
setDefaultHeadings()
Sets the default headings ("Area", "Mean", etc.). |
static void |
setMeasurement(int option,
boolean state)
Sets the specified system-wide measurement option. |
static void |
setMeasurements(int measurements)
Sets the system-wide measurement options. |
static void |
setOption(java.lang.String option,
boolean b)
|
(package private) void |
setOptions(ij.gui.GenericDialog gd)
|
static void |
setPrecision(int decimalPlaces)
Sets the number of digits displayed to the right of decimal point. |
static void |
setRedirectImage(ij.ImagePlus imagePlus)
|
static void |
setResultsTable(ij.measure.ResultsTable rt)
|
static void |
setUnsavedMeasurements(boolean b)
|
int |
setup(java.lang.String arg,
ij.ImagePlus imp)
|
void |
summarize()
|
(package private) void |
summarizeAreas()
|
void |
updateHeadings()
Redisplays the results table. |
static double |
updateY(double y,
int imageHeight)
Returns an updated Y coordinate based on the current "Invert Y Coordinates" flag. |
static int |
updateY(int y,
int imageHeight)
Returns an updated Y coordinate based on the current "Invert Y Coordinates" flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.awt.Color darkBlue
public static int markWidth
public static int precision
static int firstParticle
static int lastParticle
Constructor Detail |
---|
public Analyzer2()
public Analyzer2(ij.ImagePlus imp)
public Analyzer2(ij.ImagePlus imp, int measurements, ij.measure.ResultsTable rt)
Method Detail |
---|
public int setup(java.lang.String arg, ij.ImagePlus imp)
setup
in interface ij.plugin.filter.PlugInFilter
public void run(ij.process.ImageProcessor ip)
run
in interface ij.plugin.filter.PlugInFilter
void doSetDialog()
void setOptions(ij.gui.GenericDialog gd)
public void measure()
boolean reset()
public static void setRedirectImage(ij.ImagePlus imagePlus)
public static ij.ImagePlus getRedirectImage(ij.ImagePlus currentImage)
public static boolean isRedirectImage()
true
if an image is selected in the "Redirect To:"
popup menu of the Analyze/Set Measurements dialog box.
ij.process.ImageStatistics getRedirectStats(int measurements, ij.gui.Roi roi)
void measurePoint(ij.gui.Roi roi)
void measureAngle(ij.gui.Roi roi)
void measureLength(ij.gui.Roi roi)
public void saveResults(ij.process.ImageStatistics stats, ij.gui.Roi roi)
final double getArea(java.awt.Polygon p)
void savePoints(ij.gui.Roi roi)
java.lang.String getFileName()
public void displayResults()
public void updateHeadings()
public java.lang.String n(double n)
void incrementCounter()
public void summarize()
void summarizeAreas()
public static int getCounter()
public static boolean resetCounter()
public static void setUnsavedMeasurements(boolean b)
public static int getMeasurements()
public static void setMeasurements(int measurements)
public static void setMeasurement(int option, boolean state)
public static void savePreferences(java.util.Properties prefs)
public static float[] getUMeans()
public static ij.measure.ResultsTable getResultsTable()
public static int getPrecision()
public static void setPrecision(int decimalPlaces)
public static int updateY(int y, int imageHeight)
public static double updateY(double y, int imageHeight)
public static void setDefaultHeadings()
public static void setOption(java.lang.String option, boolean b)
public static void setResultsTable(ij.measure.ResultsTable rt)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |