Class PathObjectLazyValues

java.lang.Object
qupath.lib.lazy.objects.PathObjectLazyValues

public class PathObjectLazyValues extends Object
Helper class to create or access different LazyValue instances. These can be used to extract (possibly dynamic) measurements from objects.
  • Field Details

    • CLASSIFICATION

      public static final LazyStringValue<qupath.lib.objects.PathObject> CLASSIFICATION
      Measurement to extract a string representation of an object's classification.
    • PARENT_DISPLAYED_NAME

      public static final LazyStringValue<qupath.lib.objects.PathObject> PARENT_DISPLAYED_NAME
      Measurement to extract the displayed name of an object's parent. The displayed name is derived from PathObject.getDisplayedName() for the parent.
    • OBJECT_TYPE

      public static final LazyStringValue<qupath.lib.objects.PathObject> OBJECT_TYPE
      Measurement to extract the type of an object (e.g. Annotation, Detection, Cell).
    • OBJECT_ID

      public static final LazyStringValue<qupath.lib.objects.PathObject> OBJECT_ID
      Measurement to extract the unique ID of an object, as a string.
    • OBJECT_NAME

      public static final LazyStringValue<qupath.lib.objects.PathObject> OBJECT_NAME
      Measurement to extract the name of an object.
    • TMA_CORE_NAME

      public static final LazyStringValue<qupath.lib.objects.PathObject> 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

      public static final LazyStringValue<qupath.lib.objects.PathObject> ROI_TYPE
      Measurement to extract the name of a ROI type (e.g. Polygon, Rectangle).
    • TMA_CORE_MISSING

      public static LazyBooleanValue<qupath.lib.objects.PathObject> TMA_CORE_MISSING
    • ROI_Z_SLICE

      public static LazyNumericValue<qupath.lib.objects.PathObject> ROI_Z_SLICE
    • ROI_TIMEPOINT

      public static LazyNumericValue<qupath.lib.objects.PathObject> ROI_TIMEPOINT
    • ROI_NUM_POINTS

      public static LazyNumericValue<qupath.lib.objects.PathObject> 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

      public static LazyStringValue<qupath.lib.objects.PathObject> createMetadataMeasurement(String name)
    • 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)