octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #39249] imread and 32 bit (float) TIFF images


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #39249] imread and 32 bit (float) TIFF images
Date: Wed, 31 Jul 2013 21:03:51 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130626 Firefox/17.0 Iceweasel/17.0.7

Follow-up Comment #3, bug #39249 (project octave):

I have pushed a change that allows us to read images with floating point and
the images originally attached on this bug report are now read correctly.

The problem is that when GraphicsMagick (GM) reads an image, it converts the
values to whatever quantum depth it was built with. In the case of a floating
point image with GM built with quantum 32, the values get converted to uint32.
I'm dividing by intmax("uint32") to get a matrix in the range of [0 1] which
is what Matlab as valid image of floating point. However, it seems that Matlab
is not always following this. The attached image is read (in Matlab) as a
matrix with the range [-0.038814 82.092]. It doesn't seem to be possible to
access the original image values through GM.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39249>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]