Class DensityMapUI

java.lang.Object
qupath.process.gui.commands.density.DensityMapUI

public class DensityMapUI extends Object
UI elements associated with density maps.
Author:
Pete Bankhead
  • Field Details

    • ANY_CLASS

      public static final PathClass ANY_CLASS
      Ignore classification (accept all objects). Generated with a UUID for uniqueness, and because it should not be serialized.
    • ANY_POSITIVE_CLASS

      public static final PathClass ANY_POSITIVE_CLASS
      Accept any positive classification, including 1+, 2+, 3+. Generated with a UUID for uniqueness, and because it should not be serialized.
  • Constructor Details

    • DensityMapUI

      public DensityMapUI()
  • Method Details

    • createSaveDensityMapPane

      public static Pane createSaveDensityMapPane(ObjectExpression<Project<BufferedImage>> project, ObjectExpression<DensityMaps.DensityMapBuilder> densityMap, StringProperty savedName)
      Create a pane that can be used to save a DensityMaps.DensityMapBuilder, with standardized display and prompts.
      Parameters:
      project -
      densityMap -
      savedName -
      Returns:
    • createButtonPane

      public static Pane createButtonPane(QuPathGUI qupath, ObjectExpression<ImageData<BufferedImage>> imageData, ObjectExpression<DensityMaps.DensityMapBuilder> builder, StringExpression densityMapName, ObjectExpression<PixelClassificationOverlay> overlay, boolean enableUnsavedButton)
      Create a pane containing standardized buttons associated with processing a density map (find hotspots, threshold, export map). Note that because density maps need to reflect the current hierarchy, but should be relatively fast to compute (at low resolution), the full density map is generated upon request.
      Parameters:
      qupath - QuPathGUI instance, used to identify viewers
      imageData - expression returning the ImageData to use
      builder - expression returning the DensityMaps.DensityMapBuilder to use
      densityMapName - name of the density map, if it has been saved (otherwise null). This is used for writing workflow steps.
      overlay - optional overlay; if present, this could be used by commands to update display (e.g. by temporarily setting a color model).
      enableUnsavedButton - add button to enable buttons even if no name is available (indicating the map has not been saved).
      Returns:
      a pane that may be added to a stage