OK, I think I figured out the source of the problem. If I force the number of threads to be one (itk::MultiThreader::SetGlobalMaximumNumberOfThreads( 1 )), it seems to produce the correct result.<br><br><div class="gmail_quote">
On Fri, Feb 17, 2012 at 12:54 PM, Mike Chinander <span dir="ltr"><<a href="mailto:chinander@gmail.com">chinander@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm trying the ImageRegistrationMethodBSpline Wiki example and my output is much worse than what's shown on the wiki.<div><br></div><div>Here's a link to my result:</div><div><a href="https://picasaweb.google.com/lh/photo/KpwN4inPxljcSGlI5DR5-sXo0I4DwQ9Bav7a7f5Xhcw?feat=directlink" target="_blank">https://picasaweb.google.com/lh/photo/KpwN4inPxljcSGlI5DR5-sXo0I4DwQ9Bav7a7f5Xhcw?feat=directlink</a></div>
<div><br></div><div>And the better result on Wiki Example page:</div><div><a href="http://www.itk.org/Wiki/ITK/Examples/Registration/ImageRegistrationMethodBSpline" target="_blank">http://www.itk.org/Wiki/ITK/Examples/Registration/ImageRegistrationMethodBSpline</a>
</div><div><br></div><div>It's only doing 2 iterations for me and I'm getting 'Optimizer stop condition = LBFGSOptimizer: Failure' which doesn't sound good.</div><div>This is with ITK 4.0.0 and VS 2010 x64. Anyone have any ideas what exactly is going wrong and how to fix it?</div>
<div><br></div><div>Thanks,</div><div><br></div><div>--Mike Chinander</div>
</blockquote></div><br>