TIFF
Description
The TIFF
object is an adapter that reads and writes 2-D blocked
image data as a single TIFF file.
When writing to disk, the TIFF format requires block sizes to be a multiple of 16. If the
blocked image has any additional metadata in the UserData
property, then
the TIFF
object writes the data to a separate MAT file with the same file
name.
The object supports lossy and lossless compression. By default, the object uses
Lempel-Ziv-Welch lossless compression. To use a different compression scheme, create the
object and then change the compression scheme using the Compression
property. You can also use this property to turn off compression. For example, to use
JPEG-based lossy compression, use this code.
adapter = images.blocked.TIFF; adapter.Compression = Tiff.Compression.JPEG;
The table lists the support that the TIFF
object has for various blockedImage
capabilities.
Capabilities | Support |
---|---|
Data types | This object supports 2-D images only:
|
Multiple resolution levels | Yes |
Process blocks in parallel using the apply
function | No |
Resume block processing using the apply
function | No |
Creation
Description
adapter = images.blocked.TIFF
creates a TIFF
object that reads and writes blocked image data as a single TIFF file.
Properties
Examples
Tips
If you want to read 3-D TIFF volumes, use one of these alternative adaptors based on the file format. Before R2024b, you had to create your own adapter using the
images.blocked.Adapter
class for all formats of 3-D TIFF volumes.3-D TIFF Volume Support Adapter TIFF IFDS (Image File Directories), or subimages, in which every IFD is a slice
TIFF3D
(since R2024b)TIFF images in the ImageJ format TIFF3D
(since R2024b)A set of TIFF files in a directory, with one TIFF file per slice Create your own adapter using the images.blocked.Adapter
class
Version History
Introduced in R2021a