<div>Many thanks John for your reply.</div><div> <div>The images are created by another function in the link '<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>', 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't change the the PixalTye from 'char' to 'int', Can i still use 'itk::SubtractImageFilter' 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"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">> it gives me a error message box "Debug error" R6101 - abort() has been<br>
> called.<br>
> many Thanks<br>
> On Tue, Sep 27, 2011 at 2:59 PM, John Drescher <<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>> wrote:<br>
>><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>