Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!aioe.org!not-for-mail
From: Vicky <bonsai19@gmx.de>
Newsgroups: comp.soft-sys.matlab
Subject: Can nobody help me???
Date: Tue, 11 Nov 2008 16:38:20 +0100
Organization: Aioe.org NNTP Server
Lines: 22
Message-ID: <gfc8tj$4mb$1@aioe.org>
NNTP-Posting-Host: 4aR2sdd5ZNFa34aZsnjaSA.user.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
NNTP-Posting-Date: Tue, 11 Nov 2008 15:38:28 +0000 (UTC)
X-Notice: Filtered by postfilter v. 0.7.4
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
Xref: news.mathworks.com comp.soft-sys.matlab:500234


Hallo there,

this is my code:

image1 = imread('image1.bmp');
image1 = im2bw(image1);
M = bwlabel(image1, 8);
imwrite(M, 'myImage.bmp');

How can I save an image (bmp), so that in each pixel is the element of 
the matrice M?

If I save the matrice M with the command "imwrite" in each pixel of the 
myImage.bmp is an rgb-value. But I don't want a rgb-value, I want the 
label (element) of the matrice M.

How can I realize it?

Please I need help!!!

Best regards,
Vicky