Find all the interconnected pixels (neighbour)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Find all the interconnected pixels (neighbour)

Space
Hi Folks,

First I would like to apologize if my question has already been asked.

I have a grey image and I would like to find all the region of this image where the pixels are interconnected.
e.g If pixel A is a neighbour of pixel B which is a neighbour of pixel C I would like to retrieve a list which one of the item will contains the pixels ABC.

It may be seems straightforward but i can't find the way.

Thanks for any help provide :).
Space.
Reply | Threaded
Open this post in threaded view
|

Re: Find all the interconnected pixels (neighbour)

Michael Schmid
Hi Space (your real name?),

your description is not very clear, but have a look at the Wand tool
  http://rsb.info.nih.gov/ij/docs/guide/146-19.html#toc-Subsection-19.7

It will create a selection of pixels of equal or roughly equal value connected to each other.
Depending on whether it is in 4-connected or 8-connected mode (double click the tool to select), it uses different definitions of what a "neighbor pixel" is: In 8-connected mode, also neighbors touching only at a corner point (diagonal direction) are taken as neighbors.

Michael
________________________________________________________________
On Sep 7, 2014, at 22:13, Space wrote:

> Hi Folks,
>
> First I would like to apologize if my question has already been asked.
>
> I have a grey image and I would like to find all the region of this image
> where the pixels are interconnected.
> e.g If pixel A is a neighbour of pixel B which is a neighbour of pixel C I
> would like to retrieve a list which one of the item will contains the pixels
> ABC.
>
> It may be seems straightforward but i can't find the way.
>
> Thanks for any help provide :).
> Space.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html