Modifier and Type | Field and Description |
---|---|
protected static int |
FUNC_0_GEODESIC
The geodesic (i.e., "path") distance from a node to the tree root
|
protected static int |
FUNC_1_RADIAL
The euclidean (i.e., "straight line") distance between a node and the tree root
|
protected static int |
FUNC_2_CENTRIFUGAL
The centrifugal branch order of a node
|
protected static int |
FUNC_3_PATH_ORDER
The
Path order of a node. |
protected static int |
FUNC_4_X
The X coordinate of a node
|
protected static int |
FUNC_5_Y
The Y coordinate of a node
|
protected static int |
FUNC_6_Z
The Z coordinate of a node
|
protected static int |
FUNC_UNKNOWN |
Constructor and Description |
---|
PersistenceAnalyzer(Tree tree) |
Modifier and Type | Method and Description |
---|---|
ArrayList<Double> |
getBarcode(String descriptor)
Gets the 'barcode' for the specified filter function.
|
static List<String> |
getDescriptors()
Gets a list of supported descriptor functions.
|
ArrayList<ArrayList<Double>> |
getDiagram(String descriptor)
Gets the persistence diagram.
|
ArrayList<ArrayList<SWCPoint>> |
getDiagramNodes(String descriptor)
Gets the persistence diagram nodes.
|
double[] |
getLandscape(String descriptor,
int numLandscapes,
int resolution)
Gets the persistence landscape as an N-dimensional vector, where N == numLandscapes x resolution.
|
static void |
main(String[] args) |
protected static final int FUNC_UNKNOWN
protected static final int FUNC_0_GEODESIC
protected static final int FUNC_1_RADIAL
protected static final int FUNC_2_CENTRIFUGAL
protected static final int FUNC_3_PATH_ORDER
Path
order of a node.Path.getOrder()
,
Constant Field Valuesprotected static final int FUNC_4_X
protected static final int FUNC_5_Y
protected static final int FUNC_6_Z
public PersistenceAnalyzer(Tree tree)
public static List<String> getDescriptors()
public ArrayList<ArrayList<Double>> getDiagram(String descriptor) throws sc.fiji.snt.analysis.UnknownMetricException, IllegalArgumentException
descriptor
- A descriptor for the filter function as per
getDescriptors()
(case insensitive), such as
radial
, geodesic
, centrifugal
(reverse Strahler), etc.UnknownMetricException
- If descriptor
is not validIllegalArgumentException
- If the tree
's graph could not be
obtainedpublic ArrayList<Double> getBarcode(String descriptor) throws sc.fiji.snt.analysis.UnknownMetricException, IllegalArgumentException
descriptor
- A descriptor for the filter function as per
getDescriptors()
(case insensitive), such as
radial
, geodesic
, centrifugal
(reverse Strahler), etc.UnknownMetricException
- If descriptor
is not validIllegalArgumentException
- If the tree
's graph could not be
obtainedpublic ArrayList<ArrayList<SWCPoint>> getDiagramNodes(String descriptor)
descriptor
- A descriptor for the filter function as per
getDescriptors()
(case insensitive), such as
radial
, geodesic
, centrifugal
(reverse Strahler), etc.UnknownMetricException
- If descriptor
is not valid.IllegalArgumentException
- If the tree
's graph could not be
obtainedpublic double[] getLandscape(String descriptor, int numLandscapes, int resolution)
descriptor
- A descriptor for the filter function as per
getDescriptors()
(case insensitive), such as
radial
, geodesic
, centrifugal
(reverse Strahler), etc.numLandscapes
- the number of piecewise-linear functions to output.resolution
- the number of samples for all piecewise-linear functions.public static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.