Package sc.fiji.snt.analysis
Class ShollAnalyzer
java.lang.Object
sc.fiji.snt.analysis.ShollAnalyzer
Class to retrieve Sholl metrics from a
Tree.- Author:
- Tiago Ferreira
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionShollAnalyzer(Tree tree) Instantiates a new Sholl analyzer using default settings, i.e., focused on Tree's root; using sampling step size of average inter-node distance; curve fitting enabled; and all other parameters left to defaults/auto-discovery.ShollAnalyzer(Tree tree, TreeStatistics statistics) -
Method Summary
Modifier and TypeMethodDescriptionGets theLinearProfileStatsassociated with this analyzer.Gets theNormalizedProfileStatsassociated with this analyzer.ArrayList<double[]> static voidvoidsetEnableCurveFitting(boolean enable) Sets whether curve fitting computations should be performed.voidsetPolynomialFitRange(int fromDegree, int toDegree) Sets the polynomial fit range for linear Sholl statistics.
-
Field Details
-
MEAN
- See Also:
-
MAX
- See Also:
-
MAX_FITTED
- See Also:
-
MAX_FITTED_RADIUS
- See Also:
-
POLY_FIT_DEGREE
- See Also:
-
N_MAX
- See Also:
-
SUM
- See Also:
-
N_SECONDARY_MAX
- See Also:
-
DECAY
- See Also:
-
RAMIFICATION_INDEX
- See Also:
-
-
Constructor Details
-
ShollAnalyzer
Instantiates a new Sholl analyzer using default settings, i.e., focused on Tree's root; using sampling step size of average inter-node distance; curve fitting enabled; and all other parameters left to defaults/auto-discovery.- Parameters:
tree- the Tree to be analyzed
-
ShollAnalyzer
-
-
Method Details
-
setPolynomialFitRange
public void setPolynomialFitRange(int fromDegree, int toDegree) Sets the polynomial fit range for linear Sholl statistics.- Parameters:
fromDegree- the lowest degree to be considered. Set it to -1 to skip polynomial fittoDegree- the highest degree to be considered. Set it to -1 to skip polynomial fit
-
setEnableCurveFitting
public void setEnableCurveFitting(boolean enable) Sets whether curve fitting computations should be performed.- Parameters:
enable- iftruepolynomial and linear regression on normalized Sholl data will be performed. Enabling this option may adversely affect performance.
-
getMetrics
-
getSingleValueMetrics
-
getMaximaRadii
-
getSecondaryMaxima
-
getLinearStats
Gets theLinearProfileStatsassociated with this analyzer. By default, it is set to determine the polynomial of 'best-fit' (2-20 degree range.)- Returns:
- the LinearProfileStats instance
-
getNormStats
Gets theNormalizedProfileStatsassociated with this analyzer. By default it is set to determine the regression method of 'best-fit' (log-log or semi-log) using shell volume as normalizer (if Tree has a depth component) or shell area if Tree is 2D.- Returns:
- the LinearProfileStats instance
-
main
- Throws:
InterruptedException
-