saving TIFF tags in header?
When saving an OpenCV mat, is it possible to add TIFF tags to the header? I need to store pixel dimensions in the image header.
Thanks!
The TIFF format is very powerful and versatile. In addition to storing image metadata, it allows storing multiple channels, different data formats, etc.
Opencv's imwrite
is a handy little function to save an image, but it won't allow you to do complex operations like metadata handling and exotic formats (like multispectral data).
Fortunately there is the libTIFF library, which is quite easy to use and it can handle any kind of TIFF data.
You can find several tutorials for using this library (e.g. here)
Asked: 2016-09-13 11:13:02 -0600
Seen: 2,627 times
Last updated: Sep 14 '16