Grouping adjacent detected pixels? [message #4998] |
Mon, 28 August 1995 00:00 |
grunes
Messages: 68 Registered: September 1993
|
Member |
|
|
Subject: Grouping adjacent detected pixels?
I have an image of "detected" points--
True for pixels meeting some detection criteria (such as brightness).
False otherwise.
I wish, using WAVE or IDL, to:
1. Group together adjacent detected pixels.
If I want to get fancy, I might try to group together detected
pixels which are within a specific distance of touching.
2. Get a something like a structure back, each element of which
describes one such group. Each element would be an array
of the coordinates of the pixels in the adjacent group.
Can anyone think of an EFFICIENT way to do this that does not involve
a massively slow loop which loops once for each detected pixel?
(There are many, many detected points, and IDL/WAVE are rather slow
at loops.)
Thanks in advance for your response.
|
|
|