Package qupath.imagej.images.servers
Class ImageJServer
java.lang.Object
qupath.lib.images.servers.AbstractImageServer<BufferedImage>
qupath.lib.images.servers.AbstractTileableImageServer
qupath.imagej.images.servers.ImageJServer
- All Implemented Interfaces:
AutoCloseable,qupath.lib.images.servers.ImageServer<BufferedImage>,qupath.lib.objects.PathObjectReader
public class ImageJServer
extends qupath.lib.images.servers.AbstractTileableImageServer
implements qupath.lib.objects.PathObjectReader
ImageServer that uses ImageJ's image-reading capabilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected StringcreateID()protected qupath.lib.images.servers.ImageServerBuilder.ServerBuilder<BufferedImage> Get a String representing the image metadata.qupath.lib.images.servers.ImageServerMetadatagetURIs()Collection<qupath.lib.objects.PathObject> readTile(qupath.lib.images.servers.TileRequest tile) Methods inherited from class qupath.lib.images.servers.AbstractTileableImageServer
allowSmoothInterpolation, createDefaultRGBImage, getDefaultColorModel, getEmptyTile, getEmptyTile, getTile, readRegionMethods inherited from class qupath.lib.images.servers.AbstractImageServer
getAssociatedImage, getAssociatedImageList, getBuilder, getCache, getCachedTile, getChannel, getDefaultThumbnail, getDownsampleForResolution, getHeight, getImageClass, getMetadata, getPath, getPixelType, getPreferredDownsamples, getThumbnailDownsampleFactor, getTileRequestManager, getWidth, isEmptyRegion, isRGB, nChannels, nResolutions, nTimepoints, nZSlices, setMetadata, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface qupath.lib.images.servers.ImageServer
getPixelCalibration, readBufferedImage, readRegion, readRegion
-
Constructor Details
-
ImageJServer
Constructor.- Parameters:
uri- URI representing the local file or an ImageJ-compatible URLargs- optional arguments (not currently used)- Throws:
IOException
-
-
Method Details
-
readPathObjects
- Specified by:
readPathObjectsin interfacequpath.lib.objects.PathObjectReader
-
dumpMetadata
Get a String representing the image metadata.Currently, this reflects the contents of the ImageJ 'Show info' command, which is tied to the 'current' slice and therefore not complete for all slices of a multichannel/multidimensional image. This behavior may change in the future.
- Returns:
- a String representing image metadata in ImageJ's own form
-
getURIs
- Specified by:
getURIsin interfacequpath.lib.images.servers.ImageServer<BufferedImage>
-
createID
- Specified by:
createIDin classqupath.lib.images.servers.AbstractImageServer<BufferedImage>
-
readTile
- Specified by:
readTilein classqupath.lib.images.servers.AbstractTileableImageServer
-
getServerType
- Specified by:
getServerTypein interfacequpath.lib.images.servers.ImageServer<BufferedImage>
-
getOriginalMetadata
public qupath.lib.images.servers.ImageServerMetadata getOriginalMetadata()- Specified by:
getOriginalMetadatain interfacequpath.lib.images.servers.ImageServer<BufferedImage>
-
createServerBuilder
protected qupath.lib.images.servers.ImageServerBuilder.ServerBuilder<BufferedImage> createServerBuilder()- Specified by:
createServerBuilderin classqupath.lib.images.servers.AbstractImageServer<BufferedImage>
-
close
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classqupath.lib.images.servers.AbstractImageServer<BufferedImage>- Throws:
Exception
-