From: Rahul on
Hello,
I have a binary image with an outline of an object (via bwperim).
I need indices (coordinates) of these outlining pixels but do not want to use the function 'find'. Is there any function to get coordinates of pixels in sequence as they exist along the boundary ?
I use Matlab R12. Thanks!
From: kinor on
"Rahul " <rahul.ankita(a)gmail.com> wrote in message <hjb4l1$1q1$1(a)fred.mathworks.com>...
> Hello,
> I have a binary image with an outline of an object (via bwperim).
> I need indices (coordinates) of these outlining pixels but do not want to use the function 'find'. Is there any function to get coordinates of pixels in sequence as they exist along the boundary ?
> I use Matlab R12. Thanks!

HI Rahul

as mentioned in the help of bwperim:

help bwboundaries
help bwtraceboundary

kinor
From: Rahul on
Thank you Kinor for inputs..
Unfortunately I am running on a dated R12 version of Matlab..
Thanks anyway

"kinor " <kinor.removethiswithdot(a)gmx.de> wrote in message <hjbo0b$nd8$1(a)fred.mathworks.com>...
> "Rahul " <rahul.ankita(a)gmail.com> wrote in message <hjb4l1$1q1$1(a)fred.mathworks.com>...
> > Hello,
> > I have a binary image with an outline of an object (via bwperim).
> > I need indices (coordinates) of these outlining pixels but do not want to use the function 'find'. Is there any function to get coordinates of pixels in sequence as they exist along the boundary ?
> > I use Matlab R12. Thanks!
>
> HI Rahul
>
> as mentioned in the help of bwperim:
>
> help bwboundaries
> help bwtraceboundary
>
> kinor