Re: [SIP-devel] Problem with color images
Advanced image processing toolbox for Scilab on Unix/Linux/Mac OS
Status: Beta
Brought to you by:
ricardofabbri
From: DRUEL J. <joc...@li...> - 2003-12-13 12:31:07
|
Hi, My version is SIP-bin-0.2 and scilab 2.6. I tried with Scilab-2.7 and sip-bin-0.2 size(A) ans = ! 161 200 3 ! just like you. So, there's no problem anymore with this version. All right. Maybe there can be a line in the README file: something like Known bugs Before acting on color images with Scilab-2.6, it's recommended to perform the following: A = imread(your_image); A(1,1,1)=A(1,1,1); to get the correct image size. Or maybe, just a copy the example that I sent. This could save some time to newcomers in SIP. Best regards Jocelyn Le Jeudi 11 Décembre 2003 21:15, vous avez écrit : > Very strange... > > the very same example works with me: > > A=imread(SIPDIR+ímages/ararauna.jpg'); > > size(A) > ans = > > ! 161. 200. 3. ! > > > What version of scilab, SIP and operating system are you using? > > That test was made under Linux with scilab CVS. > If you're using Linux, install the CVS version. > > cheers, > Ricardo. > > On Thu, 11 Dec 2003, DRUEL Jocelyn wrote: > > Hi, > > I have a problem with the behaviour of color images: > > Let's try: > > A=imread(SIPDIR+'images/ararauna.jpg'); > > B=A; > > B(1,1,1)=A(1,1,1);//this should not change anything > > C=A.*B;//does not work (incompatibility in sizes) > > > > It's confirmed by: > > size(A) > > ! 161 ! > > ! 200 ! > > ! 3 ! > > > > and size(B) > > ! 161 200 3 ! > > > > If I try this: > > D=im2gray(A); > > size(D) is > > ! 161 200 ! > > > > I think, it would cause less problems if size(A) was directly ! 161 200 3 > > ! because with the actual configuration, almost any action on A will > > modify its size. > > > > Best regards > > Jocelyn > > Ricardo. -- Powered by Linux |