[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: loadimage
From: |
briner |
Subject: |
Re: loadimage |
Date: |
05 Nov 2002 15:06:43 +0100 |
Hi
thanks for the advice !
It is not that I really want to read a ppm image. I actually thought
that it will be easiest way to load an image. So, the question is: What
is the easiest way to load an image..
briner
> hi briner,
> you should use eppmread.m of epsTk to read ppm-files.
>
> Stefan
> >> hi,
> >>
> >> I'm trying to use 'loadimage' into octave without any success.
> >>
> >> I've created a brynner.ppm which is in ascii format
> >>
> >> and I tried to:
> >>
> >> octave:3> ls
> >> brynner2.jpg brynner.gif foo.ppm lion2.jpeg lion4.gif
> >> brynner3.jpg brynner.ppm JUNGLEFOLIE6INT.jpg lion3.jpg lion.jpg
> >>
> >> octave:4> [x,m]=loadimage("brynner.ppm")
> >> error: load: /home/briner/img/brynner.ppm: inconsistent number of
> >> columns near line 2
> >> error: load: unable to extract matrix size from file
> >> `/home/briner/img/brynner.ppm'
> >> error: called from `loadimage' in file
> >> `/usr/share/octave/2.1.34/m/image/loadimage.m'
> >>
> >> so if someone as any idea of what could it be...
> >>
> >> briner
> >>
> >>
> >> ps: this is the header of the file
> >> head ~/img/brynner.ppm
> >> P3
> >> # CREATOR: XV Version 3.10a Rev: 12/29/94
> >> 210 210
> >> 255
> >> 214 57 0 214 57 0 214 57 0 214 57 0 214 57 0
> >> 214 57 0 214 57 0 214 57 0 214 57 0 214 57 0
> >> 214 57 0 214 57 0 214 57 0 214 57 0 214 57 0
> >> 214 57 0 214 57 0 214 57 0 214 57 0 214 57 0
> >>
> >>
> >>
> >>
> >> -------------------------------------------------------------
> >> Octave is freely available under the terms of the GNU GPL.
> >>
> >> Octave's home on the web: http://www.octave.org
> >> How to fund new projects: http://www.octave.org/funding.html
> >> Subscription information: http://www.octave.org/archive.html
> >> -------------------------------------------------------------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------