Package qupath.imagej.images.writers
Class TiffWriterIJ
java.lang.Object
qupath.imagej.images.writers.TiffWriterIJ
- All Implemented Interfaces:
ImageWriter<BufferedImage>
ImageWriter implementation to write TIFF images using ImageJ.
-
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(ImagePlus imp, OutputStream stream) voidwriteImage(ImagePlus imp, String pathOutput) 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 a full image to a specified 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 an image region to a specified output stream.voidwriteImage(ImageServer<BufferedImage> server, RegionRequest request, 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
-
TiffWriterIJ
public TiffWriterIJ()
-
-
Method Details
-
getName
Description copied from interface:ImageWriterGet the name of the image writer.- Returns:
-
getDetails
Description copied from interface:ImageWriterGet further details of the writer, which may be displayed to a user.- Returns:
-
supportsRGB
public boolean supportsRGB()Description copied from interface:ImageWriterCheck if writer can handle RGB (it probably can...).- 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;- Returns:
-
writeImage
- Throws:
IOException
-
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:
-
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:
-
writeImage
public void writeImage(ImageServer<BufferedImage> server, RegionRequest request, String pathOutput) throws IOException Description copied from interface:ImageWriterWrite an image region to a specified path.- Specified by:
writeImagein interfaceImageWriter<BufferedImage>- Parameters:
server-request-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
Description copied from interface:ImageWriterWrite a full image to a specified path.- Specified by:
writeImagein interfaceImageWriter<BufferedImage>- Parameters:
img-pathOutput-- Throws:
IOException
-
writeImage
public void writeImage(ImageServer<BufferedImage> server, RegionRequest region, OutputStream stream) throws IOException Description copied from interface:ImageWriterWrite an image region to a specified output stream.- 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
Description copied from interface:ImageWriterWrite a full image to a specified output stream.- Specified by:
writeImagein interfaceImageWriter<BufferedImage>- Parameters:
server-stream-- Throws:
IOException
-
getImageClass
Description copied from interface:ImageWriterGet the class of supported images.- Specified by:
getImageClassin interfaceImageWriter<BufferedImage>- Returns:
ImageServer.getImageClass()
-
writeImage
- Throws:
IOException
-