Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/plugin/filter/Analyzer.html
Дата изменения: Thu Dec 2 23:03:10 2010 Дата индексирования: Mon Oct 1 23:17:15 2012 Кодировка: Поисковые слова: star |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij.plugin.filter.Analyzer
public class Analyzer
This plugin implements ImageJ's Analyze/Measure and Analyze/Set Measurements commands.
Field Summary | |
---|---|
static java.awt.Color |
darkBlue
|
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 | |
---|---|
Analyzer()
|
|
Analyzer(ImagePlus imp)
Constructs a new Analyzer using the specified ImagePlus object and the current measurement options and default results table. |
|
Analyzer(ImagePlus imp,
int measurements,
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. |
static int |
getCounter()
Returns the current measurement count. |
static int |
getMeasurements()
|
static int |
getPrecision()
Returns the number of digits displayed to the right of decimal point. |
static ImagePlus |
getRedirectImage(ImagePlus currentImage)
Returns the image selected in the "Redirect To:" popup menu of the Analyze/Set Measurements dialog or null if "None" is selected, the image was not found or the image is not the same size as currentImage . |
static ResultsTable |
getResultsTable()
Returns the default results table. |
static float[] |
getUMeans()
Returns an array containing the first 20 uncalibrated means. |
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. |
java.lang.String |
n(double n)
Converts a number to a formatted string with a tab at the end. |
static boolean |
resetCounter()
Sets the measurement counter to zero. |
void |
run(ImageProcessor ip)
Filters use this method to process the image. |
static void |
savePreferences(java.util.Properties prefs)
Called once when ImageJ quits. |
void |
saveResults(ImageStatistics stats,
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)
|
static void |
setPrecision(int decimalPlaces)
Sets the number of digits displayed to the right of decimal point. |
static void |
setRedirectImage(ImagePlus imp)
Set the "Redirect To" image. |
static void |
setResultsTable(ResultsTable rt)
|
static void |
setUnsavedMeasurements(boolean b)
|
int |
setup(java.lang.String arg,
ImagePlus imp)
This method is called once when the filter is loaded. |
void |
summarize()
|
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
Constructor Detail |
---|
public Analyzer()
public Analyzer(ImagePlus imp)
public Analyzer(ImagePlus imp, int measurements, ResultsTable rt)
Method Detail |
---|
public int setup(java.lang.String arg, ImagePlus imp)
PlugInFilter
For Plugin-filters specifying the FINAL_PROCESSING flag, the setup method will be called again, this time with arg = "final" after all other processing is done.
setup
in interface PlugInFilter
public void run(ImageProcessor ip)
PlugInFilter
null
.
run
in interface PlugInFilter
public void measure()
public static boolean isRedirectImage()
true
if an image is selected in the "Redirect To:"
popup menu of the Analyze/Set Measurements dialog box.
public static void setRedirectImage(ImagePlus imp)
public static ImagePlus getRedirectImage(ImagePlus currentImage)
currentImage
.
public void saveResults(ImageStatistics stats, Roi roi)
public void displayResults()
public void updateHeadings()
public java.lang.String n(double n)
public void summarize()
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 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(ResultsTable rt)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |