Package qupath.lib.images.writers.ome
Class OMETiffWriter
java.lang.Object
qupath.lib.images.writers.ome.OMETiffWriter
- All Implemented Interfaces:
ImageWriter<BufferedImage>
ImageWriter for writing OME-TIFF images. For greater control, see OMEPyramidWriter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet further details of the writer, which may be displayed to a user.Get the file extensions used by the image writer.Get the class of supported images.getName()Get the name of the image writer.booleansupportsImageType(ImageServer<BufferedImage> server) Test whether images provided by a specified ImageServer can be successfully written.booleanReturns true if the writer is capable of storing pixel size information.booleanReturns true if the writer is capable of writing pyramidal images.booleanCheck if writer can handle RGB (it probably can...).booleanCheck if writer can handle multiple timepoints.booleanCheck if writer can handle multiple z-slices.voidwriteImage(BufferedImage img, OutputStream stream) Write a full image to a specified output stream.voidwriteImage(BufferedImage img, String pathOutput) Write a full image to a specified path.voidwriteImage(ImageServer<BufferedImage> server, OutputStream stream) Write OME-TIFF image to an output stream.voidwriteImage(ImageServer<BufferedImage> server, String pathOutput) Write a full image to a specified path.voidwriteImage(ImageServer<BufferedImage> server, RegionRequest region, OutputStream stream) Write OME-TIFF image to an output stream.voidwriteImage(ImageServer<BufferedImage> server, RegionRequest region, String pathOutput) Write an image region to a specified path.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface qupath.lib.images.writers.ImageWriter
getDefaultExtension
-
Constructor Details
-
OMETiffWriter
public OMETiffWriter()
-
-
Method Details
-
getName
Description copied from interface:ImageWriterGet the name of the image writer.- Specified by:
getNamein interfaceImageWriter<BufferedImage>- Returns:
-
getExtensions
Description copied from interface:ImageWriterGet the file extensions used by the image writer. These are returned without the leading 'dot'. In the case where multiple extensions are associated with a file type (e.g. "jpg", "jpeg", "tif", "tiff") the preferred should be returned first;- Specified by:
getExtensionsin interfaceImageWriter<BufferedImage>- Returns:
-
supportsT
public boolean supportsT()Description copied from interface:ImageWriterCheck if writer can handle multiple timepoints.- Specified by:
supportsTin interfaceImageWriter<BufferedImage>- Returns:
-
supportsZ
public boolean supportsZ()Description copied from interface:ImageWriterCheck if writer can handle multiple z-slices.- Specified by:
supportsZin interfaceImageWriter<BufferedImage>- Returns:
-
supportsRGB
public boolean supportsRGB()Description copied from interface:ImageWriterCheck if writer can handle RGB (it probably can...).- Specified by:
supportsRGBin interfaceImageWriter<BufferedImage>- Returns:
-
supportsImageType
Description copied from interface:ImageWriterTest whether images provided by a specified ImageServer can be successfully written.Reasons why it might not be are the number of channels and/or bit-depth.
- Specified by:
supportsImageTypein interfaceImageWriter<BufferedImage>- Parameters:
server-- Returns:
-
supportsPyramidal
public boolean supportsPyramidal()Description copied from interface:ImageWriterReturns true if the writer is capable of writing pyramidal images.- Specified by:
supportsPyramidalin interfaceImageWriter<BufferedImage>- Returns:
-
supportsPixelSize
public boolean supportsPixelSize()Description copied from interface:ImageWriterReturns true if the writer is capable of storing pixel size information.- Specified by:
supportsPixelSizein interfaceImageWriter<BufferedImage>- Returns:
-
getDetails
Description copied from interface:ImageWriterGet further details of the writer, which may be displayed to a user.- Specified by:
getDetailsin interfaceImageWriter<BufferedImage>- Returns:
-
getImageClass
Description copied from interface:ImageWriterGet the class of supported images.- Specified by:
getImageClassin interfaceImageWriter<BufferedImage>- Returns:
ImageServer.getImageClass()
-
writeImage
public void writeImage(ImageServer<BufferedImage> server, RegionRequest region, String pathOutput) throws IOException Description copied from interface:ImageWriterWrite an image region to a specified path.- Specified by:
writeImagein interfaceImageWriter<BufferedImage>- Parameters:
server-region-pathOutput-- Throws:
IOException
-
writeImage
Description copied from interface:ImageWriterWrite a full image to a specified path.- Specified by:
writeImagein interfaceImageWriter<BufferedImage>- Parameters:
img-pathOutput-- Throws:
IOException
-
writeImage
Description copied from interface:ImageWriterWrite a full image to a specified path.- Specified by:
writeImagein interfaceImageWriter<BufferedImage>- Parameters:
server-pathOutput-- Throws:
IOException
-
writeImage
public void writeImage(ImageServer<BufferedImage> server, RegionRequest region, OutputStream stream) throws IOException Write OME-TIFF image to an output stream. Note that this must be able to write the image in-memory first, and therefore is not suitable for very large images.- Specified by:
writeImagein interfaceImageWriter<BufferedImage>- Parameters:
server-region-stream-- Throws:
IOException
-
writeImage
Description copied from interface:ImageWriterWrite a full image to a specified output stream.- Specified by:
writeImagein interfaceImageWriter<BufferedImage>- Parameters:
img-stream-- Throws:
IOException
-
writeImage
Write OME-TIFF image to an output stream. Note that this must be able to write the image in-memory first, and therefore is not suitable for very large images.- Specified by:
writeImagein interfaceImageWriter<BufferedImage>- Parameters:
server-stream-- Throws:
IOException
-