Read and write 32bit Tiff float with IM?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
jho

Read and write 32bit Tiff float with IM?

Post by jho »

Hi,
i asked myself if I could read and write 32bit TIFF float with IM. I saw this thread viewtopic.php?f=2&t=12661 where it was mentioned that it should be in IM if HDRI is enabled.

In another thread i read that with the OpenEXR libraries which I guess I need to compile too only HALF 16 bit is possible.

So can anyone help me out?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Read and write 32bit Tiff float with IM?

Post by fmw42 »

If you compile IM with 32-bit HDRI enabled, you can create and save 32bit images in miff, pfm (NetPPB format) and probably tif format. OpenEXR is supported in IM as half format meaning 16bits only.

see
http://www.imagemagick.org/script/advan ... lation.php


I currently am doing processing in 16bit HDRI to test FFT functions. Mac OSX Tiger. I do a manual install with

--with-quantum-depth=16 --enable-hdri

in my ./configure file

you can change it to

--with-quantum-depth=32 --enable-hdri

I have never run 32bit IM (Q32)
jho

Re: Read and write 32bit Tiff float with IM?

Post by jho »

Ok, I thought i need the OpenEXR library for that. So I only need to compile it with the hdri setting enabled.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Read and write 32bit Tiff float with IM?

Post by fmw42 »

you need the OpenEXR libraray installed only if you want to read or save .exr format images. But as they are only half format 16-bits and if you truly want 32-bits then I would avoid it.

Please keep us posted as to your progress and success as I have had no experience with 32-bit IM (Q32) hdri or not.
jho

Re: Read and write 32bit Tiff float with IM?

Post by jho »

Hi, i compiled IM for me with HDRI enabled (64bit) and it works with TIFF 32bit.

I would like test OPenExr but I dont know how to use it within the Visual Studio. I searched for a "how to" but could not find a hint.

Can someone describe me what I need to do with the OpenEXR files from the website and how to put them into the Visual Studio project?
Post Reply