[Insight-users] How To get Iterator of ITK image?

Luis Ibanez luis.ibanez@kitware.com
Thu May 20 16:00:41 EDT 2004


Hi Tsai,

We were not convinced that using Iterators
at the level of the wrapping layer may be
a good idea. There is a significan overhead
in the process of invoking every pixel.

However,
It is nice to have the freedom to try it.    :-)

So,
we just added wrapping for the ImageRegionIterator
to the repository. Please update your cvs checkout
in order to get the modifications.

..Don't expect pixel access to be fast this way...


Let us know if you find any problems.


  Thanks


     Luis



--------------------
tsai wrote:
> Hello,Insight-users£¡
>       I found a class:ITK::ImageIterator,but this class was not wrapped in python.
> Is there any other way to get iterator of itk image?I want to read/write every point
> of this image.
> 
> 
> 
> Best Regards,                    
> 
> tsai
> tsai@sjtu.edu.cn
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users@itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 






More information about the Insight-users mailing list