<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>Thank you Luis, as always we can expect a reply from you with solutions.<br><br>Trying to decipher your message, here is what I did but the outcome was not pleasant. After making these changes, I built the solution and ran the exe file to see both the programs crash. <br>**<br>Changed lines 130 to 133 in DeformableRegistration17.cxx<br><br>&nbsp; typedef itk::Image&lt; PixelType, 3 &gt; ImageType;<br>&nbsp; typedef itk::Image&lt; InternalPixelType, 3 &gt; InternalImageType;<br>&nbsp;&nbsp;&nbsp; typedef itk::Vector&lt; float, 3 &gt; VectorPixelType; <br>&nbsp; typedef itk::Image&lt; VectorPixelType, 3 &gt; DeformationFieldType; <br><br>and line 206 into<br>&nbsp; const unsigned int Dimension = 3; <br>**<br><br>Can you help me understand your message below.<br><br>Thank you,<br>Ganesh<br>&nbsp;<br><font style="" color="#1f497d" face="Verdana">************************************************************************</font><font style="" color="#1f497d" face="Verdana"><br></font><font style="" color="#1f497d" face="Verdana">
"What the mind of man can conceive and believe, It can achieve" - </font><font style="" color="#1f497d" face="Verdana"><span class="ecxil">Napolean</span></font><font style="" color="#1f497d" face="Verdana"> </font><font style="" color="#1f497d" face="Verdana"><span class="ecxil">Hill</span></font><font style="" color="#1f497d" face="Verdana"><br></font><font style="" color="#1f497d" face="Verdana">
-Ganesh 
Narayanasamy,Ph.D., PostDoc-University of Kentucky Cancer Center</font><font style="" color="#1f497d" face="Verdana"><br></font><font style="" color="#1f497d" face="Verdana">
Earlier work: 
http://www.sciencedaily.com/releases/2007/05/070504133017.htm</font><font style="" color="#1f497d" face="Verdana"><br></font><font style="" color="#1f497d" face="Verdana">
************************************************************************</font><br><br><br><br>&gt; Date: Sun, 2 May 2010 18:14:09 -0400<br>&gt; Subject: Re: [Insight-users] Convert to 3D: DeformableRegistration17 &amp; 16<br>&gt; From: luis.ibanez@kitware.com<br>&gt; To: nganesh76@hotmail.com<br>&gt; CC: insight-users@itk.org<br>&gt; <br>&gt; Hi Ganesh,<br>&gt; <br>&gt; Here is the patch that you need to apply to<br>&gt; <br>&gt;     DeformableRegistration16.cxx<br>&gt;     DeformableRegistration17.cxx<br>&gt; <br>&gt; in order to use them in 3D images:<br>&gt; <br>&gt; ------------------------------------------------------------------<br>&gt; Index: DeformableRegistration16.cxx<br>&gt; ===================================================================<br>&gt; RCS file: /cvsroot/Insight/Insight/Examples/Registration/DeformableRegistration16.cxx,v<br>&gt; retrieving revision 1.3<br>&gt; diff -p -u -r1.3 DeformableRegistration16.cxx<br>&gt; --- DeformableRegistration16.cxx        21 Nov 2009 21:23:25 -0000        1.3<br>&gt; +++ DeformableRegistration16.cxx        2 May 2010 22:03:24 -0000<br>&gt; @@ -125,10 +125,10 @@ protected:<br>&gt;    // define ITK short-hand types<br>&gt;    typedef short PixelType;<br>&gt;    typedef float InternalPixelType;<br>&gt; -  typedef itk::Image&lt; PixelType, 2 &gt; ImageType;<br>&gt; -  typedef itk::Image&lt; InternalPixelType, 2 &gt; InternalImageType;<br>&gt; -  typedef itk::Vector&lt; float, 2 &gt; VectorPixelType;<br>&gt; -  typedef itk::Image&lt; VectorPixelType, 2 &gt; DeformationFieldType;<br>&gt; +  typedef itk::Image&lt; PixelType, 3 &gt; ImageType;<br>&gt; +  typedef itk::Image&lt; InternalPixelType, 3 &gt; InternalImageType;<br>&gt; +  typedef itk::Vector&lt; float, 3 &gt; VectorPixelType;<br>&gt; +  typedef itk::Image&lt; VectorPixelType, 3 &gt; DeformationFieldType;<br>&gt;    typedef itk::DemonsRegistrationFilter&lt; InternalImageType,<br>&gt;      InternalImageType, DeformationFieldType&gt; RegistrationFilterType;<br>&gt; <br>&gt; @@ -201,7 +201,7 @@ int main( int argc, char * argv [] )<br>&gt;      }<br>&gt; <br>&gt;    // define ITK short-hand types<br>&gt; -  const unsigned int Dimension = 2;<br>&gt; +  const unsigned int Dimension = 3;<br>&gt;    typedef short PixelType;<br>&gt;    typedef float InternalPixelType;<br>&gt;    typedef itk::Image&lt; PixelType, Dimension &gt; ImageType;<br>&gt; Index: DeformableRegistration17.cxx<br>&gt; ===================================================================<br>&gt; RCS file: /cvsroot/Insight/Insight/Examples/Registration/DeformableRegistration17.cxx,v<br>&gt; retrieving revision 1.3<br>&gt; diff -p -u -r1.3 DeformableRegistration17.cxx<br>&gt; --- DeformableRegistration17.cxx        21 Nov 2009 21:23:25 -0000        1.3<br>&gt; +++ DeformableRegistration17.cxx        2 May 2010 22:03:25 -0000<br>&gt; @@ -203,7 +203,7 @@ int main( int argc, char * argv [] )<br>&gt;      }<br>&gt; <br>&gt;    // define ITK short-hand types<br>&gt; -  const unsigned int Dimension = 2;<br>&gt; +  const unsigned int Dimension = 3;<br>&gt;    typedef short PixelType;<br>&gt;    typedef float InternalPixelType;<br>&gt;    typedef itk::Image&lt; PixelType, Dimension &gt; ImageType;<br>&gt; <br>&gt; -----------------------------------------------<br>&gt; <br>&gt; Regarding the examples:<br>&gt; <br>&gt;        *  DeformableRegistration9<br>&gt;        *  DeformableRegistration10<br>&gt; <br>&gt; Please look at the CMakeLists.txt file in<br>&gt; <br>&gt;    Insight/Examples/Registration/<br>&gt; <br>&gt; to line 90-98 you will find:<br>&gt; <br>&gt; IF( USE_FFTWD )<br>&gt;   ADD_EXECUTABLE(DeformableRegistration9 DeformableRegistration9.cxx )<br>&gt;   TARGET_LINK_LIBRARIES(DeformableRegistration9<br>&gt;       ITKIO ITKAlgorithms ITKNumerics)<br>&gt; <br>&gt;   ADD_EXECUTABLE(DeformableRegistration10 DeformableRegistration10.cxx )<br>&gt;   TARGET_LINK_LIBRARIES(DeformableRegistration10<br>&gt;                         ITKIO ITKAlgorithms ITKNumerics)<br>&gt; ENDIF( USE_FFTWD )<br>&gt; <br>&gt; <br>&gt; <br>&gt; That is, these two examples are only build if you are<br>&gt; using the FFTW Library.<br>&gt; <br>&gt; You will have to download and build FFTW, and then<br>&gt; reconfigure ITK with CMake, to turn ON the option<br>&gt; <br>&gt;                   USE_FFTWD<br>&gt; <br>&gt; <br>&gt;      Regards,<br>&gt; <br>&gt; <br>&gt;           Luis<br>&gt; <br>&gt; <br>&gt; -------------------------------------<br>&gt; On Thu, Apr 29, 2010 at 11:00 AM, Ganesh Narayanasamy<br>&gt; &lt;nganesh76@hotmail.com&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; I would like to convert DeformableRegistration 17 &amp; 16 from 2D into 3D. Can<br>&gt; &gt; some one send me the changes along with the location. The ones that I can<br>&gt; &gt; spot are:<br>&gt; &gt;<br>&gt; &gt; In DeformableRegistration17.cxx,<br>&gt; &gt; Change Line 206 from "const unsigned int Dimension = 2;"&nbsp; into 3<br>&gt; &gt;<br>&gt; &gt; In DeformableRegistration16.cxx,<br>&gt; &gt; Change Line 204 from "const unsigned int Dimension = 2;"&nbsp; into 3<br>&gt; &gt;<br>&gt; &gt; ***<br>&gt; &gt; In a related query, I can find DeformableRegistration9 &amp; 10.cxx inside<br>&gt; &gt; C:\ITK316\ITK\Examples\Registration\, however all of the<br>&gt; &gt; DeformableRegistration9 &amp; 10.VC++ project related files are missing from the<br>&gt; &gt; C:\ITK316\Build\Examples\Registration\. Can you help me create these ?<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Thanks,<br>&gt; &gt; Ganesh<br>&gt; &gt;<br><br>                                               <br /><hr />Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2' target='_new'>See how.</a></body>
</html>