bioformats
5.1.8
|
TIFF file format (libtiff wrapper). More...
Classes | |
struct | Codec |
A TIFF codec. More... | |
class | Exception |
Exception thrown for TIFF (libtiff) errors. More... | |
class | Field |
Field representing a tag value. More... | |
class | FieldBase |
Common functionality for fields of all types. More... | |
class | IFD |
Image File Directory (IFD). More... | |
class | IFDIterator |
Iterator for IFDs contained within a TIFF. More... | |
struct | IFDRange |
Range of IFDs for an image series. More... | |
struct | ImageJMetadata |
ImageJ metadata from IFD tags. More... | |
class | Sentry |
Sentry for saving and restoring libtiff state. More... | |
class | TIFF |
Tagged Image File Format (TIFF). More... | |
class | TileInfo |
Tile information for an IFD. More... | |
class | Value |
Field value. More... | |
class | ValueProxy |
Proxy for getting and setting a Field value. More... | |
Typedefs | |
typedef uint16_t | directory_index_type |
IFD index. | |
typedef uint64_t | offset_type |
IFD offset. | |
typedef unsigned int | tag_type |
Tag number. | |
typedef std::vector< IFDRange > | SeriesIFDRange |
Mapping between series index and IFD range. | |
Functions | |
std::vector< Codec > | getConfiguredCodecs () |
Get codecs registered with the TIFF library. More... | |
tag_type | getWrappedTag (StringTag1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (StringTagArray1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16Tag1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16TagArray1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16Compression1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16FillOrder1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16Orientation1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16PhotometricInterpretation1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16PlanarConfiguration1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16Predictor1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16SampleFormat1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16Threshholding1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16YCbCrPosition1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16Tag2 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16Tag6 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16ExtraSamplesArray1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt16TagArray3 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt32Tag1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt32TagArray1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (UInt64TagArray1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (RawDataTag1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (FloatTag1 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (FloatTag2 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (FloatTag3 tag) |
Get the TIFF tag number for the specified tag. More... | |
tag_type | getWrappedTag (FloatTag6 tag) |
Get the TIFF tag number for the specified tag. More... | |
ome::compat::shared_ptr< CoreMetadata > | makeCoreMetadata (const IFD &ifd) |
Create CoreMetadata from an IFD. More... | |
void | getCoreMetadata (const IFD &ifd, CoreMetadata &core) |
Get CoreMetadata from an IFD. More... | |
dimension_size_type | ifdIndex (const SeriesIFDRange &seriesIFDRange, dimension_size_type series, dimension_size_type plane) |
Compute IFD index from IFD map and plane index. More... | |
bool | enableBigTIFF (const boost::optional< bool > &wantBig, storage_size_type pixelSize, const boost::filesystem::path &filename, ome::common::Logger &logger) |
Check if BigTIFF should be enabled. More... | |
TIFF file format (libtiff wrapper).
Compression technique.
Enumerator | |
---|---|
COMPRESSION_NONE |
No compression. |
COMPRESSION_CCITTRLE |
CCITT modified Huffman RLE. |
COMPRESSION_CCITTFAX3 |
CCITT Group 3 fax encoding (deprecated). |
COMPRESSION_CCITT_T4 |
CCITT T.4 (TIFF 6 name). |
COMPRESSION_CCITTFAX4 |
CCITT Group 4 fax encoding (deprecated). |
COMPRESSION_CCITT_T6 |
CCITT T.6 (TIFF 6 name). |
COMPRESSION_LZW |
Lempel-Ziv & Welch. |
COMPRESSION_OJPEG |
JPEG (deprecated). |
COMPRESSION_JPEG |
JPEG DCT compression. |
COMPRESSION_ADOBE_DEFLATE |
Deflate compression (Adobe). |
COMPRESSION_T85 |
TIFF/FX T.85 JBIG compression. |
COMPRESSION_T43 |
TIFF/FX T.43 colour by layered JBIG compression. |
COMPRESSION_NEXT |
NeXT 2-bit RLE. |
COMPRESSION_CCITTRLEW |
1 w/ word alignment. |
COMPRESSION_PACKBITS |
Macintosh RLE. |
COMPRESSION_THUNDERSCAN |
ThunderScan RLE. |
COMPRESSION_IT8CTPAD |
codes 32895-32898 are reserved for ANSI IT8 TIFF/IT <dkell). y@ap ago.c om IT8 CT w/padding. |
COMPRESSION_IT8LW |
IT8 Linework RLE. |
COMPRESSION_IT8MP |
IT8 Monochrome picture. |
COMPRESSION_IT8BL |
IT8 Binary line art. |
COMPRESSION_PIXARFILM |
compression codes 32908-32911 are reserved for Pixar. Pixar companded 10bit LZW. |
COMPRESSION_PIXARLOG |
Pixar companded 11bit ZIP. |
COMPRESSION_DEFLATE |
Deflate compression. |
COMPRESSION_DCS |
compression code 32947 is reserved for Oceana Matrix dev@o. cean a.com Kodak DCS encoding. |
COMPRESSION_JBIG |
ISO JBIG. |
COMPRESSION_SGILOG |
SGI Log Luminance RLE. |
COMPRESSION_SGILOG24 |
SGI Log 24-bit packed. |
COMPRESSION_JP2000 |
Leadtools JPEG2000. |
COMPRESSION_LZMA |
LZMA2. |
Image orientation.
Photometric interpretation of pixel data.
String fields.
Tag types.
Unsigned 16-bit integer fields.
Unsigned 16-bit integer (×2) fields.
Unsigned 32-bit integer fields.
Unsigned 64-bit integer fields.
bool ome::bioformats::tiff::enableBigTIFF | ( | const boost::optional< bool > & | wantBig, |
storage_size_type | pixelSize, | ||
const boost::filesystem::path & | filename, | ||
ome::common::Logger & | logger | ||
) |
Check if BigTIFF should be enabled.
A number of factors determine if BigTIFF support should be enabled:
If BigTIFF could not be enabled when requested or needed then an appropriate warning will be logged.
wantBig | user requirement (true to enable, false to disable, unset if unspecified). |
pixelSize | the total size of pixel data to be written |
filename | the name of the TIFF file to write (if a known BigTIFF extension is used, BigTIFF will be enabled). |
logger | the logger to use to log errors. |
true
to enable BigTIFF or false
to disable. std::vector< Codec > ome::bioformats::tiff::getConfiguredCodecs | ( | ) |
Get codecs registered with the TIFF library.
References ome::bioformats::tiff::Codec::name, and ome::bioformats::tiff::Codec::scheme.
void ome::bioformats::tiff::getCoreMetadata | ( | const IFD & | ifd, |
CoreMetadata & | core | ||
) |
Get CoreMetadata from an IFD.
ifd | the IFD to use. |
core | the CoreMetadata to set. |
References ARTIST, ome::bioformats::bitsPerPixel(), ome::bioformats::CoreMetadata::bitsPerPixel, BITSPERSAMPLE, CELLLENGTH, CELLWIDTH, CFA_ARRAY, COLORMAP, COMPRESSION, COMPRESSION_CCITT_T4, COMPRESSION_CCITT_T6, COMPRESSION_LZW, CONTIG, COPYRIGHT, DATETIME, ome::bioformats::CoreMetadata::dimensionOrder, DOCUMENTNAME, DOTRANGE, EXTRASAMPLES, FILLORDER, ome::bioformats::tiff::IFD::getBitsPerSample(), ome::bioformats::tiff::IFD::getField(), ome::bioformats::tiff::IFD::getImageHeight(), ome::bioformats::tiff::IFD::getImageWidth(), ome::bioformats::tiff::IFD::getPhotometricInterpretation(), ome::bioformats::tiff::IFD::getPixelType(), ome::bioformats::tiff::IFD::getPlanarConfiguration(), ome::bioformats::tiff::IFD::getSamplesPerPixel(), GRAYRESPONSECURVE, GRAYRESPONSEUNIT, HALFTONE, HALFTONEHINTS, HOSTCOMPUTER, ome::bioformats::CoreMetadata::imageCount, IMAGELENGTH, IMAGEWIDTH, INDEXED, ome::bioformats::CoreMetadata::indexed, INKNAMES, INKSET, ome::bioformats::CoreMetadata::interleaved, ome::bioformats::CoreMetadata::littleEndian, MAKE, MAXSAMPLEVALUE, MINSAMPLEVALUE, MODEL, NUMBEROFINKS, ORIENTATION, PAGENAME, PAGENUMBER, PALETTE, PHOTOMETRIC, ome::bioformats::CoreMetadata::pixelType, PLANARCONFIG, PREDICTOR, PRIMARYCHROMATICITIES, REFERENCEBLACKWHITE, RESOLUTIONUNIT, RGB, SAMPLEFORMAT, SAMPLESPERPIXEL, ome::bioformats::CoreMetadata::seriesMetadata, ome::bioformats::MetadataMap::set(), ome::bioformats::significantBitsPerPixel(), ome::bioformats::CoreMetadata::sizeC, ome::bioformats::CoreMetadata::sizeT, ome::bioformats::CoreMetadata::sizeX, ome::bioformats::CoreMetadata::sizeY, ome::bioformats::CoreMetadata::sizeZ, SOFTWARE, SUBFILETYPE, T4OPTIONS, T6OPTIONS, TARGETPRINTER, THRESHHOLDING, TILELENGTH, TILEWIDTH, TRANSFERFUNCTION, TRANSFERRANGE, WHITEPOINT, XPOSITION, XRESOLUTION, ome::xml::model::enums::DimensionOrder::XYCZT, YCBCRCOEFFICIENTS, YCBCRPOSITIONING, YCBCRSUBSAMPLING, YPOSITION, and YRESOLUTION.
Referenced by makeCoreMetadata().
tag_type ome::bioformats::tiff::getWrappedTag | ( | StringTag1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References ARTIST, COPYRIGHT, DATETIME, DOCUMENTNAME, HOSTCOMPUTER, IMAGEDESCRIPTION, MAKE, MODEL, PAGENAME, SOFTWARE, and TARGETPRINTER.
tag_type ome::bioformats::tiff::getWrappedTag | ( | StringTagArray1 | tag | ) |
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16Tag1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References BITSPERSAMPLE, CELLLENGTH, CELLWIDTH, CLEANFAXDATA, DATATYPE, GRAYRESPONSEUNIT, INDEXED, INKSET, MATTEING, MAXSAMPLEVALUE, MINSAMPLEVALUE, NUMBEROFINKS, RESOLUTIONUNIT, and SAMPLESPERPIXEL.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16TagArray1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References GRAYRESPONSECURVE.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16Compression1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References COMPRESSION.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16FillOrder1 | tag | ) |
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16Orientation1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References ORIENTATION.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16PhotometricInterpretation1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References PHOTOMETRIC.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16PlanarConfiguration1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References PLANARCONFIG.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16Predictor1 | tag | ) |
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16SampleFormat1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References SAMPLEFORMAT.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16Threshholding1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References THRESHHOLDING.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16YCbCrPosition1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References YCBCRPOSITIONING.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16Tag2 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References DOTRANGE, HALFTONEHINTS, PAGENUMBER, and YCBCRSUBSAMPLING.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16Tag6 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References TRANSFERRANGE.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16ExtraSamplesArray1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References EXTRASAMPLES.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt16TagArray3 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References COLORMAP, and TRANSFERFUNCTION.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt32Tag1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References BADFAXLINES, CONSECUTIVEBADFAXLINES, GROUP3OPTIONS, GROUP4OPTIONS, IMAGEDEPTH, IMAGELENGTH, IMAGEWIDTH, ROWSPERSTRIP, SUBFILETYPE, T4OPTIONS, T6OPTIONS, TILEDEPTH, TILELENGTH, and TILEWIDTH.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt32TagArray1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References IMAGEJ_META_DATA_BYTE_COUNTS, and RICHTIFFIPTC.
tag_type ome::bioformats::tiff::getWrappedTag | ( | UInt64TagArray1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References FREEBYTECOUNTS, FREEOFFSETS, STRIPBYTECOUNTS, STRIPOFFSETS, SUBIFD, TILEBYTECOUNTS, and TILEOFFSETS.
tag_type ome::bioformats::tiff::getWrappedTag | ( | RawDataTag1 | tag | ) |
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References ICCPROFILE, IMAGEJ_META_DATA, JPEGTABLES, PHOTOSHOP, and XMLPACKET.
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References XPOSITION, XRESOLUTION, YPOSITION, and YRESOLUTION.
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References WHITEPOINT.
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References YCBCRCOEFFICIENTS.
Get the TIFF tag number for the specified tag.
tag | the tag to use. |
References PRIMARYCHROMATICITIES, and REFERENCEBLACKWHITE.
dimension_size_type ome::bioformats::tiff::ifdIndex | ( | const SeriesIFDRange & | seriesIFDRange, |
dimension_size_type | series, | ||
dimension_size_type | plane | ||
) |
Compute IFD index from IFD map and plane index.
seriesIFDRange | the series–IFD range mapping. |
series | the series to use. |
plane | the plane within the series to use. |
References ome::bioformats::tiff::IFDRange::begin.
Referenced by ome::bioformats::in::MinimalTIFFReader::ifdAtIndex(), and ome::bioformats::out::MinimalTIFFWriter::saveBytes().
ome::compat::shared_ptr< CoreMetadata > ome::bioformats::tiff::makeCoreMetadata | ( | const IFD & | ifd | ) |
Create CoreMetadata from an IFD.
ifd | the IFD to use. |
References getCoreMetadata().
Referenced by ome::bioformats::in::TIFFReader::readIFDs().