[Insight-users] check boundary Iterator...

Mr Gaffe lagaffe74130 at yahoo.fr
Fri Dec 3 07:44:03 EST 2004


hello,

I would like to know how can I check when I am out of
my image when I use a: "NeighborhoodIterator".
Since boundary condition are set to on by default, I
would like to know when it is happen because I don't
want to add this index ...

this is the global idea of my program:

      it.SetLocation (piIndex); // valid index, 
      for (unsigned i = 0; i < it.Size (); i++)
	{

	  w = it.GetPixel (i);
	  qiIndex = piIndex + it.GetOffset (i);

=> Problem: qiIndex can be outside my Image, so I
would like something like:
if (it.boundaryCondition==OK)
       qiIndex = piIndex + it.GetOffset (i);
else
   // do nothing


thanks for help,

lagaffe



	

	
		
Vous manquez d’espace pour stocker vos mails ? 
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. A télécharger gratuitement sur http://fr.messenger.yahoo.com


More information about the Insight-users mailing list