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<qupath.lib.objects.PathObject> Measurement to extract a string representation of an object's classification.static final LazyStringValue<qupath.lib.objects.PathObject> Measurement to extract the unique ID of an object, as a string.static final LazyStringValue<qupath.lib.objects.PathObject> Measurement to extract the name of an object.static final LazyStringValue<qupath.lib.objects.PathObject> Measurement to extract the type of an object (e.g.static final LazyStringValue<qupath.lib.objects.PathObject> Measurement to extract the displayed name of an object's parent.static LazyNumericValue<qupath.lib.objects.PathObject> static LazyNumericValue<qupath.lib.objects.PathObject> static final LazyStringValue<qupath.lib.objects.PathObject> Measurement to extract the name of a ROI type (e.g.static LazyNumericValue<qupath.lib.objects.PathObject> static LazyBooleanValue<qupath.lib.objects.PathObject> static final LazyStringValue<qupath.lib.objects.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<qupath.lib.objects.PathObject> createAllredIntensityMeasurement(qupath.lib.images.ImageData<?> imageData, Supplier<Double> allredMinPercentage, qupath.lib.objects.classes.PathClass... pathClasses) static LazyNumericValue<qupath.lib.objects.PathObject> createAllredMeasurement(qupath.lib.images.ImageData<?> imageData, Supplier<Double> allredMinPercentage, qupath.lib.objects.classes.PathClass... pathClasses) static LazyNumericValue<qupath.lib.objects.PathObject> createAllredProportionMeasurement(qupath.lib.images.ImageData<?> imageData, Supplier<Double> allredMinPercentage, qupath.lib.objects.classes.PathClass... pathClasses) static LazyNumericValue<qupath.lib.objects.PathObject> createBaseClassCountsMeasurement(qupath.lib.images.ImageData<?> imageData, qupath.lib.objects.classes.PathClass pathClass) static LazyNumericValue<qupath.lib.objects.PathObject> createDetectionClassDensityMeasurement(qupath.lib.images.ImageData<?> imageData, qupath.lib.objects.classes.PathClass pathClass) static LazyNumericValue<qupath.lib.objects.PathObject> createDetectionCountMeasurement(qupath.lib.images.ImageData<?> imageData) Create a measurement that counts the number of detections within an object's ROI.static LazyNumericValue<qupath.lib.objects.PathObject> createExactClassCountsMeasurement(qupath.lib.images.ImageData<?> imageData, qupath.lib.objects.classes.PathClass pathClass) static LazyNumericValue<qupath.lib.objects.PathObject> createHScoreMeasurement(qupath.lib.images.ImageData<?> imageData, qupath.lib.objects.classes.PathClass... pathClasses) static LazyStringValue<qupath.lib.objects.PathObject> createImageNameMeasurement(qupath.lib.images.ImageData<?> imageData) Create a measurement that extracts the current name from an ImageData.static LazyNumericValue<qupath.lib.objects.PathObject> createLivePixelClassificationMeasurement(PixelClassificationMeasurementManager manager, String name) Create a measurement for displaying live measurements from a pixel classifier.static LazyNumericValue<qupath.lib.objects.PathObject> static LazyStringValue<qupath.lib.objects.PathObject> static LazyNumericValue<qupath.lib.objects.PathObject> createPositivePercentageMeasurement(qupath.lib.images.ImageData<?> imageData, qupath.lib.objects.classes.PathClass... pathClasses) static LazyNumericValue<qupath.lib.objects.PathObject> createROIAreaMeasurement(qupath.lib.images.ImageData<?> imageData) Create a measurement that extracts the area of an object's ROI.static LazyNumericValue<qupath.lib.objects.PathObject> createROICentroidX(qupath.lib.images.ImageData<?> imageData) Create a measurement that extracts the x-coordinate of the centroid of an object's ROI.static LazyNumericValue<qupath.lib.objects.PathObject> createROICentroidY(qupath.lib.images.ImageData<?> imageData) Create a measurement that extracts the y-coordinate of the centroid of an object's ROI.static LazyNumericValue<qupath.lib.objects.PathObject> createROILengthMeasurement(qupath.lib.images.ImageData<?> imageData) Create a measurement that extracts the length of a line ROI.static LazyNumericValue<qupath.lib.objects.PathObject> createROIPerimeterMeasurement(qupath.lib.images.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
public static LazyStringValue<qupath.lib.objects.PathObject> createImageNameMeasurement(qupath.lib.images.ImageData<?> imageData) 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
public static LazyNumericValue<qupath.lib.objects.PathObject> createROICentroidX(qupath.lib.images.ImageData<?> imageData) 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
public static LazyNumericValue<qupath.lib.objects.PathObject> createROICentroidY(qupath.lib.images.ImageData<?> imageData) 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
public static LazyNumericValue<qupath.lib.objects.PathObject> createROIAreaMeasurement(qupath.lib.images.ImageData<?> imageData) Create a measurement that extracts the area of an object's ROI.- Parameters:
imageData- the image data used for calibration- Returns:
-
createROIPerimeterMeasurement
public static LazyNumericValue<qupath.lib.objects.PathObject> createROIPerimeterMeasurement(qupath.lib.images.ImageData<?> imageData) Create a measurement that extracts the perimeter of an object's ROI.- Parameters:
imageData- the image data used for calibration- Returns:
-
createROILengthMeasurement
public static LazyNumericValue<qupath.lib.objects.PathObject> createROILengthMeasurement(qupath.lib.images.ImageData<?> imageData) Create a measurement that extracts the length of a line ROI.- Parameters:
imageData- the image data used for calibration- Returns:
-
createDetectionCountMeasurement
public static LazyNumericValue<qupath.lib.objects.PathObject> createDetectionCountMeasurement(qupath.lib.images.ImageData<?> imageData) 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<qupath.lib.objects.PathObject> createLivePixelClassificationMeasurement(PixelClassificationMeasurementManager manager, String name) Create a measurement for displaying live measurements from a pixel classifier.- Parameters:
manager-name-- Returns:
-
createMetadataMeasurement
-
createMeasurementListMeasurement
public static LazyNumericValue<qupath.lib.objects.PathObject> createMeasurementListMeasurement(String name) -
createHScoreMeasurement
public static LazyNumericValue<qupath.lib.objects.PathObject> createHScoreMeasurement(qupath.lib.images.ImageData<?> imageData, qupath.lib.objects.classes.PathClass... pathClasses) -
createPositivePercentageMeasurement
public static LazyNumericValue<qupath.lib.objects.PathObject> createPositivePercentageMeasurement(qupath.lib.images.ImageData<?> imageData, qupath.lib.objects.classes.PathClass... pathClasses) -
createDetectionClassDensityMeasurement
public static LazyNumericValue<qupath.lib.objects.PathObject> createDetectionClassDensityMeasurement(qupath.lib.images.ImageData<?> imageData, qupath.lib.objects.classes.PathClass pathClass) -
createBaseClassCountsMeasurement
public static LazyNumericValue<qupath.lib.objects.PathObject> createBaseClassCountsMeasurement(qupath.lib.images.ImageData<?> imageData, qupath.lib.objects.classes.PathClass pathClass) -
createExactClassCountsMeasurement
public static LazyNumericValue<qupath.lib.objects.PathObject> createExactClassCountsMeasurement(qupath.lib.images.ImageData<?> imageData, qupath.lib.objects.classes.PathClass pathClass) -
createAllredIntensityMeasurement
public static LazyNumericValue<qupath.lib.objects.PathObject> createAllredIntensityMeasurement(qupath.lib.images.ImageData<?> imageData, Supplier<Double> allredMinPercentage, qupath.lib.objects.classes.PathClass... pathClasses) -
createAllredProportionMeasurement
public static LazyNumericValue<qupath.lib.objects.PathObject> createAllredProportionMeasurement(qupath.lib.images.ImageData<?> imageData, Supplier<Double> allredMinPercentage, qupath.lib.objects.classes.PathClass... pathClasses) -
createAllredMeasurement
public static LazyNumericValue<qupath.lib.objects.PathObject> createAllredMeasurement(qupath.lib.images.ImageData<?> imageData, Supplier<Double> allredMinPercentage, qupath.lib.objects.classes.PathClass... pathClasses)
-