Package qupath.lib.images.servers
Class TiledTransformingImageServer
java.lang.Object
qupath.lib.images.servers.AbstractImageServer<BufferedImage>
qupath.lib.images.servers.AbstractTileableImageServer
qupath.lib.images.servers.TiledTransformingImageServer
- All Implemented Interfaces:
AutoCloseable
,ImageServer<BufferedImage>
An ImageServer implementation used to apply transforms to another ImageServer.
This may implement a spatial or pixel intensity transformation, for example.
Subclasses may only implement the methods necessary to apply the required transform,
such as AbstractTileableImageServer.readTile(TileRequest)
.
This class should be used in preference to TransformingImageServer
when internal tile caching
is desirable.
- Since:
- v0.6.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionGet the original metadata read during creation of the server.getURIs()
Get the URIs for images required for this server.protected ImageServer
<BufferedImage> Get underlying ImageServer, i.e.Methods inherited from class qupath.lib.images.servers.AbstractTileableImageServer
allowSmoothInterpolation, createDefaultRGBImage, getDefaultColorModel, getEmptyTile, getEmptyTile, getTile, readRegion, readTile
Methods inherited from class qupath.lib.images.servers.AbstractImageServer
close, createID, createServerBuilder, getAssociatedImage, getAssociatedImageList, getBuilder, getCache, getCachedTile, getChannel, getDefaultThumbnail, getDownsampleForResolution, getHeight, getImageClass, getMetadata, getPath, getPixelType, getPreferredDownsamples, getThumbnailDownsampleFactor, getTileRequestManager, getWidth, isEmptyRegion, isRGB, nChannels, nResolutions, nTimepoints, nZSlices, setMetadata, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface qupath.lib.images.servers.ImageServer
getPixelCalibration, getServerType, readBufferedImage, readRegion, readRegion
-
Constructor Details
-
TiledTransformingImageServer
-
-
Method Details
-
getWrappedServer
Get underlying ImageServer, i.e. the one that is being wrapped.- Returns:
-
getURIs
Description copied from interface:ImageServer
Get the URIs for images required for this server. In the simplest case, this is a singleton list returning a URI representing a local file. However, some ImageServers may not have an associated URI at all, whereas others may depend upon multiple URIs (e.g. if concatenating images).Note: A URI alone may not be sufficient to recreate even a simple ImageServer; see
ImageServer.getBuilder()
.- Returns:
-
getOriginalMetadata
Description copied from interface:ImageServer
Get the original metadata read during creation of the server. This may or may not be correct.- Returns:
- See Also:
-