<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 22, 2015 at 10:47 AM, suneeza hanif <span dir="ltr"><<a href="mailto:suneezahanif02@gmail.com" target="_blank">suneezahanif02@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"><div>Hello <span name="Dženan Zukić">Dženan,</span></div><div><span name="Dženan Zukić"></span> </div><div><span name="Dženan Zukić">Thanks a lot for your help. :)</span></div><div><span name="Dženan Zukić"></span> </div><div><span name="Dženan Zukić">I have one more question. When I applied spatial mask I got this warning and registration was not performed.</span></div><div><span name="Dženan Zukić"></span> </div><div><span name="Dženan Zukić"><em>" WARNING: In ..\....\itkObjectToObjectMetric.hxx, line 529<br>MeanSquaresImageToImageMetricv4 (00FDCC00): No valid points were found during metric evaluation. For image metrics, verify that the images overlap appropriately. For instance, you can align the image centers by translation. For point-set metrics, verify that the fixed points, once transformed into the virtual domain space, actually lie within the virtual domain."</em></span></div></div></blockquote><div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;display:inline">You need to give initial transform which transforms the moving image so there is some overlap.</div> <div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;display:inline">Mathematical formulation: l</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;display:inline">Local optimization methods need a to have a starting point which is inside the domain of the cost function. </div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;display:inline">Take a look at <a href="http://www.itk.org/Doxygen46/html/RegistrationITKv4_2ImageRegistration12_8cxx-example.html">this example</a>, which is also included with ITK's source code.</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span name="Dženan Zukić"></span> </div><div><span name="Dženan Zukić">For spatial mask is it necessary that both mask and image have same number of bits?</span></div></div></blockquote><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">It is not necessary.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span name="Dženan Zukić"></span> </div><div><span name="Dženan Zukić">Regards,</span></div><div><span name="Dženan Zukić">Suneeza</span></div><div><span name="Dženan Zukić"></span> </div></div>
</blockquote></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">HTH</div><br></div></div>