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 java.lang.String |
ID
Mapping property (dummy): Each Tree in the collection is assigned an
incremental LUT entry
|
static java.lang.String[] |
PROPERTIES |
static java.lang.String |
ROOT_NUMBER
Mapping property: Strahler root number
|
static java.lang.String |
TOTAL_LENGTH
Mapping property: Cable length
|
static java.lang.String |
TOTAL_N_BRANCH_POINTS
Mapping property: Count of all branch points
|
static java.lang.String |
TOTAL_N_TIPS
Mapping property: Count of all tips (end points)
|
Constructor and Description |
---|
MultiTreeColorMapper(java.util.Collection<Tree> trees)
Instantiates the MultiTreeColorMapper.
|
Modifier and Type | Method and Description |
---|---|
MultiViewer2D |
getMultiViewer() |
static void |
main(java.lang.String... args) |
void |
map(java.lang.String measurement,
net.imglib2.display.ColorTable colorTable) |
void |
mapRootDistanceToCentroid(AllenCompartment compartment,
net.imglib2.display.ColorTable colorTable) |
java.util.List<Tree> |
sortedMappedTrees() |
getMinMax, setMinMax
public static final java.lang.String TOTAL_LENGTH
public static final java.lang.String TOTAL_N_BRANCH_POINTS
public static final java.lang.String TOTAL_N_TIPS
public static final java.lang.String ROOT_NUMBER
public static final java.lang.String ID
public static final java.lang.String[] PROPERTIES
public MultiTreeColorMapper(java.util.Collection<Tree> trees)
trees
- the group of trees to be mapped,public void map(java.lang.String measurement, net.imglib2.display.ColorTable colorTable)
map
in class ColorMapper
public void mapRootDistanceToCentroid(AllenCompartment compartment, net.imglib2.display.ColorTable colorTable)
public java.util.List<Tree> sortedMappedTrees()
public MultiViewer2D getMultiViewer()
public static void main(java.lang.String... args)