Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!q26g2000prq.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Can nobody help me???
Date: Tue, 11 Nov 2008 18:02:02 -0800 (PST)
Organization: http://groups.google.com
Lines: 36
Message-ID: <2002cdb8-6508-4455-a065-825124e142c0@q26g2000prq.googlegroups.com>
References: <gfc8tj$4mb$1@aioe.org> <gfc9ou$33r$1@fred.mathworks.com>
NNTP-Posting-Host: 75.186.70.56
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1226455322 25426 127.0.0.1 (12 Nov 2008 02:02:02 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 12 Nov 2008 02:02:02 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: q26g2000prq.googlegroups.com; posting-host=75.186.70.56; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
	CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 
	3.5.21022),gzip(gfe),gzip(gfe)
Bytes: 2371
Xref: news.mathworks.com comp.soft-sys.matlab:500331


On Nov 11, 10:53=A0am, "David" <d...@bigcompany.com> wrote:
> Vicky <bonsa...@gmx.de> wrote in message <gfc8tj$4m...@aioe.org>...
> > Hallo there,
>
> > this is my code:
>
> > image1 =3D imread('image1.bmp');
> > image1 =3D im2bw(image1);
> > M =3D 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
>
> well, a bmp file is normally a simple rgb format. =A0read the help for im=
write and see if one of the other formats may be better for what you want. =
=A0or you may just want to save M to something else, like a mat file instea=
d of as an image.- Hide quoted text -
>
> - Show quoted text -

---------------------------------------------
Correct.  Save in Tiff format instead.  It can take monochrome.
Regards,
ImageAnalyst