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 SummaryConstructors
- 
Method SummaryModifier 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- 
Measurementspublic Measurements()
 
- 
- 
Method Details- 
multiChannelpublic 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 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:
 
- 
multiChannelpublic 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 measurement
- transforms- transforms to extract the channels
- function- function to calculate the measurement from the pixels
- Returns:
 
- 
singleChannelpublic 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 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:
 
- 
singleChannelpublic 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 measurement
- transform- transform to extract the channel
- function- function to calculate the measurement from the pixels
- Returns:
 
 
-