public class RoiConverter extends TreeAnalyzer
Path
s into (IJ1) ROIs.ROIExporterCmd
Modifier and Type | Field and Description |
---|---|
static int |
XY_PLANE
SNT's XY view (the default export plane)
|
static int |
XZ_PLANE
SNT's XZ view
|
static int |
ZY_PLANE
SNT's ZY view
|
BRANCH_ORDER, COMMON_MEASUREMENTS, INTER_NODE_DISTANCE, INTER_NODE_DISTANCE_SQUARED, LENGTH, MEAN_RADIUS, N_BRANCH_POINTS, N_NODES, NODE_RADIUS, VALUES, X_COORDINATES, Y_COORDINATES, Z_COORDINATES
Constructor and Description |
---|
RoiConverter(Tree tree)
Instantiates a new Converter.
|
RoiConverter(Tree tree,
ij.ImagePlus imp)
Instantiates a new Converter.
|
Modifier and Type | Method and Description |
---|---|
void |
convertBranchPoints(ij.gui.Overlay overlay)
Converts all the branch points associated with the parsed paths into
PointRoi s |
void |
convertPaths(ij.gui.Overlay overlay)
Converts paths into 2D polyline ROIs (segment paths)
|
void |
convertTips(ij.gui.Overlay overlay)
Converts all the tips associated with the parsed paths into
PointRoi s |
void |
setStrokeWidth(int width)
Sets the line width of converted segment paths.
|
void |
setView(int view)
Sets the exporting view for segment paths (XY by default).
|
void |
useSWCcolors(boolean useSWCcolors)
Specifies coloring of ROIs by SWC type.
|
getBranchPoints, getCableLength, getNPaths, getParsedTree, getPrimaryBranches, getPrimaryLength, getPrimaryPaths, getStrahlerRootNumber, getTable, getTerminalBranches, getTerminalLength, getTips, ignoreSWCType, main, resetRestrictions, restrictToLength, restrictToNamePattern, restrictToOrder, restrictToSize, restrictToSWCType, run, setTable, setTable, summarize, summarize, updateAndDisplayTable
public static final int XY_PLANE
public static final int ZY_PLANE
public static final int XZ_PLANE
public RoiConverter(Tree tree)
tree
- the Tree to be convertedpublic RoiConverter(Tree tree, ij.ImagePlus imp)
tree
- the Tree to be convertedimp
- the image associated with the Tree, used to properly assign C,T
positions of converted nodespublic void convertPaths(ij.gui.Overlay overlay)
overlay
- the target overlay to hold converted pathspublic void convertTips(ij.gui.Overlay overlay)
PointRoi
soverlay
- the target overlay to hold converted pointTreeAnalyzer.getTips()
public void convertBranchPoints(ij.gui.Overlay overlay)
PointRoi
soverlay
- the target overlay to hold converted pointTreeAnalyzer.getBranchPoints()
public void setView(int view)
public void useSWCcolors(boolean useSWCcolors)
useSWCcolors
- if true converted ROIs are colored according to their
SWC type integer flagpublic void setStrokeWidth(int width)
width
- the new stroke widthPath.getMeanRadius()
,
Roi.getStrokeWidth()