Package sc.fiji.snt.analysis
Class MultiTreeColorMapper
java.lang.Object
sc.fiji.snt.analysis.ColorMapper
sc.fiji.snt.analysis.TreeColorMapper
sc.fiji.snt.analysis.MultiTreeColorMapper
Class for color coding groups of
Trees.
After a mapping property and a color table (LUT) are specified, the mapping proceeds as follows: 1) Each Tree in the group is measured for the mapping property; 2) each measurement is mapped to a LUT entry that is used to color each Tree. Mapping limits can be optionally specified
- Author:
- Tiago Ferreira
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMapping property: Assigned Tree valuestatic final StringMapping property: Cable lengthstatic final StringMapping property: Highestpath orderstatic final StringMapping property (dummy): Each Tree in the collection is assigned an incremental LUT entrystatic final StringMapping property: Count of all branchesstatic final StringMapping property: Count of all tips (end points)static final StringMapping property:Horton-Strahler numberFields inherited from class sc.fiji.snt.analysis.TreeColorMapper
INTER_NODE_ANGLE, INTER_NODE_DISTANCE, N_BRANCH_POINTS, N_NODES, N_SPINES, NODE_RADIUS, PATH_AVG_SPINE_DENSITY, PATH_DISTANCE, PATH_EXT_ANGLE, PATH_EXT_ANGLE_REL, PATH_EXT_ANGLE_XY, PATH_EXT_ANGLE_XZ, PATH_EXT_ANGLE_ZY, PATH_FRAME, PATH_LENGTH, PATH_MEAN_RADIUS, PATH_ORDER, paths, SHOLL_COUNTS, STRAHLER_ORDERS, TAG_FILENAME, VALUES, X_COORDINATES, Y_COORDINATES, Z_COORDINATESFields inherited from class sc.fiji.snt.analysis.ColorMapper
colorTable, integerScale, luts, lutService, max, min -
Constructor Summary
ConstructorsConstructorDescriptionMultiTreeColorMapper(Collection<Tree> trees) Instantiates the MultiTreeColorMapper. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of all supported mapping metrics.getMetrics(String type) Gets the list of supported mapping metrics.Assembles aMulti-pane viewerusing all the Trees mapped so far.Gets the list of single-value mapping metrics.static voidvoidSets up the color mapping for the specified measurement using the given color table.voidmapRootDistanceToCentroid(AllenCompartment compartment, net.imglib2.display.ColorTable colorTable) Methods inherited from class sc.fiji.snt.analysis.TreeColorMapper
getAvailableLuts, getColorTable, getNormalizedMeasurement, isNodeMapping, map, map, map, map, map, mapToProperty, mapTreesMethods inherited from class sc.fiji.snt.analysis.ColorMapper
getColor, getColorRGB, getColorTable, getMinMax, getNaNColor, initLuts, isIntegerScale, setMinMax, setNaNColor, unMap, unMap
-
Field Details
-
ASSIGNED_VALUE
Mapping property: Assigned Tree value- See Also:
-
CABLE_LENGTH
Mapping property: Cable length- See Also:
-
ID
Mapping property (dummy): Each Tree in the collection is assigned an incremental LUT entry- See Also:
-
HIGHEST_PATH_ORDER
Mapping property: Highestpath order- See Also:
-
N_BRANCHES
Mapping property: Count of all branches- See Also:
-
N_TIPS
Mapping property: Count of all tips (end points)- See Also:
-
STRAHLER_NUMBER
Mapping property:Horton-Strahler number- See Also:
-
-
Constructor Details
-
MultiTreeColorMapper
Instantiates the MultiTreeColorMapper.- Parameters:
trees- the group of trees to be mapped,
-
-
Method Details
-
getMetrics
Gets the list of all supported mapping metrics.- Returns:
- the list of mapping metrics.
-
getMetrics
Gets the list of supported mapping metrics.- Parameters:
type- Either 'all' (MultiTreeColorMapper and TreeColorMapper metrics) or 'default' (MultiTreeColorMapper only)- Returns:
- the list of mapping metrics.
-
getSingleValueMetrics
Gets the list of single-value mapping metrics.- Returns:
- the list of single-value mapping metrics.
-
map
Description copied from class:ColorMapperSets up the color mapping for the specified measurement using the given color table.This method configures the ColorMapper to use the specified measurement and color table for mapping values to colors. The actual mapping implementation is left to extending classes.
- Overrides:
mapin classColorMapper- Parameters:
measurement- the measurement to be mappedcolorTable- the color table to use for mapping
-
mapRootDistanceToCentroid
public void mapRootDistanceToCentroid(AllenCompartment compartment, net.imglib2.display.ColorTable colorTable) -
sortedMappedTrees
-
getMultiViewer
Description copied from class:TreeColorMapperAssembles aMulti-pane viewerusing all the Trees mapped so far.- Overrides:
getMultiViewerin classTreeColorMapper- Returns:
- the multi-viewer instance
-
main
-