<div dir="ltr">Hi,<br><br>I've experienced the same problem Marius reported. When I try to open a large volume with itk::ImageSeriesReader on windows XP it fails allocating memory when there's enough system memory available.<br>
<br>I've tried to load several large volumes (400-600Mb) on the same system with 2 Gb of RAM under linux and windows vista, and I didn't have any problem, but under windows xp they give me allocation failures ( all tried OS versions were 32 bit ) so it seems it is a windows xp problem with memory management.<br>
<br>Did someone find any solution for this problem? Is there some workaround to avoid this lack of memory on windows xp?<br><br>Any hint would be very apreciatte.<br><br><div class="gmail_quote">On Tue, May 6, 2008 at 9:59 AM, Hauke Heibel <span dir="ltr"><<a href="mailto:heibel@cs.tum.edu" target="_blank">heibel@cs.tum.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I once have had similar experiences. You need to check a few more things. Additional memory might be required, when your program needs to convert the data (unsigned short != short, etc.). Note, that this might happen inside the ImageSeriesReader. From what I remember, the ImageSeriesReader requires in the best case (without any conversion)<br>
<br>
sizeof(volume) + 2*sizeof(biggest slice)<br>
<br>
In your case this does not change much. You also need to make sure, that the previous part of your program did not consume too much memory. You might want to take a look at the Process Explorer (<a href="http://www.microsoft.com/germany/technet/sysinternals/utilities/ProcessExplorer.mspx" target="_blank">http://www.microsoft.com/germany/technet/sysinternals/utilities/ProcessExplorer.mspx</a>). It will give you detailed information on the process that is running including very good information about the memory consumption. Maybe you can give a hint on the memory consumption before the allocation that failed.<br>
<br>
I hope that helps a bit,<br>
Hauke<div><br>
<br>
Marius Erdt wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I have tested some more data sets (.dcm, .png) on different systems, but the result is always the same. As soon as the number of slices gets too high, the memory allocation fails.<br>
<br>
Does anyone have an idea how this problem can be fixed?<br>
<br>
Thanks,<br>
<br>
Marius<br>
<br>
<br>
<br>
I added the output to the file and loaded a data set of 809 slices of 16-Bit PNG images with a resolution of 573x330. This is the result:<br>
<br>
Number of pixels requested = 152973810<br>
Bytes per pixel = 4<br>
<br>
so the size should be ~583 Mb in total. However, the memory could not be allocated.<br>
<br>
regards,<br>
Marius<br>
</blockquote></div><font color="#888888">
-- <br>
Tim Hauke Heibel<br>
Computer Aided Medical Procedures (CAMP)<br>
fon: +49 89 289 19427<br>
fax: +49 89 289 17059</font><div><div></div><div><br>
<br>
_______________________________________________<br>
Insight-users mailing list<br>
<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a><br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div>