<html><body bgcolor="#FFFFFF"><div>Hi Sven,</div><div><br></div><div>consider the ResampleImageFilter to resample your image(s) on a coarsor grid.<br><br></div><div>--</div><div>regards</div><div>Andreas</div><div><br>Am 04.03.2009 um 16:35 schrieb "Fischer, Sven" &lt;<a href="mailto:Sven.Fischer@medizin.uni-leipzig.de">Sven.Fischer@medizin.uni-leipzig.de</a>>:<br><br></div><div></div><blockquote type="cite"><div>

<div class="Section1">

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">Dear all,<o:p></o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p>&nbsp;</o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">I want to do a Registration between MRT and CT image.
I use Mattes Mutual Information and a Multi resolution registration. My images
have 9011200 and 181665792. Pixel Type is signed short. Doing the registration
I get the Failed to allocate memory error.<o:p></o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial"><o:p>&nbsp;</o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">itk::ExceptionObject (0180F850)<o:p></o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">Location: "float *__thiscall
itk::ImportImageContainer&lt;unsigned long,float>::All<o:p></o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">ocateElements(unsigned long) const"<o:p></o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">File: c:\src\openmaf\libraries\itk\sources\insighttoolkit-3.2.0\code\common\itkI<o:p></o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">mportImageContainer.txx<o:p></o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">Line: 188<o:p></o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">Description: Failed to allocate memory for image.<o:p></o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial"><o:p>&nbsp;</o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">So I would like to know if there is a filter I can
use to scale down the memory usage of the bigger image. I think I could use the
ShrinkImageFilter for that, but I want to keep the origin of my image. I
appreciate for any suggestion that could help.<o:p></o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial"><o:p>&nbsp;</o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">Cheers,<o:p></o:p></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-GB" style="font-size:
10.0pt;font-family:Arial">Sven<o:p></o:p></span></font></p>

</div>




</div></blockquote><blockquote type="cite"><div><span>_____________________________________</span><br><span>Powered by <a href="http://www.kitware.com"><a href="http://www.kitware.com">www.kitware.com</a></a></span><br><span></span><br><span>Visit other Kitware open-source projects at</span><br><span><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br><span></span><br><span>Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ"><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></span><br></div></blockquote></body></html>