Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!v39g2000pro.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how can I label segmented images
Date: Fri, 31 Oct 2008 13:21:38 -0700 (PDT)
Organization: http://groups.google.com
Lines: 44
Message-ID: <fdd993a2-0c67-4021-a121-c629dfae798a@v39g2000pro.googlegroups.com>
References: <gea0gi$nq2$1@aioe.org> <1d3ccafc-fd44-49cc-b289-f8c5f322f641@t42g2000hsg.googlegroups.com> 
	<geephe$5m2$1@aioe.org> <45e80e7d-08ae-4b57-b846-e656ae560989@s9g2000prm.googlegroups.com> 
	<geevn9$s8t$1@aioe.org> <gef3t8$r8s$1@fred.mathworks.com> 
	<gef5ad$d9u$1@aioe.org> <gefb7i$1a1$1@fred.mathworks.com>
NNTP-Posting-Host: 192.44.136.113
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1225484498 14195 127.0.0.1 (31 Oct 2008 20:21:38 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 31 Oct 2008 20:21:38 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: v39g2000pro.googlegroups.com; posting-host=192.44.136.113; 
	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)
X-HTTP-Via: 1.1 bdci2px (NetCache NetApp/6.0.7)
Xref: news.mathworks.com comp.soft-sys.matlab:498353


On Oct 31, 12:20=A0pm, "Adam" <not.r...@email.com> wrote:
> Vicky <bonsa...@gmx.de> wrote in message
> > it's a good idea to copy each color out.
>
> Then every color get an label.
> .> The background is 0 and the colored object get the label 1.
>
> .
> It sounds like at this step you are capable of making an "image" which is=
 the binary representation of a color. =A0In my example I'm going to assume=
 there are 4 colors, {red, green, blue, black}. =A0You get 3 "images" that =
I'll call {iRed, iGreen, iBlue}
> .> The object get the label 1 in each seperated image.
>
> .
> So each of these "images" is a matrix full of 1's and 0's
> .> If I bring the sepearted images together again
> >(with an image addition) all the objects have the label 1.
> >And so I can't distinguish the different colors.
>
> .
> So change the ones to something else. =A0The easy way is multiplying each=
 "image".
> iRed =3D iRed; =A0% leave as 1
> iBlue =3D iBlue * 2; =A0% change to label 2
> iGreen =3D iGreen * 3; % change to label 3
> .
> Now if you add them together they won't all be 1.
> .
> ~Adam

---------------------------------------------------------------------
That won't work.  At least not for labeling.  If you separate them,
then just figure out what you want (areas, intensities, perimeters,
centroids, whatever) and you're done.  No need to recombine into a
single image and try to (possibly) relabel and remeasure them in some
kind of combined image.  It's just not necessary.  Anyway the method
you and Adam thought up won't give blobs with unique label numbers.
It doesn't matter whether you just have binary maps of each color
plane or even if each color plane is labeled independently - you won't
have unique labels if you combine them in that way.  Think about it
and you'll understand why.  Just measure each image separately.
Regards,
ImageAnalyst