Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!w24g2000prd.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to draw thin line between different color regions?
Date: Tue, 27 Jan 2009 08:14:38 -0800 (PST)
Organization: http://groups.google.com
Lines: 17
Message-ID: <b5e9ea4f-23df-486d-b0dc-aceb63c984bc@w24g2000prd.googlegroups.com>
References: <gea0gi$nq2$1@aioe.org> <1d3ccafc-fd44-49cc-b289-f8c5f322f641@t42g2000hsg.googlegroups.com> 
	<45e80e7d-08ae-4b57-b846-e656ae560989@s9g2000prm.googlegroups.com> 
	<gln4v1$gfg$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: 7bit
X-Trace: posting.google.com 1233072878 19573 127.0.0.1 (27 Jan 2009 16:14:38 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 27 Jan 2009 16:14:38 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: w24g2000prd.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:514275


Basela:
I can't understand what you said and can't really visualize what you
want to do.  Maybe you could mock something up in Photoshop and post
it somewhere (such as at drop.io, posterous.com, or flickr.com).  Once
you've labeled the image, you can display them in colors if you want
using the label2rgb() function.  If they're in different colors, I
don't see why you'd need a line "between different color regions."
And can you explain "between"?  Do you mean like a black line
separating the colors (right on the boundary), or do you mean going,
say, from the centroid of one to the centroid of the other region.
Actually I can't think of a reason for wanting/needing to do either
one.  One thing you could do is use bwboundaries() if you want the
coordinates of the outlines of the regions.  Then you could use them
(the boundary coordinates) to draw them in a color of your choice
(such as black).
Regards,
ImageAnalyst