[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error: load: ../some image directory/..: inconsistent number of colu
From: |
shoker_17 |
Subject: |
Re: error: load: ../some image directory/..: inconsistent number of colu |
Date: |
Wed, 6 Sep 2006 09:07:39 -0700 (PDT) |
Ok...people, thanks for all your assistance and sorry for my poor
desciptions.
My version of Octave is 2.1.72 and yes I was trying perform
loadimage('cell1.jpg').
May I know why is it that imread() is prefered over loadimage() since they
perform the same functions?
I tried opening a file called 'default.img' (which was in my IMAGEPATH) and
using loadimage(), it worked.
Does it means that loadimage() supports only certain image formats?
==============================My code================================
colormap("default");
[x,map] = loadimage('cell1.jpg');
ind2gray(x,map);
img_form="img";
saveimage('testImage',x,img_form,map);
==============================My code================================
*********************************************Error
message***************************************************
error: load: /home/loner/Desktop/cell1.jpg: inconsistent number of columns
near line 2
error: load: unable to extract matrix size from file
`/home/loner/Desktop/cell1.jpg'
error: called from `loadimage' in file
`/usr/share/octave/2.1.72/m/image/loadimage.m'
error: near line 9 of file `/home/loner/Desktop/octave1.m'
*********************************************Error
message***************************************************
Shoker
John W. Eaton wrote:
>
> On 6-Sep-2006, shoker_17 wrote:
>
> |
> | Hmm...which version did i installed? I am currently using Linux Ubuntu
> 6.06
> | and the packagess I installed are:
> |
> | 1) octave
> | 2) octave-forge
> | 3) xorg-dev
> | 4) xlibs-dev
> |
> | The Error is actually the following statement,
> | error: load: /home/loner/Desktop/cell1.jpg: inconsistent number of
> columns
> | near line 2
> |
> | Error occurs only when those files I tried loading were created by
> myself.
> | So far, I only tried jpg, bmp, img and ppm files using this function.
>
> Oh, it looks like you are trying to load an image with the load
> function. Is that correct? Are you doing
>
> load cell1.jpg
>
> ? If so, that is not intended to work. I think you want to use the
> imread function from Octave Forge.
>
> If not, then *precisely* what are you doing, and what error messages
> do you see? Give us the complete commands that you typed and all the
> error messages that Octave prints.
>
> jwe
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
>
--
View this message in context:
http://www.nabble.com/error%3A-load%3A-..-some-image-directory-..%3A-inconsistent-number-of-colum-tf2221844.html#a6174589
Sent from the Octave - General forum at Nabble.com.