sharing everything

C/C++ : LibTiff Tutorial

C/C++ : LibTiff Tutorial

Libtiff is a library for reading and writing Tagged Image File Format (abbreviated TIFF) files. The set also contains command line tools for processing TIFFs. It is distributed in source code and can be found as binary builds for all kinds of platforms. The libtiff software was written by Sam Leffler while working for Silicon Graphics (wikipedia).

We can use this libtiff library in Windows and Linux (I am not yet try this libtiff library in other system operation like MAC). You can download the Windows version in this address : http://gnuwin32.sourceforge.net/packages/tiff.htm.

I am interested using this libtiff library to reading my tiff image and show the output in RGBA format. This is a simple codeĀ  how to print RGBA value from tiff image using libtiff library:

 

Compile this C/C++ : LibTiff Tutorial with command :

gcc readtiff.c -ltiff -o readtiff

You can running this C/C++ : LibTiff Tutorial with command :

./readtiff sampletif.tiff > output.txt

We can plot see or plot this tiff RGBA value from the output.txt file.

Source :
http://en.wikipedia.org/wiki/Libtiff
http://gnuwin32.sourceforge.net/packages/tiff.htm
My name is Toto Sugito. This is my notes when I try something. Maybe, this is NOT THE BEST SOLUTION for your problems. If you have other method or idea that better with my post, please share in this blog. Thank for visiting my site.

No Comments Yet

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Categories

Bloggers - Meet Millions of Bloggers