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 SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
CLASSIFICATIONMeasurement to extract a string representation of an object's classification.
- 
PARENT_DISPLAYED_NAMEMeasurement to extract the displayed name of an object's parent. The displayed name is derived fromPathObject.getDisplayedName()for the parent.
- 
OBJECT_TYPEMeasurement to extract the type of an object (e.g. Annotation, Detection, Cell).
- 
OBJECT_IDMeasurement to extract the unique ID of an object, as a string.
- 
OBJECT_NAMEMeasurement to extract the name of an object.
- 
TMA_CORE_NAMEMeasurement 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_TYPEMeasurement 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- 
PathObjectLazyValuespublic PathObjectLazyValues()
 
- 
- 
Method Details- 
createImageNameMeasurementCreate a measurement that extracts the current name from an ImageData.- Parameters:
- imageData- the image data from which the name should be read
- Returns:
 
- 
createROICentroidXCreate a measurement that extracts the x-coordinate of the centroid of an object's ROI.- Parameters:
- imageData- the image data used for calibration
- Returns:
 
- 
createROICentroidYCreate a measurement that extracts the y-coordinate of the centroid of an object's ROI.- Parameters:
- imageData- the image data used for calibration
- Returns:
 
- 
createROIAreaMeasurementCreate a measurement that extracts the area of an object's ROI.- Parameters:
- imageData- the image data used for calibration
- Returns:
 
- 
createROIPerimeterMeasurementCreate a measurement that extracts the perimeter of an object's ROI.- Parameters:
- imageData- the image data used for calibration
- Returns:
 
- 
createROILengthMeasurementCreate a measurement that extracts the length of a line ROI.- Parameters:
- imageData- the image data used for calibration
- Returns:
 
- 
createDetectionCountMeasurementCreate a measurement that counts the number of detections within an object's ROI.- Parameters:
- imageData- the image data containing the object hierarchy
- Returns:
 
- 
createLivePixelClassificationMeasurementpublic 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
- 
createHScoreMeasurementpublic static LazyNumericValue<PathObject> createHScoreMeasurement(ImageData<?> imageData, PathClass... pathClasses) 
- 
createPositivePercentageMeasurementpublic static LazyNumericValue<PathObject> createPositivePercentageMeasurement(ImageData<?> imageData, PathClass... pathClasses) 
- 
createDetectionClassDensityMeasurementpublic static LazyNumericValue<PathObject> createDetectionClassDensityMeasurement(ImageData<?> imageData, PathClass pathClass) 
- 
createBaseClassCountsMeasurementpublic static LazyNumericValue<PathObject> createBaseClassCountsMeasurement(ImageData<?> imageData, PathClass pathClass) 
- 
createExactClassCountsMeasurementpublic static LazyNumericValue<PathObject> createExactClassCountsMeasurement(ImageData<?> imageData, PathClass pathClass) 
- 
createAllredIntensityMeasurementpublic static LazyNumericValue<PathObject> createAllredIntensityMeasurement(ImageData<?> imageData, Supplier<Double> allredMinPercentage, PathClass... pathClasses) 
- 
createAllredProportionMeasurementpublic static LazyNumericValue<PathObject> createAllredProportionMeasurement(ImageData<?> imageData, Supplier<Double> allredMinPercentage, PathClass... pathClasses) 
- 
createAllredMeasurementpublic static LazyNumericValue<PathObject> createAllredMeasurement(ImageData<?> imageData, Supplier<Double> allredMinPercentage, PathClass... pathClasses) 
 
-