Package qupath.lib.gui.images.servers
Class ChannelDisplayTransformServer
java.lang.Object
qupath.lib.images.servers.AbstractImageServer<BufferedImage>
qupath.lib.images.servers.TransformingImageServer<BufferedImage>
qupath.lib.gui.images.servers.ChannelDisplayTransformServer
- All Implemented Interfaces:
AutoCloseable,qupath.lib.images.servers.ImageServer<BufferedImage>,qupath.lib.objects.PathObjectReader
public class ChannelDisplayTransformServer
extends qupath.lib.images.servers.TransformingImageServer<BufferedImage>
implements qupath.lib.objects.PathObjectReader
ImageServer that applies a color transform to an image. This can either be a single RGB transform, or one or more single-channel (float) transforms.
Note: This class may move or be removed in a later version.
-
Method Summary
Modifier and TypeMethodDescriptionstatic qupath.lib.images.servers.ImageServer<BufferedImage> createColorTransformServer(qupath.lib.images.servers.ImageServer<BufferedImage> server, List<ChannelDisplayInfo> channels) Create anImageServerfor which the channels are created dynamically from a list of ChannelDisplayInfos.protected StringcreateID()protected qupath.lib.images.servers.ImageServerBuilder.ServerBuilder<BufferedImage> Returns null (does not support ServerBuilders).qupath.lib.images.servers.ImageServerMetadataCollection<qupath.lib.objects.PathObject> readRegion(qupath.lib.regions.RegionRequest request) Methods inherited from class qupath.lib.images.servers.TransformingImageServer
getURIs, getWrappedServerMethods inherited from class qupath.lib.images.servers.AbstractImageServer
close, 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
-
Method Details
-
createColorTransformServer
public static qupath.lib.images.servers.ImageServer<BufferedImage> createColorTransformServer(qupath.lib.images.servers.ImageServer<BufferedImage> server, List<ChannelDisplayInfo> channels) Create anImageServerfor which the channels are created dynamically from a list of ChannelDisplayInfos.- Parameters:
server- the server providing the underlying datachannels-ChannelDisplayInfoobjects defining how the pixels from the wrapped server should be converted to channels in the new server- Returns:
-
createServerBuilder
protected qupath.lib.images.servers.ImageServerBuilder.ServerBuilder<BufferedImage> createServerBuilder()Returns null (does not support ServerBuilders).- Specified by:
createServerBuilderin classqupath.lib.images.servers.AbstractImageServer<BufferedImage>
-
createID
- Specified by:
createIDin classqupath.lib.images.servers.AbstractImageServer<BufferedImage>
-
readRegion
- Specified by:
readRegionin interfacequpath.lib.images.servers.ImageServer<BufferedImage>- Overrides:
readRegionin classqupath.lib.images.servers.TransformingImageServer<BufferedImage>- Throws:
IOException
-
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>- Overrides:
getOriginalMetadatain classqupath.lib.images.servers.TransformingImageServer<BufferedImage>
-
readPathObjects
- Specified by:
readPathObjectsin interfacequpath.lib.objects.PathObjectReader- Throws:
IOException
-