Class MeasurementProcessor.Measurements

java.lang.Object
qupath.lib.experimental.pixels.MeasurementProcessor.Measurements
Enclosing class:
MeasurementProcessor

public static class MeasurementProcessor.Measurements extends Object
Methods to create custom measurements.
  • Constructor Details

    • Measurements

      public Measurements()
  • Method Details

    • multiChannel

      public static MeasurementProcessor.CustomMeasurement<BufferedImage,BufferedImage> multiChannel(String name, List<qupath.lib.images.servers.ColorTransforms.ColorTransform> transforms, Function<double[][],Double> function, Function<qupath.lib.objects.PathObject,qupath.lib.roi.interfaces.ROI> roiFunction)
      Create a new object measurement that requires multiple channels as input.
      Parameters:
      name - name of the measurement
      transforms - transforms to extract the channels
      function - function to calculate the measurement from the pixels
      roiFunction - function to select a ROI from an object (generally the main ROI or nucleus)
      Returns:
    • multiChannel

      public static MeasurementProcessor.CustomMeasurement<BufferedImage,BufferedImage> multiChannel(String name, List<qupath.lib.images.servers.ColorTransforms.ColorTransform> transforms, Function<double[][],Double> function)
      Create a new object measurement that requires multiple channels as input, using the main ROI of the object as a mask.
      Parameters:
      name - name of the measurement
      transforms - transforms to extract the channels
      function - function to calculate the measurement from the pixels
      Returns:
    • singleChannel

      public static MeasurementProcessor.CustomMeasurement<BufferedImage,BufferedImage> singleChannel(String name, qupath.lib.images.servers.ColorTransforms.ColorTransform transform, Function<double[],Double> function, Function<qupath.lib.objects.PathObject,qupath.lib.roi.interfaces.ROI> roiFunction)
      Create a new object measurement that requires one channel as input.
      Parameters:
      name - name of the measurement
      transform - transform to extract the channel
      function - function to calculate the measurement from the pixels
      roiFunction - function to select a ROI from an object (generally the main ROI or nucleus)
      Returns:
    • singleChannel

      public static MeasurementProcessor.CustomMeasurement<BufferedImage,BufferedImage> singleChannel(String name, qupath.lib.images.servers.ColorTransforms.ColorTransform transform, Function<double[],Double> function)
      Create a new object measurement that requires one channel as input, using the main ROI of the object as a mask.
      Parameters:
      name - name of the measurement
      transform - transform to extract the channel
      function - function to calculate the measurement from the pixels
      Returns: