Package qupath.lib.experimental.pixels
Class Parameters<S,T>
java.lang.Object
qupath.lib.experimental.pixels.Parameters<S,T>
- Type Parameters:
S
- the image typeT
- the mask type
Parameters for use with a
PixelProcessor
.- Since:
- v0.5.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S,
T> Parameters.Builder <S, T> builder()
Create a new builder for parameters.getImage()
Get the image to process.Get the image data.getMask()
Get the mask associated with the main ROI or the parent object, or null if no mask is available.Get the mask associated with any ROI, or null if no mask is available.Get the parent object.Get the parent, or a proxy parent if one has been specified.Get the region request.Get the server.Get the tile request, if available.
-
Method Details
-
getImageData
Get the image data.- Returns:
-
getServer
Get the server. This is often the accessed fromgetImageData()
, but in some cases it may be different (e.g. if the processing should be applied to a transformed image).- Returns:
-
getRegionRequest
Get the region request.- Returns:
-
getTileRequest
Get the tile request, if available. This should be used when the region request is derived at a specific tile resolution, because it is able to provide more accurate tile coordinates without rounding errors.- Returns:
-
getImage
Get the image to process. This may return a cached value, so it is important that it is not modified by the caller.- Returns:
- Throws:
IOException
-
getMask
Get the mask associated with the main ROI or the parent object, or null if no mask is available. Note that the mask returned should correspond to the same region asgetImage()
- and not the bounds of the ROI.- Returns:
- Throws:
IOException
-
getMask
Get the mask associated with any ROI, or null if no mask is available. Note that the mask returned should correspond to the same region asgetImage()
- and not the bounds of the ROI.- Parameters:
roi
-- Returns:
- Throws:
IOException
-
getParent
Get the parent object.- Returns:
- See Also:
-
getParentOrProxy
Get the parent, or a proxy parent if one has been specified. The proxy parent is used to provide a temporary parent object for tiled processing, when using the parent directly may be problematic (e.g. because the region is too large).- Returns:
- See Also:
-
builder
Create a new builder for parameters.- Type Parameters:
S
-T
-- Returns:
-