[Insight-users] how to use Neighborhood iterator properly
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Sun Feb 22 15:43:34 EST 2009
Le 22 févr. 09 à 20:44, Ming Chao a écrit :
> Nobody has any experiences using neighborhood iterator? Please help
> out. Thanks.
>
> On Fri, Feb 20, 2009 at 6:53 PM, Ming Chao <mingchao2005 at gmail.com>
> wrote:
> Hi all,
>
> I am learning how to use neighborhood iterator and apply it to study
> a toy model. I found the following:
>
> when looping the neighborhood iterator, it still acts like the
> regular image iterator, ie, running all pixels. This feature is not
> what I feel like.
>
> My toy model is like this: I have a 2D image with, say, 4X4 pixels.
> I randomly assign gray values 0 or 1000 to these 16 pixels. For
> those with 1000, I try to put those which has at least 1 common side
> (1-connectivity) and count how many of these connected pixels. I
> thought neighborhood iterator would be ideal in this study.
>
> If you anyone can help me out on either neighborhood iterator or the
> toy model, I would greatly appreciate it.
>
Hi Ming,
You may want to look at the ITK User Guide, page 720, where the usage
of neighborhood iterator is explained in detail.
http://www.itk.org/ItkSoftwareGuide.pdf
Regards,
Gaëtan
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.mandriva.org
http://www.itk.org http://www.clavier-dvorak.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090222/ee50ca56/attachment.pgp>
More information about the Insight-users
mailing list