Package qupath.lib.images.servers
Class SparseImageServer.Builder
java.lang.Object
qupath.lib.images.servers.SparseImageServer.Builder
- Enclosing class:
SparseImageServer
Builder to create a new
SparseImageServer
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a new SparseImageServer.jsonRegion
(ImageRegion region, double downsample, ImageServerBuilder.ServerBuilder<BufferedImage> builder) Add a region based on a JSON representation of an ImageServer.serverRegion
(ImageRegion region, double downsample, ImageServer<BufferedImage> server) Add a region based on an existing ImageServer.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jsonRegion
public SparseImageServer.Builder jsonRegion(ImageRegion region, double downsample, ImageServerBuilder.ServerBuilder<BufferedImage> builder) Add a region based on a JSON representation of an ImageServer.- Parameters:
region
- the region within this image where the pixels requested from the server should be positioneddownsample
- the downsample value for the represented regionbuilder
- the ServerBuilder representation of the server to include- Returns:
- See Also:
-
serverRegion
public SparseImageServer.Builder serverRegion(ImageRegion region, double downsample, ImageServer<BufferedImage> server) Add a region based on an existing ImageServer.- Parameters:
region
- the region within this image where the pixels requested from the server should be positioneddownsample
- the downsample value for the represented regionserver
- the server to include, supplying pixels for the region- Returns:
-
build
Build a new SparseImageServer.- Returns:
- Throws:
IOException
-