@Deprecated public class Sholl_Analysis extends Object implements ij.plugin.PlugIn, DialogListener
| Modifier and Type | Field and Description |
|---|---|
static int |
BIN_AVERAGE
Deprecated.
Flag for integration of repeated measures (2D analysis): average
|
static int |
BIN_MEDIAN
Deprecated.
Flag for integration of repeated measures (2D analysis): median
|
static int |
BIN_MODE
Deprecated.
Flag for integration of repeated measures (2D analysis): mode
|
protected static String[] |
DEGREES
Deprecated.
|
static int |
MAX_N_SPANS
Deprecated.
|
static String |
URL
Deprecated.
|
static String |
VERSION
Deprecated.
The Plugin's version
|
| Constructor and Description |
|---|
Sholl_Analysis()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
analyze2D(int xc,
int yc,
double[] radii,
double pixelSize,
int binsize,
int bintype,
ij.ImagePlus imp)
Deprecated.
|
double[] |
analyze3D(int xc,
int yc,
int zc,
double[] radii,
ij.ImagePlus img)
Deprecated.
|
void |
analyzeProfile(double[] distances,
double[] inters,
boolean threeD)
Deprecated.
Analyzes a sampled profile.
|
void |
analyzeTabularInput(File csvFile,
int rCol,
int cCol,
boolean threeD)
Deprecated.
Instructs the plugin to parse the specified file expected to contain a
sampled profile.
|
void |
analyzeTabularInput(ij.measure.ResultsTable rt,
int rCol,
int cCol,
boolean threeD)
Deprecated.
Instructs the plugin to parse the specified table expected to contain a
sampled profile.
|
boolean |
dialogItemChanged(GenericDialog gd,
AWTEvent e)
Deprecated.
Retrieves values from the dialog, disabling dialog components that are
not applicable.
|
int[][] |
getCircumferencePoints(int cx,
int cy,
int radius)
Deprecated.
|
String |
getDescription()
Deprecated.
|
sc.fiji.snt.plugin.ij1.EnhancedResultsTable |
getShollTable()
Deprecated.
Returns a reference to the plugin's "Sholl Results" table displaying
summary statistics.
|
void |
run(String arg)
Deprecated.
This method is called when the plugin is loaded.
|
void |
setCenter(int xc,
int yc,
int zc)
Deprecated.
Sets the analysis center.
|
void |
setDescription(String label,
boolean makeUnique)
Deprecated.
Associates the analysis with an identifier.
|
void |
setExportPath(String exportDir)
Deprecated.
|
void |
setExportPath(String exportDir,
boolean displaySavedFiles)
Deprecated.
|
void |
setInteractiveMode(boolean interactive)
Deprecated.
Instructs the plugin to run in headless mode or with user interaction.
|
void |
setOptions(ShollOptions options)
Deprecated.
Assigns options to the plugin.
|
void |
setPlotLabels(boolean plotLabels)
Deprecated.
Controls the inclusion of fitting details in Sholl plots.
|
void |
setPlotLabels(String booleanString)
Deprecated.
Alternative to
setPlotLabels() to be
called by IJ macros using the
call() built-in macro function |
void |
setPrecision(int precision)
Deprecated.
Sets the precision used to calculate metrics from fitted data, such as
Nav and Nm.
|
void |
setPrecision(String intString)
Deprecated.
Alternative to
setPrecision() to be called by
IJ macros using the
call() built-in macro function |
void |
setPrimaryBranches(double nBranches)
Deprecated.
|
void |
setStepRadius(double stepRadius)
Deprecated.
Sets the radius step size (shell spacing).
|
void |
setThreshold(int lower,
int upper)
Deprecated.
Sets the threshold limits.
|
void |
setUnit(String unit)
Deprecated.
Sets the unit for sampling distances.
|
void |
setVerbose(boolean verbose)
Deprecated.
|
boolean |
validateImage(ij.ImagePlus imp)
Deprecated.
Checks if image to be analyzed is valid.
|
public static final String VERSION
public static final String URL
protected static final String[] DEGREES
public static final int BIN_AVERAGE
public static final int BIN_MEDIAN
public static final int BIN_MODE
public static final int MAX_N_SPANS
public void run(String arg)
arg is specified in
plugins.config. See PlugIn.run(java.lang.String)run in interface ij.plugin.PlugInarg - If image, the plugin runs in "bitmap mode" If csv
the plugin is set for analysis of tabular data. If sample,
the plugin runs on a 2D demo image.public void setOptions(ShollOptions options)
options - the ShollOptions instance use to customize the plugin's
output.public boolean dialogItemChanged(GenericDialog gd, AWTEvent e)
dialogItemChanged in interface DialogListenergd - reference to the GenericDialoge - the event generated by the user in the dialog@Deprecated public double[] analyze3D(int xc, int yc, int zc, double[] radii, ij.ImagePlus img)
setThreshold(int, int).xc - the X position of the analysis centeryc - the Y position of the analysis centerzc - the Z position (slice) of the analysis centerradii - the sampling distancesimg - The image being analyzedsetInteractiveMode(boolean)@Deprecated public double[] analyze2D(int xc, int yc, double[] radii, double pixelSize, int binsize, int bintype, ij.ImagePlus imp)
setThreshold(int, int).xc - the X position of the analysis centeryc - the Y position of the analysis centerradii - the sampling distancespixelSize - pixel dimensions (spatial calibration)binsize - the number of samples to be retrieved at each radiusbintype - flag for integration of multiple samples:
BIN_AVERAGE, BIN_MEDIAN or BIN_MODEimp - ImageProcessor of analyzed imagesetInteractiveMode(boolean)@Deprecated public int[][] getCircumferencePoints(int cx, int cy, int radius)
cx - the X position of the analysis centercy - the Y position of the analysis centerradius - the circumference radiuspublic void setThreshold(int lower,
int upper)
Prefs.blackBackgroundlower - the lower threshold valueupper - the upper threshol valuepublic boolean validateImage(ij.ImagePlus imp)
imp - the image being analyzedpublic void setPlotLabels(boolean plotLabels)
plotLabels - If true, plotting labels will be added to plots when
performing curve fittingpublic void setPrecision(int precision)
precision - The precision value as a fraction of radius step size. Eg,
100 sets accuracy to radiusStepSize/100public void setPlotLabels(String booleanString)
setPlotLabels() to be
called by IJ macros using the
call() built-in macro function
An error message is displayed in the IJ Log window if
booleanString can not be parsed. Usage example:
call("sholl.Sholl_Analysis.setPlotLabels", "false");
booleanString - If "true", plotting labels will be added.public void setPrecision(String intString)
setPrecision() to be called by
IJ macros using the
call() built-in macro function
An error message is displayed in the IJ Log window if intString
is invalid. Usage example:
call("sholl.Sholl_Analysis.setPrecision", "1000");
intString - The string integer to set the precision in terms of radius
step size. Eg, "100" sets accuracy to
radiusStepSize/100public void analyzeTabularInput(ij.measure.ResultsTable rt,
int rCol,
int cCol,
boolean threeD)
rt - the input ResultsTablerCol - the index of the radii columncCol - the index of the intersections count columnthreeD - 3D analysis?setStepRadius(double),
validTable(ResultsTable),
setInteractiveMode(boolean)public void analyzeTabularInput(File csvFile, int rCol, int cCol, boolean threeD) throws IOException
csvFile - the input file expected to contain tabular data in any of the
formats recognized by ResultsTablerCol - the index of the radii columncCol - the index of the intersections count columnthreeD - 3D analysis?IOException - if file could be opened.setInteractiveMode(boolean),
setStepRadius(double)public void analyzeProfile(double[] distances,
double[] inters,
boolean threeD)
distances - the array containing radiiinters - the array containing intersection countsthreeD - 3D profile?setInteractiveMode(boolean)public void setPrimaryBranches(double nBranches)
nBranches - the number of primary branches to be used in the calculation
of ramification indices. Must be greater than 0.public void setExportPath(String exportDir)
exportDir - The path to the directory where results should be saved.
null not allowed.setExportPath(String, boolean)public void setExportPath(String exportDir, boolean displaySavedFiles)
exportDir - The path to the directory where results should be saved.
null not allowed. Files will only be saved if the
specified path is valid.displaySavedFiles - If saved plots and tables should be displayed.public void setVerbose(boolean verbose)
verbose - Whether details on curve fitting should be displayedpublic void setInteractiveMode(boolean interactive)
interactive - Whether dialog prompts should be displayed to collect input
from the userpublic void setDescription(String label, boolean makeUnique)
label - the label describing the analysis. It is used in the titles of
frames and images when displaying resultsmakeUnique - if true and ImageJ is already displaying a window
using the same label as title, a suffix ("-1", "-2", etc.) is
appended to label to ensure it is uniquepublic String getDescription()
public void setCenter(int xc,
int yc,
int zc)
xc - the x coordinate (in pixels)yc - the y coordinate (in pixels)zc - the z coordinate (slice number)public void setUnit(String unit)
unit - the physical unit, e.g., "mm"public void setStepRadius(double stepRadius)
stepRadius - the step size in physical unitspublic sc.fiji.snt.plugin.ij1.EnhancedResultsTable getShollTable()
Copyright © 2015–2021 Fiji. All rights reserved.