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
|
displayService, innerBranches, primaryBranches, statusService, table, terminalBranches, tips, tree
Constructor and Description |
---|
RoiConverter(Path path,
ij.ImagePlus imp)
Instantiates a new Converter.
|
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()
Converts all the branch poisnts associated with the parsed paths into
PointRoi s, adding them to the overlay of the image specified
in the constructor. |
void |
convertBranchPoints(Overlay overlay)
Converts all the branch points associated with the parsed paths into
PointRoi s |
void |
convertPaths()
Converts paths into 2D polyline ROIs (segment paths), adding them to the
overlay of the image specified in the constructor.
|
void |
convertPaths(Overlay overlay)
Converts paths into 2D polyline ROIs (segment paths)
|
void |
convertTips()
Converts all the tips associated with the parsed paths into
PointRoi s, adding them to the overlay of the image specified
in the constructor. |
void |
convertTips(Overlay overlay)
Converts all the tips associated with the parsed paths into
PointRoi s |
List<PolygonRoi> |
getROIs(Path path) |
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.
|
getAllMetrics, getAnnotations, getAnnotations, getAvgBranchLength, getAvgContraction, getAvgFractalDimension, getAvgFragmentation, getAvgPartitionAsymmetry, getAvgRemoteBifAngle, getBranches, getBranchPoints, getBranchPoints, getCableLength, getCableLength, getCableLength, getCableLengthNorm, getCol, getDepth, getFractalDimension, getHeight, getHighestPathOrder, getInnerBranches, getInnerLength, getMetric, getMetricInternal, getMetrics, getMetricWithoutChecks, getNBranches, getNbranchPoints, getNbranchPointsNorm, getNextRow, getNFittedPaths, getNoSpinesOrVaricosities, getNPaths, getNtips, getNtipsNorm, getParsedTree, getPartitionAsymmetry, getPrimaryBranches, getPrimaryLength, getPrimaryPaths, getRemoteBifAngles, getShollAnalyzer, getSinglePointPaths, getSpineOrVaricosityDensity, getStrahlerAnalyzer, getStrahlerBifurcationRatio, getStrahlerNumber, getSWCTypesAsString, getTable, getTerminalBranches, getTerminalLength, getTips, getTips, getWidth, ignoreSWCType, isSameOrParentAnnotation, isValid, main, measure, measure, resetRestrictions, restrictToLength, restrictToNamePattern, restrictToOrder, restrictToSize, restrictToSWCType, run, setTable, setTable, summarize, summarize, updateAndDisplayTable
cancel, getCancelReason, isCanceled
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setContext
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(Path path, ij.ImagePlus imp)
path
- the Path to be convertedimp
- the image associated with the Tree, used to properly assign C,T
positions of converted nodespublic 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(Overlay overlay)
overlay
- the target overlay to hold converted pathspublic List<PolygonRoi> getROIs(Path path)
public void convertTips(Overlay overlay)
PointRoi
soverlay
- the target overlay to hold converted pointTreeAnalyzer.getTips()
public void convertPaths() throws IllegalArgumentException
IllegalArgumentException
- if this RoiConverter instance is not aware
of any imageconvertPaths(Overlay)
public void convertTips() throws IllegalArgumentException
PointRoi
s, adding them to the overlay of the image specified
in the constructor.IllegalArgumentException
- if this RoiConverter instance is not aware
of any imageconvertTips(Overlay)
public void convertBranchPoints() throws IllegalArgumentException
PointRoi
s, adding them to the overlay of the image specified
in the constructor.IllegalArgumentException
- if this RoiConverter instance is not aware
of any imageconvertBranchPoints(Overlay)
public void convertBranchPoints(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()
Copyright © 2015–2021 Fiji. All rights reserved.