<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>I converted the ImageRegistration4.cxx on MattesMutualInformation technique from 2D into 3D by changing line #123 from 2 to 3:<br>const&nbsp;&nbsp;&nbsp; unsigned int&nbsp;&nbsp;&nbsp; Dimension = 3;<br><br>Is that all that needs to be done?<br>When I did Build Solution and ran the executable with 2 input images and a name for an output image, I got this error message:<br><br><br>****<br>C:\Ganesh\ITK316\Build\bin\Debug&gt;ImageRegistration4&nbsp; P1T1Img1.mha P1T2<br>Img2.mha Final_P1T1fT2m.mha<br><br>ExceptionObject caught !<br><br>itk::ExceptionObject (0146FB48)<br>Location: "void __thiscall itk::MattesMutualInformationImageToImageMetric&lt;class<br>itk::Image&lt;unsigned short,3&gt;,class itk::Image&lt;unsigned short,3&gt; &gt;::GetValueAndDe<br>rivative(const class itk::Array&lt;double&gt; &amp;,double &amp;,class itk::Array&lt;double&gt; &amp;) c<br>onst"<br>File: c:\ganesh\itk316\itk\code\algorithms\itkMattesMutualInformationImageToImag<br>eMetric.txx<br>Line: 1113<br>Description: itk::ERROR: MattesMutualInformationImageToImageMetric(019441E0): To<br>o many samples map outside moving image buffer: 0 / 10000<br>****<br><br><br>Can you identify the error and let me know any corrective step?<br>Thanks for your help,<br>
Ganesh<br>                                               <br /><hr />The New Busy is not the old busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3' target='_new'>Get started.</a></body>
</html>