<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">You most likely did not initialize the transform properly. In other words, when your image is transformed it does not overlap the other image.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 22, 2016 at 3:40 PM, Constantinus Spanakis <span dir="ltr"><<a href="mailto:c.spanakis83@gmail.com" target="_blank">c.spanakis83@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 dir="ltr">I did what you said, and i got the following error<div><br></div><div>Description: itk::ERROR: NormalizedMutualInformationHis<wbr>togramImageToImageMetric(<wbr>000000ECBF28D810): All the points mapped to outside of the moving image. <br></div><div><br></div><div>which is peculiar. What could be the problem?</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 22, 2016 at 9:06 PM, Lowekamp, Bradley (NIH/NLM/LHC) [C] <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Have you tried placing a try {…} catch{std::exception &e) {…} around you code?<br>
<br>
<a href="http://www.cplusplus.com/doc/tutorial/exceptions/" rel="noreferrer" target="_blank">http://www.cplusplus.com/doc/t<wbr>utorial/exceptions/</a><br>
<br>
Brad<br>
<div><div class="m_-8731589605965067165h5"><br>
> On Nov 22, 2016, at 2:03 PM, Constantinus Spanakis <<a href="mailto:c.spanakis83@gmail.com" target="_blank">c.spanakis83@gmail.com</a>> wrote:<br>
><br>
> Hello. I tried to compute Normalized Mutual information for a number of different transformations<br>
> and I get an exception. Them I tried to do some debugging and Microsoft Visual Studio directed me to unhandld.cpp and specifically at line 40.<br>
><br>
> /***<br>
> *unhandld.cxx - Wrapper to call terminate() when an exception goes unhandled.<br>
> *<br>
> * Copyright (c) Microsoft Corporation. All rights reserved.<br>
> *<br>
> *Purpose:<br>
> * Wrapper to call terminate() when an exception goes unhandled.<br>
> ****/<br>
><br>
> #include <windows.h><br>
> #include <ehdata.h><br>
> #include <eh.h><br>
> #include <ehhooks.h><br>
> #include <ehassert.h><br>
> #include <awint.h><br>
> #include <internal.h><br>
> #include <stdlib.h><br>
><br>
> #pragma hdrstop<br>
><br>
> #include <sect_attribs.h><br>
><br>
> extern "C" int __cdecl __CxxSetUnhandledExceptionFilt<wbr>er(void);<br>
><br>
> //////////////////////////////<wbr>//////////////////////////////<wbr>/////////////////<br>
> //<br>
> // __CxxUnhandledExceptionFilter - if the exception is ours, call terminate();<br>
> //<br>
> // Returns:<br>
> // If the exception was MSVC C++ EH, does not return.<br>
> // If the previous filter was NULL, returns EXCEPTION_CONTINUE_SEARCH.<br>
> // Otherwise returns value returned by previous filter.<br>
> //<br>
> LONG WINAPI __CxxUnhandledExceptionFilter(<br>
> LPEXCEPTION_POINTERS pPtrs<br>
> )<br>
> {<br>
> if (PER_IS_MSVC_PURE_OR_NATIVE_EH<wbr>((EHExceptionRecord*)(pPtrs-><wbr>ExceptionRecord))) {<br>
> terminate(); // Does not return<br>
> return EXCEPTION_EXECUTE_HANDLER;<br>
> }<br>
> return EXCEPTION_CONTINUE_SEARCH;<br>
> }<br>
><br>
><br>
> The break point is at return EXCEPTION_EXECUTE_HANDLER;<br>
><br>
> What could envoke this exception?<br>
><br>
> Thank you in advance<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Community mailing list<br>
> <a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
> <a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/community</a><br>
<br>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>