Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!32g2000yqj.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: center line
Date: Thu, 23 Jul 2009 04:26:12 -0700 (PDT)
Organization: http://groups.google.com
Lines: 17
Message-ID: <b996af81-d95e-44c6-9ba4-b6a856bb7b87@32g2000yqj.googlegroups.com>
References: <h499f6$5dc$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 1248348372 11900 127.0.0.1 (23 Jul 2009 11:26:12 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 23 Jul 2009 11:26:12 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 32g2000yqj.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; 
	GTB6; .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)
Xref: news.mathworks.com comp.soft-sys.matlab:557791


On Jul 23, 5:11 am, "Anil N" <ani...@yahoo.com> wrote:
> Hi,
>
> I am working on tracking linear features in images. I got the boundary of a linear feature and the contour representing the boudary. Now i need to draw the centerline of the contour. Can any one knows how to draw the centerline of a contour.
>
> thanks
> anil

--------------------------------------------------------
Assuming your contour is some thick region, and you've thresholded it
to a binary image already (easy to do), then just call bwmorph() with
the 'skel' option to skeletonize your thick regions.
Good luck,
ImageAnalyst