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: Ricardo F. <rf...@if...> - 2003-12-11 22:16:31
|
Very strange... the very same example works with me: A=3Dimread(SIPDIR+=EDmages/ararauna.jpg'); size(A) ans =3D ! 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=3Dimread(SIPDIR+'images/ararauna.jpg'); > B=3DA; > B(1,1,1)=3DA(1,1,1);//this should not change anything > C=3DA.*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=3Dim2gray(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. -- Ricardo Fabbri, Cybernetic Vision Research Group, USP, Brazil. www.rfabbri.kit.net |