Prev: using fmincon with matrix as variable in stead of vector
Next: Surface generation from 3D Co-ordinates
From: Rakesh bagul on 19 May 2010 16:47 Hi Image Analyst, I am trying to implement rgb2gray as follows: I=imread('Frame 0009.tif'); R=rgb2gray(I); but after this it shows following error. Error. This image is not RGB. Aborting. When I run same function with same image on another machine it works properly. Please tell me why it is happening. Thanks in advance.. RK
From: Walter Roberson on 19 May 2010 17:10 Rakesh bagul wrote: > I am trying to implement rgb2gray as follows: > I=imread('Frame 0009.tif'); > R=rgb2gray(I); > but after this it shows following error. Error. This image is not RGB. > Aborting. > When I run same function with same image on another machine it works > properly. > Please tell me why it is happening. Are you certain it is the same image? As in, did you try copying the image from the non-working system to the other? Are the Matlab versions the same on both machines? Which Matlab version are you having trouble with? The error message you indicate is not a possible error in the rgb2gray that is part of 2008b.
From: Ashish Uthama on 20 May 2010 15:56
On Wed, 19 May 2010 16:47:05 -0400, Rakesh bagul <bagulr2209(a)gmail.com> wrote: > Hi Image Analyst, > I am trying to implement rgb2gray as follows: > I=imread('Frame 0009.tif'); > R=rgb2gray(I); > but after this it shows following error. Error. This image is not RGB. > Aborting. When I run same function with same image on another machine it > works properly. > Please tell me why it is happening. > > Thanks in advance.. > RK On the machine that failes, check that you are using the correct version: which rgb2gray Show us what I is: whos I (ps: in general an exact copy paste of the error message helps) |