<br>Hi Stephen<br><br>Start by replacing:<br><div><br></div><div>
typedef itk::Image< float, 2 > InternalImageType;</div>
<div> typedef itk::Vector< float, 2 > VectorPixelType;</div><div> typedef itk::Image< VectorPixelType, 2 > DeformationFieldType;<br><br> const unsigned int Dimension = 2;<br><br><br>with:<br><br><div>
<br></div><div>
typedef itk::Image< float, 3 > InternalImageType;</div>
<div> typedef itk::Vector< float, 3 > VectorPixelType;</div><div> typedef itk::Image< VectorPixelType, 3 > DeformationFieldType;</div><br></div> const unsigned int Dimension = 3;<br><br><br>This should do the trick.<br>
<br>Please let us know if you run into any problems.<br><br><br> Thanks<br><br><br> Luis<br><br><br>--------------------------------------------------------------------<br><div class="gmail_quote">On Sun, Oct 24, 2010 at 11:42 PM, Stephen Yip <span dir="ltr"><<a href="mailto:stephen.fyip1@gmail.com">stephen.fyip1@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi, <div><br></div><div>I successfully ran DeformableRegistration 3 (symmetric demon force). However, these codes only registration 2D images. Building upon the 2D example, how can I promote the code to account for 3D registration? </div>
<div><br></div><div>Below is the C code that I copy directly from the example. Thanks Stephen.</div><div><br></div><div><div><br><br></div></div></blockquote></div><br>