Package qupath.lib.gui.measure
Class PathObjectListWrapper
java.lang.Object
qupath.lib.gui.measure.PathObjectListWrapper
Helper class to wrap a collection of PathObjects that should be measured.
This provides an unmodifiable list of the objects, and performs a single pass through the objects to determine key information that is useful for determining which measurements to show.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathObjectListWrappercreate(qupath.lib.images.ImageData<?> imageData, Collection<? extends qupath.lib.objects.PathObject> pathObjects) Create a warpper containing the specified objects.static PathObjectListWrappercreate(qupath.lib.images.ImageData<?> imageData, Predicate<qupath.lib.objects.PathObject> predicate) Create a wrapper that includes all objects selected by the specified predicate.static PathObjectListWrapperforAnnotations(qupath.lib.images.ImageData<?> imageData) Create a wrapper including all annotations.static PathObjectListWrapperforCells(qupath.lib.images.ImageData<?> imageData) Create a wrapper containing all cells.static PathObjectListWrapperforDetections(qupath.lib.images.ImageData<?> imageData) Create a wrapper including all detections.static PathObjectListWrapperforRoot(qupath.lib.images.ImageData<?> imageData) Create a wrapper including only the root object.static PathObjectListWrapperforTiles(qupath.lib.images.ImageData<?> imageData) Create a wrapper containing all tile objects.static PathObjectListWrapperforTmaCores(qupath.lib.images.ImageData<?> imageData) Create a wrapper containing all TMA cores.
-
Method Details
-
create
public static PathObjectListWrapper create(qupath.lib.images.ImageData<?> imageData, Collection<? extends qupath.lib.objects.PathObject> pathObjects) Create a warpper containing the specified objects.- Parameters:
imageData-pathObjects-- Returns:
-
create
public static PathObjectListWrapper create(qupath.lib.images.ImageData<?> imageData, Predicate<qupath.lib.objects.PathObject> predicate) Create a wrapper that includes all objects selected by the specified predicate.- Parameters:
imageData-predicate-- Returns:
-
forRoot
Create a wrapper including only the root object.- Parameters:
imageData-- Returns:
-
forAnnotations
Create a wrapper including all annotations.- Parameters:
imageData-- Returns:
-
forDetections
Create a wrapper including all detections.- Parameters:
imageData-- Returns:
-
forCells
Create a wrapper containing all cells.- Parameters:
imageData-- Returns:
-
forTiles
Create a wrapper containing all tile objects.- Parameters:
imageData-- Returns:
-
forTmaCores
Create a wrapper containing all TMA cores.- Parameters:
imageData-- Returns:
-