Package qupath.lib.experimental.pixels
Class MeasurementProcessor.Measurements
java.lang.Object
qupath.lib.experimental.pixels.MeasurementProcessor.Measurements
- Enclosing class:
MeasurementProcessor
Methods to create custom measurements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmultiChannel(String name, List<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.multiChannel(String name, List<ColorTransforms.ColorTransform> transforms, Function<double[][], Double> function, Function<PathObject, ROI> roiFunction) Create a new object measurement that requires multiple channels as input.singleChannel(String name, 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.singleChannel(String name, ColorTransforms.ColorTransform transform, Function<double[], Double> function, Function<PathObject, ROI> roiFunction) Create a new object measurement that requires one channel as input.
-
Constructor Details
-
Measurements
public Measurements()
-
-
Method Details
-
multiChannel
public static MeasurementProcessor.CustomMeasurement<BufferedImage,BufferedImage> multiChannel(String name, List<ColorTransforms.ColorTransform> transforms, Function<double[][], Double> function, Function<PathObject, ROI> roiFunction) Create a new object measurement that requires multiple channels as input.- Parameters:
name- name of the measurementtransforms- transforms to extract the channelsfunction- function to calculate the measurement from the pixelsroiFunction- 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<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 measurementtransforms- transforms to extract the channelsfunction- function to calculate the measurement from the pixels- Returns:
-
singleChannel
public static MeasurementProcessor.CustomMeasurement<BufferedImage,BufferedImage> singleChannel(String name, ColorTransforms.ColorTransform transform, Function<double[], Double> function, Function<PathObject, ROI> roiFunction) Create a new object measurement that requires one channel as input.- Parameters:
name- name of the measurementtransform- transform to extract the channelfunction- function to calculate the measurement from the pixelsroiFunction- 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, 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 measurementtransform- transform to extract the channelfunction- function to calculate the measurement from the pixels- Returns:
-