<div dir="ltr"><br><div class="gmail_quote"><br><br><div dir="ltr"><div>Hi Marie, </div><div><br></div>The registration is done in physical space not the image domain, a detailed description is in Section 3.3 in the itk sotware guide ( <a href="https://itk.org/ITKSoftwareGuide/html/Book2/ITKSoftwareGuide-Book2ch3.html#x26-990003.1" target="_blank">https://itk.org/<wbr>ITKSoftwareGuide/html/Book2/<wbr>ITKSoftwareGuide-Book2ch3.<wbr>html#x26-990003.1</a> ).<div><br></div><div>Each image has a mapping from the image domain, i.e your voxel space where you can index individual pixels, to physical space. If those mappings map the images into physical space in a way that results in no overlap between the images you will get the exception you are seeing. The physical space is determined by:<br><br></div><div>"<span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium">One important consequence of this fact is that having the correct image origin, image pixel size, and image direction is fundamental for the success of the registration process in ITK, since we need this information to compute the exact location of each pixel lattice in the physical space; we must make sure that the correct values for the origin, spacing, and direction of all fixed, moving and virtual images are provided."</span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium">So you might want to check those values for the images you are registering.</span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium">-Sam</span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><br></span></div><div> </div><div><div><br></div></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Thu, Aug 3, 2017 at 10:18 AM, CocoM <span dir="ltr"><<a href="mailto:cgo_2113@hotmail.com" target="_blank">cgo_2113@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think this works fine now, I had a format problem, thanks. But when<br>
registering two images of different size I get the exception "Inputs do not<br>
occupy the same physical space!". If I go on anyway the registration process<br>
ends normally, but the metric value is huge and never decreases (1e+308).<br>
Plus the output is entirely black. One of my images has 42 slices, the other<br>
one has 43. Maybe that's why?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/3D-registration-with-level-set-motion-tp7590137p7590141.html" rel="noreferrer" target="_blank">http://itk-insight-users.22837<wbr>40.n2.nabble.com/3D-registrati<wbr>on-with-level-set-motion-<wbr>tp7590137p7590141.html</a><br>
<div class="m_-8889429101854956865HOEnZb"><div class="m_-8889429101854956865h5">Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/product<wbr>s/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FA<wbr>Q</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/insight-users</a><br>
______________________________<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_-8889429101854956865gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-size:12.8px;color:rgb(136,136,136)">Samuel Gerber</span><br style="font-size:12.8px;color:rgb(136,136,136)"><span style="font-size:12.8px;color:rgb(136,136,136)">R&D Engineer</span><br style="font-size:12.8px;color:rgb(136,136,136)"><span style="font-size:12.8px;color:rgb(136,136,136)">Kitware, Inc.</span><br></div></div>
</font></span></div>
</div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-size:12.8px;color:rgb(136,136,136)">Samuel Gerber</span><br style="font-size:12.8px;color:rgb(136,136,136)"><span style="font-size:12.8px;color:rgb(136,136,136)">R&D Engineer</span><br style="font-size:12.8px;color:rgb(136,136,136)"><span style="font-size:12.8px;color:rgb(136,136,136)">Kitware, Inc.</span><br></div></div>
</div>