comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: find_boundary routine
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: find_boundary routine [message #38669 is a reply to message #38636] Wed, 24 March 2004 10:29 Go to previous message
brian_frizzelle is currently offline  brian_frizzelle
Messages: 2
Registered: March 2004
Junior Member
David and Ben,

Thanks for the assistance. I now understand how David's routine works,
and it attacks this perimeter problem in a different manner than what
I needed. So I wrote a different routine which will calculate the
boundary of a region in an array, as long as all cells in the region
are coded with a 1.
The reason that the FIND_BOUNDARY routine didn't work for me is that I
needed to calculate the perimeters from the pixel corners rather than
the centers. So a one-pixel region should have a perimeter of 4, and a
2-by-2 region should have a perimeter of 8. In your routine, the
one-pixel region's perimeter would be 0, and the 2x2 pixel region's
perimeter would be 1.

If anyone is interested, I can post my code.

Brian
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Calling Matlab engine from IDL,
Next Topic: 2d extrema

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 04:13:32 PDT 2025

Total time taken to generate the page: 1.28078 seconds