public class TreeColorMapper extends ColorMapper
Tree
s.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BRANCH_ORDER
Flag for "Branch order" mapping.
|
static java.lang.String |
LENGTH
Flag for "Length" mapping.
|
static java.lang.String |
MEAN_RADIUS
Flag for "Path mean radius" mapping.
|
static java.lang.String |
N_BRANCH_POINTS
Flag for "No. of branch points" mapping.
|
static java.lang.String |
N_NODES
Flag for "No. of nodes" mapping.
|
static java.lang.String |
NODE_RADIUS
Flag for "Node radius" mapping.
|
static java.lang.String |
PATH_DISTANCE
Flag for "Path distance to soma" mapping.
|
static java.lang.String |
TAG_FILENAME
Flag for "Tags/filename" mapping.
|
static java.lang.String |
VALUES
See
TreeAnalyzer.VALUES . |
static java.lang.String |
X_COORDINATES
Flag for "X coordinates" mapping.
|
static java.lang.String |
Y_COORDINATES
Flag for "Y coordinates" mapping.
|
static java.lang.String |
Z_COORDINATES
Flag for "Z coordinates" mapping.
|
Constructor and Description |
---|
TreeColorMapper()
Instantiates the Colorizer.
|
TreeColorMapper(org.scijava.Context context)
Instantiates the Colorizer.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getAvalailableLuts()
Gets the available LUTs.
|
net.imglib2.display.ColorTable |
getColorTable(java.lang.String lut) |
MultiViewer2D |
getMultiViewer() |
static void |
main(java.lang.String... args) |
void |
map(Tree tree,
sholl.math.LinearProfileStats stats,
net.imglib2.display.ColorTable colorTable)
Colorizes a tree using Sholl data.
|
void |
map(Tree tree,
java.lang.String measurement,
net.imglib2.display.ColorTable colorTable)
Colorizes a tree after the specified measurement.
|
void |
map(Tree tree,
java.lang.String measurement,
java.lang.String lut)
Colorizes a tree after the specified measurement.
|
void |
mapTrees(java.util.List<Tree> trees,
java.lang.String lut)
Colorizes a list of trees, with each tree being assigned a LUT index.
|
getMinMax, map, setMinMax
public static final java.lang.String BRANCH_ORDER
public static final java.lang.String LENGTH
public static final java.lang.String N_BRANCH_POINTS
public static final java.lang.String N_NODES
public static final java.lang.String MEAN_RADIUS
public static final java.lang.String NODE_RADIUS
public static final java.lang.String X_COORDINATES
public static final java.lang.String Y_COORDINATES
public static final java.lang.String Z_COORDINATES
public static final java.lang.String VALUES
TreeAnalyzer.VALUES
.public static final java.lang.String PATH_DISTANCE
public static final java.lang.String TAG_FILENAME
public TreeColorMapper(org.scijava.Context context)
context
- the SciJava application context providing the services
required by the classpublic TreeColorMapper()
public net.imglib2.display.ColorTable getColorTable(java.lang.String lut)
public void map(Tree tree, sholl.math.LinearProfileStats stats, net.imglib2.display.ColorTable colorTable)
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.public void map(Tree tree, java.lang.String measurement, net.imglib2.display.ColorTable colorTable)
tree
- the tree to be colorizedmeasurement
- the measurement (BRANCH_ORDER
}LENGTH
,
etc.)colorTable
- the color table specifying the color mapping. Null not
allowed.public void map(Tree tree, java.lang.String measurement, java.lang.String lut)
tree
- the tree to be plottedmeasurement
- the measurement (BRANCH_ORDER
}LENGTH
,
etc.)lut
- the lookup table specifying the color mappingpublic void mapTrees(java.util.List<Tree> trees, java.lang.String lut)
trees
- the list of trees to be colorizedlut
- the lookup table specifying the color mappingpublic java.util.Set<java.lang.String> getAvalailableLuts()
public MultiViewer2D getMultiViewer()
public static void main(java.lang.String... args)