<div>Hi,</div><div><br></div>Anyone have any idea to solve the problem exposed?<div><br></div><div>Thanks,</div><div><br></div><div>Roger<br><br><div class="gmail_quote">On Wed, Feb 16, 2011 at 11:51 AM, Roger Bramon Feixas <span dir="ltr"><<a href="mailto:rogerbramon@gmail.com">rogerbramon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<div><br></div><div>I'm developing with ITK 3.20 + GDCM 2.0.17 + VTK 5.6 and I've noticed itkImageSeriesReader is ~2x slower than vtkGDCMImageReader (from GDCM2). I compared both codes and I think the difference is the extra copy which itkImageSeriesReader makes from ImageFileReader's output to its own output (ImageSeriesReader::GenerateData() line 393). I've commented it just to test the time needed without making the copy and now both readers take more or less the same time.</div>
<div><br></div><div>Is there a way to avoid the copy? I mean, could ImageFileReader write into the itkImageSeriesReader's output allocated memory directly?</div><div><br></div><div>I've also attached a test program if someone want to test it.</div>
<div><br></div><div>Thanks for your attention,</div><div><br></div><font color="#888888"><div>Roger</div>
</font></blockquote></div><br></div>