<div>Many thanks John for your reply.</div><div> <div>The images are created by another function in the link &#39;<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><a href="http://www.itk.org/Wiki/ITK/Examples/Registration/ImageRegistrationMethod" target="_blank" style="color: rgb(0, 0, 204); ">http://www.itk.org/Wiki/ITK/Examples/Registration/ImageRegistrationMethod</a></span>&#39;, the function name are </div>

<div><br><div><div>static void CreateEllipseImage(ImageType::Pointer image);</div><div>static void CreateSphereImage(ImageType::Pointer image);</div><div><br></div><div>I simply cannot understand what it does not work.</div>

<div><br></div><div>I have another question, If i don&#39;t change the the PixalTye from &#39;char&#39; to &#39;int&#39;, Can i still use &#39;itk::SubtractImageFilter&#39; to subtract the registered output image with the fixed input image and write the resulting image out as a tiff image?</div>

<div><br></div><div>many Thanks again</div><div>-T</div><div><br></div><br><div class="gmail_quote">On Tue, Sep 27, 2011 at 3:58 PM, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">&gt; it gives me a error message box &quot;Debug error&quot; R6101 - abort() has been<br>
&gt; called.<br>
&gt; many Thanks<br>
&gt; On Tue, Sep 27, 2011 at 2:59 PM, John Drescher &lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
<br>
</div>Are you loading an image that is larger than 256 MB on 32 bit windows?<br>
The reason I ask is on 32 bit windows regardless of the amount of ram<br>
you have has a default maximum single allocation size limit of around<br>
1.2GB. Using floats or int images you can easily approach this limit<br>
if the original image is large enough.<br>
<font color="#888888"><br>
John<br>
</font></blockquote></div><br></div></div></div>