public class MultiTreeColorMapper extends ColorMapper
Tree
s.
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
Modifier and Type | Field and Description |
---|---|
static String |
ASSIGNED_VALUE
Mapping property: Assigned Tree value
|
static String |
HIGHEST_PATH_ORDER
Mapping property: Highest
path order |
static String |
ID
Mapping property (dummy): Each Tree in the collection is assigned an
incremental LUT entry
|
static String |
LENGTH
Mapping property: Cable length
|
static String |
N_BRANCH_POINTS
Mapping property: Count of all branch points
|
static String |
N_BRANCHES
Mapping property: Count of all branches
|
static String |
N_TIPS
Mapping property: Count of all tips (end points)
|
static String[] |
PROPERTIES |
static String |
STRAHLER_NUMBER
Mapping property:
Horton-Strahler number |
colorTable, integerScale, max, min
Constructor and Description |
---|
MultiTreeColorMapper(Collection<Tree> trees)
Instantiates the MultiTreeColorMapper.
|
Modifier and Type | Method and Description |
---|---|
static List<String> |
getMetrics()
Gets the list of supported mapping metrics.
|
MultiViewer2D |
getMultiViewer() |
protected String |
getNormalizedMeasurement(String measurement) |
static void |
main(String... args) |
void |
map(String measurement,
ColorTable colorTable) |
void |
mapRootDistanceToCentroid(AllenCompartment compartment,
ColorTable colorTable) |
List<Tree> |
sortedMappedTrees() |
protected String |
tryReallyHardToGuessMetric(String guess) |
getColor, getColorRGB, getColorTable, getMinMax, setMinMax
public static final String LENGTH
public static final String N_BRANCH_POINTS
public static final String N_TIPS
public static final String N_BRANCHES
public static final String STRAHLER_NUMBER
Horton-Strahler number
public static final String HIGHEST_PATH_ORDER
path order
public static final String ASSIGNED_VALUE
public static final String ID
public static final String[] PROPERTIES
public MultiTreeColorMapper(Collection<Tree> trees)
trees
- the group of trees to be mapped,public static List<String> getMetrics()
public void map(String measurement, ColorTable colorTable)
map
in class ColorMapper
public void mapRootDistanceToCentroid(AllenCompartment compartment, ColorTable colorTable)
public MultiViewer2D getMultiViewer()
public static void main(String... args)
Copyright © 2015–2021 Fiji. All rights reserved.