2008.10.15 09:33 "Re: [Tiff] manipulating TIFF images", by Gerben Vos
I have seen many examples in the documentation of using libTIFF to read and write B&W, grey and color images. But have not come across anything on how to manipulate or change the image contents? are there any elsewhere?
Those manipulations are are generic and don't depend on the image being a TIFF. So libtiff doesn't provide anything for this. Try http://www.faqs.org/faqs/graphics/algorithms-faq/ or http://www.faqs.org/faqs/graphics/faq/ for starters. They contain pointers to books, too.
Further, how does one go ahead with manipulating the image?
You read the image into memory using libtiff, then apply your changes to the memory buffer, then use libtiff to write the image from memory to file. If the image is exceedingly large, you can process by strip or tile instead of the whole image at once.