Package qupath.lib.experimental.pixels
Class ImageJProcessor
java.lang.Object
qupath.lib.experimental.pixels.ImageJProcessor
Class to generate a 
PixelProcessor when using ImageJ for the primary image representation.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreate aPixelProcessor.Builderfor an ImageJImagePlus.Create anOutputHandler.OutputToObjectConverterthat attempts to convert the output into annotation objects.static OutputHandler<ImagePlus, ImagePlus, Object> Create anOutputHandlerthat attempts to convert the output into annotation objects.Create anOutputHandler.OutputToObjectConverterthat attempts to convert the output into detection objects.static OutputHandler<ImagePlus, ImagePlus, Object> Create anOutputHandlerthat attempts to convert the output into detection objects.static ImageSupplier<ImagePlus> Create anImageSupplierthat returns an ImageJImagePlus.static MaskSupplier<ImagePlus, ImagePlus> Create aMaskSupplierthat returns an ImageJByteProcessor.static <U> OutputHandler.OutputToObjectConverter<ImagePlus, ImagePlus, U> createObjectConverter(Class<U> cls, Function<ROI, PathObject> creator) Create anOutputHandler.OutputToObjectConverterfor one specify type.createObjectConverter(Function<ROI, PathObject> creator) Create anOutputHandler.OutputToObjectConverterthat attempts to convert a range of output types into objects.
- 
Constructor Details- 
ImageJProcessorpublic ImageJProcessor()
 
- 
- 
Method Details- 
createImagePlusImageSupplierCreate anImageSupplierthat returns an ImageJImagePlus.- Returns:
 
- 
createImagePlusMaskSupplierCreate aMaskSupplierthat returns an ImageJByteProcessor.- Returns:
 
- 
createDetectionOutputHandlerCreate anOutputHandlerthat attempts to convert the output into detection objects.- Returns:
 
- 
createAnnotationOutputHandlerCreate anOutputHandlerthat attempts to convert the output into annotation objects.- Returns:
 
- 
createAnnotationConverterpublic static OutputHandler.OutputToObjectConverter<ImagePlus,ImagePlus, createAnnotationConverter()Object> Create anOutputHandler.OutputToObjectConverterthat attempts to convert the output into annotation objects.- Returns:
 
- 
createDetectionConverterpublic static OutputHandler.OutputToObjectConverter<ImagePlus,ImagePlus, createDetectionConverter()Object> Create anOutputHandler.OutputToObjectConverterthat attempts to convert the output into detection objects.- Returns:
 
- 
createObjectConverterpublic static OutputHandler.OutputToObjectConverter<ImagePlus,ImagePlus, createObjectConverterObject> (Function<ROI, PathObject> creator) Create anOutputHandler.OutputToObjectConverterthat attempts to convert a range of output types into objects.The behavior depends upon whatever the Processorreturn. For example, the converter is able to generate one or more objects from- an ImageJ Roi, or list or array ofRoiobjects
- an ImageJ Overlay
- a BinaryProcessor(creating a single object)
- a ByteProcessororShortProcessor(treated as a labeled image, to create 0 or more objects)
- another ImageProcessorwith a threshold set (handled similar to a binary image)
- an ImagePlus, after extracting theImageProcessor
 - Parameters:
- creator- the creator function to determine the type of object (e.g. detection, annotation)
- Returns:
- the converter
 
- an ImageJ 
- 
createObjectConverterpublic static <U> OutputHandler.OutputToObjectConverter<ImagePlus,ImagePlus, createObjectConverterU> (Class<U> cls, Function<ROI, PathObject> creator) Create anOutputHandler.OutputToObjectConverterfor one specify type. See #createObjectConverter(Function) for more details; this method reduces ambiguity by handling only one possible kind of output.- Type Parameters:
- U-
- Parameters:
- cls- the class to handle
- creator- the creator function to determine the type of object (e.g. detection, annotation)
- Returns:
- the converter
 
- 
builderpublic static PixelProcessor.Builder<ImagePlus,ImagePlus, builderObject> (Processor<ImagePlus, ImagePlus, Object> processor) Create aPixelProcessor.Builderfor an ImageJImagePlus. By default, this will attempt to convert any output to detection objects - but the builder may be further customized to override this behavior before building the processor.- Parameters:
- processor-
- Returns:
 
 
-