Joining Multiple Vectors from the Thin Function [message #61957] |
Tue, 12 August 2008 11:13 |
mzagursk@gmail.com
Messages: 9 Registered: June 2008
|
Junior Member |
|
|
Hi All,
This problem is a bit complex so I'll try to spell it out as best I
can. IDL's THIN() function finds the medial axis of a shape. In my
case, this medial axis is akin to the ridge of a mountain. The output
of the THIN function is an array of the same dimensions as the image
with all values set to 0 except: If the point is on the medial axis,
it has a value of '3'. If the point is on the medial axis and is an
endpoint, it has a value of 2. I need to find a way to extract (in
order) the ridge data. This task is further complicated because the
THIN function does not output just one medial axis. Instead, it
outputs 'segments' if there is a kink in the shape. So, you end up
with a complex structure of line segments. What I need to do is put
these segments in order from one endpoint to the other endpoint of the
ridge. Any ideas?
Hope I explained well enough!
|
|
|