Hi, <br>I have tested the following example, written in python using wrapitk:<br><br>import numpy as np<br>import itk<br>itk.auto_progress(2)<br><br>image_type = itk.Image.F3<br>duplicator = itk.ImageDuplicator[image_type].New()<br>
filter_type = itk.RecursiveGaussianImageFilter[image_type, image_type]<br>reader = itk.ImageFileReader[image_type].New()<br>reader.SetFileName('/home/borsh/test/im1.jpg')<br>for i in range(400):<br> print i<br>
ga = filter_type.New()<br> gb = filter_type.New()<br> ga.SetDirection(0)<br> gb.SetDirection(1)<br> ga.SetZeroOrder()<br> gb.SetZeroOrder()<br><br> ga.SetInput(reader.GetOutput())<br> gb.SetInput(ga.GetOutput())<br>
duplicator.SetInputImage(gb.GetOutput())<br> gb.Update()<br><br>With each iteration of outer loop the memory usage of the python process increases. Am I doing something wrong or is there a memory leak in wrapitk?<br>
<br>Best regards, <br>Boris Kazakov. <br>