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

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

[Octave-bug-tracker] [bug #30715] imread fails to read uint16 tif image


From: anonymous
Subject: [Octave-bug-tracker] [bug #30715] imread fails to read uint16 tif image
Date: Sun, 29 Aug 2010 05:14:10 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Safari/531.2+ Debian/squeeze (2.30.2-3) Epiphany/2.30.2

Follow-up Comment #8, bug #30715 (project octave):

Here's a test for the quantum depth.
#include <GraphicsMagick/wand/magick_wand.h>
#include <iostream>
using std::cout;
using std::endl;

int main ()
{
        unsigned long depth = 0;
        MagickGetQuantumDepth(&depth);
        cout << depth << endl;
        return depth;
}

g++ -Wall -pedantic gm_ver.cc -I/usr/include/GraphicsMagick -L/usr/lib
-lGraphicsMagickWand -o gm_ver

I think a couple small changes to __magick_read__.cc can be used to add
support for 16 bit images if it's available and give a friendlier error if
not. GraphicsMagick can support a QuantumDepth of 32 bits so perhaps a case
for 32 bit images should be added too. 

#if (QuantumDepth > 8)
    case 16:
        ...
        break;
#endif
#if (QuantumDepth > 16)
    case 32:
        ...
        break;
#endif
    default:
    error ("__magic_read__: index depths bigger than %d-bit not supported",
Qu

-----
Jonathan Thomson

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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