Path: news.mathworks.com!not-for-mail
From: "Jeroen " <bincky@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: image import struct
Date: Thu, 5 Nov 2009 11:55:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <hcueen$12c$1@fred.mathworks.com>
Reply-To: "Jeroen " <bincky@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257422103 1100 172.30.248.38 (5 Nov 2009 11:55:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 5 Nov 2009 11:55:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1785667
Xref: news.mathworks.com comp.soft-sys.matlab:582687


Hi!

When i import an image with uiimport matlab gives the error:
'MAP must be a m x 3 array.'

But I am sure it is an RGB image. The code that I use is:
meting = uiimport;
meting_grayscale = rgb2gray(meting); %naar een grayscale
meting_double = im2double(meting_grayscale); %naar een index

And when I load an image it says in has the size 1024x1024x3. That is an a m x 3array. 

Do i have to convert the import image? Or do I have to change some settings? Or add another codeline? Or is it another the type of image?

Thank you anyway!

gr jeroen