Class DensityMapUI
java.lang.Object
qupath.process.gui.commands.density.DensityMapUI
UI elements associated with density maps.
- Author:
- Pete Bankhead
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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).static Pane
createSaveDensityMapPane
(ObjectExpression<Project<BufferedImage>> project, ObjectExpression<DensityMaps.DensityMapBuilder> densityMap, StringProperty savedName) Create a pane that can be used to save aDensityMaps.DensityMapBuilder
, with standardized display and prompts.
-
Field Details
-
ANY_CLASS
Ignore classification (accept all objects). Generated with a UUID for uniqueness, and because it should not be serialized. -
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 aDensityMaps.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 viewersimageData
- expression returning theImageData
to usebuilder
- expression returning theDensityMaps.DensityMapBuilder
to usedensityMapName
- 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
-