Path: news.mathworks.com!not-for-mail
From: "Ahmad " <ahmad.humyn@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Image Region -> perimeter sample
Date: Mon, 12 May 2008 13:42:03 +0000 (UTC)
Organization: University of Lahore
Lines: 42
Message-ID: <g09hfb$7e6$1@fred.mathworks.com>
References: <g051aq$m6a$1@fred.mathworks.com> <f41d7a04-fb33-46b9-978d-746a147f91f6@b64g2000hsa.googlegroups.com>
Reply-To: "Ahmad " <ahmad.humyn@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210599723 7622 172.30.248.35 (12 May 2008 13:42:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 12 May 2008 13:42:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 687196
Xref: news.mathworks.com comp.soft-sys.matlab:467902


Thanks :) Nothing is wrong with bwboundary or
bwtraceboundary...I just didn't know about them. Thanks for
pointing me in the right direction. These functions were
exactly what I was looking for :)

Thank you for all the help.

Regards,

ImageAnalyst <imageanalyst@mailinator.com> wrote in message
<f41d7a04-fb33-46b9-978d-746a147f91f6@b64g2000hsa.googlegroups.com>...
> On May 10, 4:42=A0pm, "Ahmad " <ahmad.hu...@gmail.com> wrote:
> > Hi there,
> >
> > Given a binary image of a single connected object, what is
> > the quickest way to find a sample of pixels on its
> > edge/perimeter. By a sample of pixels I do not mean all
> > pixels on the perimeter, but just a sample of fixed number
> > of pixels, where each pixel is separated from the other by
> > some margin. (I also have the Image processing toolbox)
> >
> > Regards,
>
----------------------------------------------------------------------------=
> --------
> Ahmad:
> What is it about bwboundary that you don't know how to
deal with?
> This gives you the boundaries of objects.  You could then
take a
> "sample of fixed number of pixels" from that just by
taking the first
> N pixels, or using rand to generate indexes to extract or
lots of
> other methods.  What are you really after when you say
your want just
> a sample of the boundaries rather than all of them.  What
good would
> that be?
> Regards,
> ImageAnalyst