Class MultiTreeColorMapper


public class MultiTreeColorMapper extends TreeColorMapper
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 Details

  • Constructor Details

    • MultiTreeColorMapper

      public MultiTreeColorMapper(Collection<Tree> trees)
      Instantiates the MultiTreeColorMapper.
      Parameters:
      trees - the group of trees to be mapped,
  • Method Details

    • getMetrics

      public static List<String> getMetrics()
      Gets the list of all supported mapping metrics.
      Returns:
      the list of mapping metrics.
    • getMetrics

      public static List<String> getMetrics(String type)
      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

      public static List<String> getSingleValueMetrics()
      Gets the list of single-value mapping metrics.
      Returns:
      the list of single-value mapping metrics.
    • map

      public void map(String measurement, net.imglib2.display.ColorTable colorTable)
      Description copied from class: ColorMapper
      Sets 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:
      map in class ColorMapper
      Parameters:
      measurement - the measurement to be mapped
      colorTable - the color table to use for mapping
    • mapRootDistanceToCentroid

      public void mapRootDistanceToCentroid(AllenCompartment compartment, net.imglib2.display.ColorTable colorTable)
    • sortedMappedTrees

      public List<Tree> sortedMappedTrees()
    • getMultiViewer

      public MultiViewer2D getMultiViewer()
      Description copied from class: TreeColorMapper
      Assembles a Multi-pane viewer using all the Trees mapped so far.
      Overrides:
      getMultiViewer in class TreeColorMapper
      Returns:
      the multi-viewer instance
    • main

      public static void main(String... args)