Re: Thinning problems... [message #61949] |
Tue, 12 August 2008 15:15 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Sheerin writes:
> My problem might have something in common with the last post but I have an
> array of floats (actually the result of bandpass filtering an image) and am
> left with a landscape of blobs with local maxima. What I would like is to
> obtain the coordinates of these maxima. I have tried using "THIN" with but
> this sometimes generates lines rather than fixed points. How do I go about
> trying to the reduce these lines to one point? I have tried using "/PRUNE"
> but this just reduces the line to one of the end points rather that the
> middle one. Thanks for any suggestions...
I usually just find the blobs with LABEL_REGION, then one-by-one
find the center of mass of the blob. Or, if you prefer, you
can find the boundary around the blob and other useful information:
http://www.dfanning.com/ip_tips/boundary.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|