Package qupath.lib.lazy.objects
Class PathObjectLazyValues
java.lang.Object
qupath.lib.lazy.objects.PathObjectLazyValues
Helper class to create or access different
LazyValue
instances.
These can be used to extract (possibly dynamic) measurements from objects.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LazyStringValue
<PathObject> Measurement to extract a string representation of an object's classification.static final LazyStringValue
<PathObject> Measurement to extract the unique ID of an object, as a string.static final LazyStringValue
<PathObject> Measurement to extract the name of an object.static final LazyStringValue
<PathObject> Measurement to extract the type of an object (e.g.static final LazyStringValue
<PathObject> Measurement to extract the displayed name of an object's parent.static LazyNumericValue
<PathObject> static LazyNumericValue
<PathObject> static final LazyStringValue
<PathObject> Measurement to extract the name of a ROI type (e.g.static LazyNumericValue
<PathObject> static LazyBooleanValue
<PathObject> static final LazyStringValue
<PathObject> Measurement to extract the name of a TMA core, or of the TMA core that is an ancestor of the provided object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LazyNumericValue
<PathObject> createAllredIntensityMeasurement
(ImageData<?> imageData, Supplier<Double> allredMinPercentage, PathClass... pathClasses) static LazyNumericValue
<PathObject> createAllredMeasurement
(ImageData<?> imageData, Supplier<Double> allredMinPercentage, PathClass... pathClasses) static LazyNumericValue
<PathObject> createAllredProportionMeasurement
(ImageData<?> imageData, Supplier<Double> allredMinPercentage, PathClass... pathClasses) static LazyNumericValue
<PathObject> createBaseClassCountsMeasurement
(ImageData<?> imageData, PathClass pathClass) static LazyNumericValue
<PathObject> createDetectionClassDensityMeasurement
(ImageData<?> imageData, PathClass pathClass) static LazyNumericValue
<PathObject> createDetectionCountMeasurement
(ImageData<?> imageData) Create a measurement that counts the number of detections within an object's ROI.static LazyNumericValue
<PathObject> createExactClassCountsMeasurement
(ImageData<?> imageData, PathClass pathClass) static LazyNumericValue
<PathObject> createHScoreMeasurement
(ImageData<?> imageData, PathClass... pathClasses) static LazyStringValue
<PathObject> createImageNameMeasurement
(ImageData<?> imageData) Create a measurement that extracts the current name from an ImageData.static LazyNumericValue
<PathObject> createLivePixelClassificationMeasurement
(PixelClassificationMeasurementManager manager, String name) Create a measurement for displaying live measurements from a pixel classifier.static LazyNumericValue
<PathObject> static LazyStringValue
<PathObject> static LazyNumericValue
<PathObject> createPositivePercentageMeasurement
(ImageData<?> imageData, PathClass... pathClasses) static LazyNumericValue
<PathObject> createROIAreaMeasurement
(ImageData<?> imageData) Create a measurement that extracts the area of an object's ROI.static LazyNumericValue
<PathObject> createROICentroidX
(ImageData<?> imageData) Create a measurement that extracts the x-coordinate of the centroid of an object's ROI.static LazyNumericValue
<PathObject> createROICentroidY
(ImageData<?> imageData) Create a measurement that extracts the y-coordinate of the centroid of an object's ROI.static LazyNumericValue
<PathObject> createROILengthMeasurement
(ImageData<?> imageData) Create a measurement that extracts the length of a line ROI.static LazyNumericValue
<PathObject> createROIPerimeterMeasurement
(ImageData<?> imageData) Create a measurement that extracts the perimeter of an object's ROI.
-
Field Details
-
CLASSIFICATION
Measurement to extract a string representation of an object's classification. -
PARENT_DISPLAYED_NAME
Measurement to extract the displayed name of an object's parent. The displayed name is derived fromPathObject.getDisplayedName()
for the parent. -
OBJECT_TYPE
Measurement to extract the type of an object (e.g. Annotation, Detection, Cell). -
OBJECT_ID
Measurement to extract the unique ID of an object, as a string. -
OBJECT_NAME
Measurement to extract the name of an object. -
TMA_CORE_NAME
Measurement to extract the name of a TMA core, or of the TMA core that is an ancestor of the provided object. This is useful to assign objects to specific cores. -
ROI_TYPE
Measurement to extract the name of a ROI type (e.g. Polygon, Rectangle). -
TMA_CORE_MISSING
-
ROI_Z_SLICE
-
ROI_TIMEPOINT
-
ROI_NUM_POINTS
-
-
Constructor Details
-
PathObjectLazyValues
public PathObjectLazyValues()
-
-
Method Details
-
createImageNameMeasurement
Create a measurement that extracts the current name from an ImageData.- Parameters:
imageData
- the image data from which the name should be read- Returns:
-
createROICentroidX
Create a measurement that extracts the x-coordinate of the centroid of an object's ROI.- Parameters:
imageData
- the image data used for calibration- Returns:
-
createROICentroidY
Create a measurement that extracts the y-coordinate of the centroid of an object's ROI.- Parameters:
imageData
- the image data used for calibration- Returns:
-
createROIAreaMeasurement
Create a measurement that extracts the area of an object's ROI.- Parameters:
imageData
- the image data used for calibration- Returns:
-
createROIPerimeterMeasurement
Create a measurement that extracts the perimeter of an object's ROI.- Parameters:
imageData
- the image data used for calibration- Returns:
-
createROILengthMeasurement
Create a measurement that extracts the length of a line ROI.- Parameters:
imageData
- the image data used for calibration- Returns:
-
createDetectionCountMeasurement
Create a measurement that counts the number of detections within an object's ROI.- Parameters:
imageData
- the image data containing the object hierarchy- Returns:
-
createLivePixelClassificationMeasurement
public static LazyNumericValue<PathObject> createLivePixelClassificationMeasurement(PixelClassificationMeasurementManager manager, String name) Create a measurement for displaying live measurements from a pixel classifier.- Parameters:
manager
-name
-- Returns:
-
createMetadataMeasurement
-
createMeasurementListMeasurement
-
createHScoreMeasurement
public static LazyNumericValue<PathObject> createHScoreMeasurement(ImageData<?> imageData, PathClass... pathClasses) -
createPositivePercentageMeasurement
public static LazyNumericValue<PathObject> createPositivePercentageMeasurement(ImageData<?> imageData, PathClass... pathClasses) -
createDetectionClassDensityMeasurement
public static LazyNumericValue<PathObject> createDetectionClassDensityMeasurement(ImageData<?> imageData, PathClass pathClass) -
createBaseClassCountsMeasurement
public static LazyNumericValue<PathObject> createBaseClassCountsMeasurement(ImageData<?> imageData, PathClass pathClass) -
createExactClassCountsMeasurement
public static LazyNumericValue<PathObject> createExactClassCountsMeasurement(ImageData<?> imageData, PathClass pathClass) -
createAllredIntensityMeasurement
public static LazyNumericValue<PathObject> createAllredIntensityMeasurement(ImageData<?> imageData, Supplier<Double> allredMinPercentage, PathClass... pathClasses) -
createAllredProportionMeasurement
public static LazyNumericValue<PathObject> createAllredProportionMeasurement(ImageData<?> imageData, Supplier<Double> allredMinPercentage, PathClass... pathClasses) -
createAllredMeasurement
public static LazyNumericValue<PathObject> createAllredMeasurement(ImageData<?> imageData, Supplier<Double> allredMinPercentage, PathClass... pathClasses)
-