Package qupath.lib.experimental.pixels
Class Parameters.Builder<S,T>
java.lang.Object
qupath.lib.experimental.pixels.Parameters.Builder<S,T>
- Type Parameters:
S
- the image typeT
- the mask type
- Enclosing class:
Parameters<S,
T>
Builder class for
Parameters
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionParameters
<S, T> build()
Build the parameters.imageData
(ImageData<BufferedImage> imageData) Set the image data.imageFunction
(ImageSupplier<S> function) Function used ot lazily read the image.maskFunction
(MaskSupplier<S, T> function) Function used to lazily create a mask corresponding to the image for a specified ROI.parent
(PathObject parent) Set the parent object.parentProxy
(PathObject parentProxy) Optionally set a temporary object to use as a parent.region
(RegionRequest region) Specify the region to use for processing.server
(ImageServer<BufferedImage> server) Set the server.tile
(TileRequest tile) Specify the tile relevant for processing.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageData
Set the image data.- Parameters:
imageData
-- Returns:
-
server
Set the server. This is optional, for cases when processing should be applied to a different image from that stored in the image data.- Parameters:
server
-- Returns:
-
region
Specify the region to use for processing.- Parameters:
region
-- Returns:
- See Also:
-
tile
Specify the tile relevant for processing. If the regions are available as tile requests, these should be used instead of region requests - because they enable more accurate contour tracing across tile boundaries.- Parameters:
tile
-- Returns:
- See Also:
-
imageFunction
Function used ot lazily read the image.- Parameters:
function
-- Returns:
-
maskFunction
Function used to lazily create a mask corresponding to the image for a specified ROI.- Parameters:
function
-- Returns:
-
parent
Set the parent object.- Parameters:
parent
-- Returns:
-
parentProxy
Optionally set a temporary object to use as a parent. This is useful for tiled processing, when the parent object may be too large to process in a single region.- Parameters:
parentProxy
-- Returns:
-
build
Build the parameters.- Returns:
-