Hi-<br><br>I first wanted to validate a few things regarding Image to physical coordinate transformations in ITK.&nbsp; All transformations are assumed to be 3-D rotation then translation.&nbsp; Here's my approach:<br><br>We have two scans each with different MRI scanning orientations:&nbsp; sagittal &amp; coronal.&nbsp; This means that in image/pixel space,denoted as 'If' &amp; 'Im' for image fixed &amp; Image moving, they are not closely registered.&nbsp; In fact, unit vectors are permuted &amp; polarity is reversed in the z axis ( right handed to left handed coordinate system change).&nbsp; <br><br>However they have their own anatomical space (denoted as Af &amp; Am for anatomical fixed and anatomical moving) where the two volumes are almost registered.&nbsp;&nbsp; This means the transformation between Am to Af is close to the identity.&nbsp; Note anatomical space is not physical space and I have the transformations:&nbsp; If &lt;-&gt; Af,&nbsp; Im&lt;-&gt;Am.&nbsp;
 <br><br>I assume the transformation between image space and ITK physical space (denoted as Pf &amp; Pm) is represented by a diagonal matrix whose diagonal entries are the anatomical pixel sizes.&nbsp; This means image/Pixel directions are the same as physical directions for each volume.&nbsp; Both translations are set to the zero vector.&nbsp; <br><br>In summary, the 6 Spaces are:<br>fixed&nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp; moving<br>-----------------------------<br>Af&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Am&nbsp;&nbsp;  &nbsp; |  &nbsp;&nbsp;&nbsp;  Anatomical<br>If&nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp; Im&nbsp;&nbsp;  &nbsp;&nbsp;  |&nbsp;&nbsp;&nbsp;&nbsp; Image/Pixel<br>Pf&nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;  &nbsp; Pm&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; ITK Physical<br><br>And we have the exact
 transformations:<br>Af&nbsp;&nbsp; &lt;-&gt; If&nbsp;&nbsp; &lt;-&gt; Pf<br>Am &lt;-&gt; Im &lt;-&gt; Pm<br><br><br>I want to give ITK the best initial estimate possible between physical spaces as a starting point to ITK registration: Pm-&gt;Pf.&nbsp; Since we know in anatomical space the images are initially closely registered, we want to use that information (Am-&gt;Af=Identity) &amp; the exact transformations as the way to compute that transformation by composing:<br>Pm-&gt;Im-&gt;Am-&gt;Af-&gt;If-&gt;Pf.<br><br>In our case we compute &amp; set Pm-&gt;Pf = <br>[0 0 -1; <br>&nbsp;0 1 0; <br>-1 0 0] <br>with Translation offset=<br>[298;34 223];<br><br>Though ITK reports:<br><br>itk::ExceptionObject (00F290C8) Location: "unknown" File: C:\InsightToolkit-2.6.0\Code\Algorithms\itkMutualInformationImageToImageMetric.txx<br>Line: 193 Description: itk::ERROR: MutualInformationImageToImageMetric(01262BA0): All the sampled point  mapped to outside of the moving image<br><br>I
 looked at where image/Pixel space boundaries map to in physical space for each and indeed, there is overlap.&nbsp; I'm wondering if new problems are created if there is a polarity change in the physical moving to physical fixed tranformation that the programmer should know about?&nbsp; Is there anything to possibly debug that you may know about?&nbsp; Thanks for your help.<br><br>Rick<p>
                <hr size=1>Ring'em or ping'em. Make <a href="http://us.rd.yahoo.com/mail_us/taglines/postman11/*http://us.rd.yahoo.com/evt=39666/*http://voice.yahoo.com"> PC-to-phone calls as low as 1¢/min</a> with Yahoo! Messenger with Voice.