[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Loading and average PGM files
From: |
Mathieu |
Subject: |
Re: Loading and average PGM files |
Date: |
Fri, 29 Jun 2012 05:00:55 -0700 (PDT) |
It's okay for me to ssh, did you receive my email?
octave:6> imread('1.pgm')
warning: your version of GraphicsMagick limits images to 8 bits per pixel
error: imread: invalid image file: Magick++ exception: Magick: Unable to
open file (nts/test/Following/d/1.pgm) reported by coders/pnm.c:275
(ReadPNMImage)
error: called from:
error: /usr/share/octave/3.6.2/m/image/imread.m at line 74, column 7
I checked all the coders/pnm.c :
/home/mja/.local/share/Trash/expunged/1266063412/imagemagick-6.6.2.6/coders/pnm.c
:
267
268 /*
269 Open image file.
270 */
271 assert(image_info != (const ImageInfo *) NULL);
272 assert(image_info->signature == MagickSignature);
273 if (image_info->debug != MagickFalse)
274 (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
275 image_info->filename);
276 assert(exception != (ExceptionInfo *) NULL);
277 assert(exception->signature == MagickSignature);
278 image=AcquireImage(image_info);
279 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
280 if (status == MagickFalse)
281 {
282 image=DestroyImageList(image);
283 return((Image *) NULL);
284 }
285 /*
286 Read PNM image.
287 */
/home/mja/Graphicsmagick/graphicsmagick-1.3.12/coders/pnm.c :
262 Quantum
263 *scale;
264
265 /*
266 Open image file.
267 */
268 assert(image_info != (const ImageInfo *) NULL);
269 assert(image_info->signature == MagickSignature);
270 assert(exception != (ExceptionInfo *) NULL);
271 assert(exception->signature == MagickSignature);
272 image=AllocateImage(image_info);
273 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
274 if (status == False)
275 ThrowReaderException(FileOpenError,UnableToOpenFile,image);
276 /*
277 Read PNM image.
278 */
279 count=ReadBlob(image,1,(char *) &format);
280 do
281 {
282 /*
There is only 205 lines in this file :
/home/mja/Documents/ffmpeg/libavcodec/pnm.c
Don't know if it can help...
Regards,
Mathieu
--
View this message in context:
http://octave.1599824.n4.nabble.com/Loading-and-average-PGM-files-tp4630784p4631086.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Re: Loading and average PGM files, (continued)
- Re: Loading and average PGM files, Mathieu, 2012/06/27
- Re: Loading and average PGM files, Mathieu, 2012/06/27
- Re: Loading and average PGM files, Mathieu, 2012/06/27
- Re: Loading and average PGM files, Jordi Gutiérrez Hermoso, 2012/06/27
- Re: Loading and average PGM files, Mathieu, 2012/06/27
- Re: Loading and average PGM files, Jordi Gutiérrez Hermoso, 2012/06/27
- Re: Loading and average PGM files, Jordi Gutiérrez Hermoso, 2012/06/27
- Re: Loading and average PGM files, Francesco Potortì, 2012/06/27
- Re: Loading and average PGM files, Jordi Gutiérrez Hermoso, 2012/06/28
- Re: Loading and average PGM files, Francesco Potortì, 2012/06/28
- Re: Loading and average PGM files,
Mathieu <=
- Re: Loading and average PGM files, Laurent Hoeltgen, 2012/06/18