Package qupath.lib.experimental.pixels
Interface ImageSupplier<S>
- Type Parameters:
S
- the type of image
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface for supplying an image region for processing.
- Since:
- v0.5.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageSupplier
<BufferedImage> Create a image supplier that returns a buffered image.getImage
(Parameters<S, ?> parameters) Get the image to process.
-
Method Details
-
getImage
Get the image to process. This should correspond to the region request and image server stored in the parameters.This has access to the parameters, but must not call
parameters.getImage()
orparameters.getMask()
to avoid the risk of infinite recursion.- Parameters:
parameters
-- Returns:
- an image based upon the stored parameters
- Throws:
IOException
-
createBufferedImageSupplier
Create a image supplier that returns a buffered image.- Returns:
-