help-octave
[Top][All Lists]
Advanced

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

Re: Loading and average PGM files


From: Laurent Hoeltgen
Subject: Re: Loading and average PGM files
Date: Mon, 18 Jun 2012 14:51:49 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

On 06/18/2012 02:17 PM, Jordi Gutiérrez Hermoso wrote:
> On 18 June 2012 07:38, Mathieu <address@hidden> wrote:
> 
>> My pgm files are depth images of 640 over 480 pixels. I already tried imread
>> function typing: imread('1.pgm')
>>
>> and I get this error:
>>
>> error: imread: invalid image file: Magick++ exception: Magick: Invalid
>> colormap
>> index (index 65287 >= 256 colors,
>> /home/mja/Documents/test/Following/d/1.pgm)
>> reported by magick/colormap.c:239 (MagickConstrainColormapIndex)
>> error: called from:
>> error: /usr/share/octave/3.2.4/m/image/imread.m at line 74, column 7
>>
>> Any ideas on what's going wrong?
> 
> It looks like you're using Ubuntu.
> 
> Can you try with a newer Octave version?
> 
>     
> http://octave.org/wiki/index.php?title=Octave_for_GNU_Linux:_Binary_Octave_packages_for_GNU_Linux#Unofficial_binaries
> 
> Also, can you show us a sample image on which you see this problem?
> 
> - Jordi G. H.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
> 

Hi,

tried it on ubuntu 11.10 with octave 3.6.1 and I get the following:

warning: your version of GraphicsMagick limits images to 8 bits per pixel
error: imread: invalid image file: Magick++ exception: Magick: Invalid
colormap index (index 65287 >= 256 colors,
/home/laurent/Downloads/1.pgm) reported by magick/colormap.c:239
(MagickConstrainColormapIndex)
error: called from:
error:   /usr/local/share/octave/3.6.1/m/image/imread.m at line 74, column 7

Regards,
Laurent



reply via email to

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