<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
I guess you don't have to allocate the fixedImage and movingImage?
<div>I made the same mistake before.</div>
<div><br>
</div>
<div>Just do:</div>
<div><br>
</div>
<div>ImageType::Pointer&nbsp;fixedImage = readerFixed-&gt;GetOutput();</div>
<div>ImageType::Pointer&nbsp;movingImage = readerMoving-&gt;GetOutput();</div>
<div><br>
</div>
<div>Good luck!</div>
<div>Wen</div>
<div><br>
<div>
<div>
<div>On Apr 27, 2012, at 1:17 PM, agatte wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">readerFixed</span></blockquote>
</div>
<br>
</div>
</div>
</body>
</html>