[Insight-users] Building an ImageIterator object in python with itk3

Mathieu Stumpf mathieu.stumpf at etu.unistra.fr
Wed Jun 20 03:25:08 EDT 2012


Hello,

I need to translate a C++ code which contains an instruction
"ImageIterator it(itkimage, region);" instruction.

I use the debian stable packaged version (itk 3.18.0) and I can't find
the corresponding wrapped constructor. The most approaching instruction
I found is "it = itk.itkImageRegionIteratorSS3()", but the resulting
object have no method to specify the itkimage and region parameters.

Here is the result of a dir(it):
['__class__', '__del__', '__delattr__', '__
dict__', '__doc__', '__format__', '__getattr__', '__getattribute__',
'__hash__', '__init__', '__modu
le__', '__new__', '__reduce__', '__reduce_ex__', '__repr__',
'__setattr__', '__sizeof__', '__str__',
'__subclasshook__', '__swig_getmethods__', '__swig_setmethods__',
'__weakref__', 'this', 'thisown']

Could someone give me a hint on this?

Kind regards,
mathieu



More information about the Insight-users mailing list