SkeletonConverter Class Documentation#
Package: sc.fiji.snt.analysis
Class for generation of Trees from a skeletonized ImagePlus.
Methods#
Getters Methods#
- getGraphs()#
Generates a list of DirectedWeightedGraph`s from the skeleton image. Each graph corresponds to one connected component of the graph returned by `SkeletonResult.getGraph().
- getPruneMode()#
Gets the loop pruning strategy.
- getRootRoiStrategy()#
Gets the current root ROI strategy.
Returns the strategy used for handling root ROIs during skeleton conversion. If no root ROI is set, returns ROI_UNSET.
- getSingleGraph()#
Generates a single DirectedWeightedGraph`s by combining getGraphs()’s list into a single, combined graph. Typically, this method assumes that the skeletonization handles a known single component (e.g., an image of a single cell). If multiple graphs() do exist, this method requires that setRootRoi(Roi, int) has been called using ROI_CENTROID or `ROI_CENTROID_WEIGHTED.
- getSingleTree()#
Generates a single Tree from getSingleGraph(). If a ROI-based centroid has been set, Root is converted to a single node, root path with radius set to that of a circle with the same area of root-defining soma.
- getTrees()#
Generates a list of Trees from the skeleton image. Each Tree corresponds to one connected component of the graph returned by SkeletonResult.getGraph().
Setters Methods#
- setConnectComponents(boolean)#
Sets whether to connect nearby skeleton components.
Controls whether disconnected skeleton components should be connected if they are within the maximum connection distance.
- setLengthThreshold(double)#
Sets the minimum component length necessary to avoid pruning. This value is only used if pruneByLength is true.
Specifies the minimum length below which skeleton components will be pruned from the result. Negative values are set to 0.
- setMaxConnectDist(double)#
Sets the maximum distance for connecting skeleton components.
Specifies the maximum distance within which disconnected skeleton components will be connected. Values ≤ 0 are set to Double.MIN_VALUE.
- setOrigIP(ImagePlus)#
Sets the original ImagePlus to be used during voxel-based loop pruning. See AnalyzeSkeleton documentation
Specifies the original (non-skeletonized) image to be used during skeleton analysis for additional processing options.
- setPruneByLength(boolean)#
Sets whether to prune components below a threshold length from the result.
- setPruneEnds(boolean)#
Sets whether to prune end branches during skeleton analysis.
Controls whether terminal branches should be pruned during the skeleton analysis process.
- setPruneMode(int)#
Sets the loop pruning strategy. See AnalyzeSkeleton documentation
- setRootRoi(Roi, int)#
Sets the Roi enclosing the nodes to be set as root(s) in the final graphs. Must be called before retrieval of any converted data.
- setShortestPath(boolean)#
Sets whether to calculate the longest shortest-path in the skeleton result.
- setSilent(boolean)#
Sets whether to run skeleton analysis in silent mode.
Setting this to false will display both the tagged skeleton image and the shortest path image (if the shortest path calculation is enabled).
- setVerbose(boolean)#
Sets whether to run skeleton analysis in verbose mode.
Controls whether the skeleton analysis should provide detailed output messages during processing.
Other Methods#
- static main(String;)
- static skeletonize(ImagePlus, boolean)
Convenience method to skeletonize a thresholded image using Skeletonize3D_.
- static skeletonizeTimeLapse(ImagePlus, boolean)
Convenience method to skeletonize a thresholded time-lapse using Skeletonize3D_.