Question

I tried OpenCV in vain to save indexed8bpp image with a colormap as a tif file. For this project, GDI+ is not an option. I already downloaded libtiff library, but it seems too big for me.

Is there anything else? I am not as picky as I would sound. :-)

Was it helpful?

Solution

libtiff is too big, but OpenCV is not?? I'd have thought that OpenCV is even bigger.

I would certainly use libtiff, and I recommend you give it a second chance. It really is the authority on writing TIFF files.

Besides, you're only going to be linking to a small part of it, so its size is not going to bloat your application. I'm not sure if that's what you meant about being too big... Perhaps you meant that you don't want to put all those sources in the version control for your project and you also don't want to stipulate a dependency on an external lib.

If your lack of pickiness extends to possibly not using TIFFs, then you could always use BMP. It's very easy to write indexed BMP files =)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top