Package sc.fiji.snt.analysis
Class TreeColorMapper
java.lang.Object
sc.fiji.snt.analysis.ColorMapper
sc.fiji.snt.analysis.TreeColorMapper
- Direct Known Subclasses:
MultiTreeColorMapper,Viewer2D
Class for color coding
Trees.- Author:
- Tiago Ferreira
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMapping property: Internode anglestatic final StringMapping property: Internode distancestatic final StringMapping property: No. of branch pointsstatic final StringMapping property: No. of nodesstatic final StringMapping property: No. of spines/varicositiesstatic final StringMapping property: Node radiusstatic final StringMapping property: Path spine/varicosity densitystatic final StringMapping property: Path distance to somastatic final StringMapping property: Path's extension anglestatic final StringMapping property: Path's extension angle (Rel.)static final StringMapping property: Path's extension angle (XY plane)static final StringMapping property: Path's extension angle (XZ plane)static final StringMapping property: Path's extension angle (ZY plane)static final StringMapping property: Path framestatic final StringMapping property: Path lengthstatic final StringMapping property: Path mean radiusstatic final StringMapping property: Path orderstatic final StringMapping property: Sholl inters. countsstatic final StringMapping property: Horton-Strahler branch ordersstatic final StringMapping property: Tags/filenamestatic final StringMapping property: Node intensity nodesstatic final StringMapping property: X coordinatesstatic final StringMapping property: Y coordinatesstatic final StringMapping property: Z coordinatesFields inherited from class sc.fiji.snt.analysis.ColorMapper
colorTable, integerScale, luts, lutService, max, min -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates the mapper.TreeColorMapper(org.scijava.Context context) Instantiates the mapper. -
Method Summary
Modifier and TypeMethodDescriptionGets the available LUTs.net.imglib2.display.ColorTablegetColorTable(String lut) Gets the list of supported mapping metrics.Assembles aMulti-pane viewerusing all the Trees mapped so far.protected static StringgetNormalizedMeasurement(String measurement) booleanstatic voidvoidmap(Collection<? extends PointInImage> points, String measurement, String lut) Colorizes a collection of points after the specified measurement.voidColorizes a tree after the specified measurement.voidColorizes a tree after the specified measurement.voidmap(Tree tree, LinearProfileStats stats, net.imglib2.display.ColorTable colorTable) Colorizes a tree using Sholl data.voidColorizes a tree using Sholl data.protected voidmapToProperty(String measurement, net.imglib2.display.ColorTable colorTable) voidColorizes a list of trees, with each tree being assigned a LUT index.Methods inherited from class sc.fiji.snt.analysis.ColorMapper
getColor, getColorRGB, getColorTable, getMinMax, getNaNColor, initLuts, isIntegerScale, map, setMinMax, setNaNColor, unMap, unMap
-
Field Details
-
INTER_NODE_ANGLE
Mapping property: Internode angle- See Also:
-
INTER_NODE_DISTANCE
Mapping property: Internode distance- See Also:
-
PATH_AVG_SPINE_DENSITY
Mapping property: Path spine/varicosity density- See Also:
-
PATH_FRAME
Mapping property: Path frame- See Also:
-
PATH_ORDER
Mapping property: Path order- See Also:
-
PATH_EXT_ANGLE
Mapping property: Path's extension angle- See Also:
-
PATH_EXT_ANGLE_REL
Mapping property: Path's extension angle (Rel.)- See Also:
-
PATH_EXT_ANGLE_XY
Mapping property: Path's extension angle (XY plane)- See Also:
-
PATH_EXT_ANGLE_XZ
Mapping property: Path's extension angle (XZ plane)- See Also:
-
PATH_EXT_ANGLE_ZY
Mapping property: Path's extension angle (ZY plane)- See Also:
-
PATH_DISTANCE
Mapping property: Path distance to soma- See Also:
-
PATH_LENGTH
Mapping property: Path length- See Also:
-
PATH_MEAN_RADIUS
Mapping property: Path mean radius- See Also:
-
N_BRANCH_POINTS
Mapping property: No. of branch points- See Also:
-
N_NODES
Mapping property: No. of nodes- See Also:
-
N_SPINES
Mapping property: No. of spines/varicosities- See Also:
-
NODE_RADIUS
Mapping property: Node radius- See Also:
-
X_COORDINATES
Mapping property: X coordinates- See Also:
-
Y_COORDINATES
Mapping property: Y coordinates- See Also:
-
Z_COORDINATES
Mapping property: Z coordinates- See Also:
-
SHOLL_COUNTS
Mapping property: Sholl inters. counts- See Also:
-
STRAHLER_ORDERS
Mapping property: Horton-Strahler branch orders- See Also:
-
VALUES
Mapping property: Node intensity nodes- See Also:
-
TAG_FILENAME
Mapping property: Tags/filename- See Also:
-
paths
-
-
Constructor Details
-
TreeColorMapper
public TreeColorMapper(org.scijava.Context context) Instantiates the mapper.- Parameters:
context- the SciJava application context providing the services required by the class
-
TreeColorMapper
public TreeColorMapper()Instantiates the mapper. Note that because the instance is not aware of any context, script-friendly methods that use string as arguments may fail to retrieve referenced Scijava objects.
-
-
Method Details
-
getMetrics
Gets the list of supported mapping metrics.- Returns:
- the list of mapping metrics.
-
getColorTable
-
mapToProperty
-
map
Colorizes a tree using Sholl data.- Parameters:
tree- the tree to be colorizedprofile- the mapping Sholl profilecolorTable- the color table specifying the color mapping. Null not allowed.
-
map
Colorizes a tree using Sholl data.- Parameters:
tree- the tree to be colorizedstats- the LinearProfileStats instance containing the mapping profile. if a polynomial fit has been successfully performed, mapping is done against the fitted data, otherwise sampled intersections are used.colorTable- the color table specifying the color mapping. Null not allowed.
-
map
Colorizes a tree after the specified measurement.- Parameters:
tree- the tree to be mappedmeasurement- the measurement (PATH_ORDER}PATH_LENGTH, etc.)colorTable- the color table specifying the color mapping. Null not allowed.
-
map
Colorizes a collection of points after the specified measurement. Mapping bounds are automatically determined. This is a convenience method to extend color mapping to point clouds.- Parameters:
points- the points to be mappedmeasurement- the measurement (Z_COORDINATES, etc.). Note that ifpointsdo not encode a valid Tree only metrics applicable to coordinates are expected.lut- the lookup table specifying the color mapping
-
getNormalizedMeasurement
-
map
Colorizes a tree after the specified measurement. Mapping bounds are automatically determined.- Parameters:
tree- the tree to be mappedmeasurement- the measurement (PATH_ORDER}PATH_LENGTH, etc.)lut- the lookup table specifying the color mapping
-
mapTrees
Colorizes a list of trees, with each tree being assigned a LUT index.- Parameters:
trees- the list of trees to be colorizedlut- the lookup table specifying the color mapping
-
getAvailableLuts
Gets the available LUTs.- Returns:
- the set of keys, corresponding to the set of LUTs available
-
getMultiViewer
Assembles aMulti-pane viewerusing all the Trees mapped so far.- Returns:
- the multi-viewer instance
-
isNodeMapping
public boolean isNodeMapping() -
main
-