<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> typedef itk::Image< PixelType, 3 > ImageType;<br> typedef itk::Image< InternalPixelType, 3 > InternalImageType;<br> typedef itk::Vector< float, 3 > VectorPixelType; <br> typedef itk::Image< VectorPixelType, 3 > DeformationFieldType; <br><br>and line 206 into<br> const unsigned int Dimension = 3; <br>**<br><br>Can you help me understand your message below.<br><br>Thank you,<br>Ganesh<br> <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>> Date: Sun, 2 May 2010 18:14:09 -0400<br>> Subject: Re: [Insight-users] Convert to 3D: DeformableRegistration17 & 16<br>> From: luis.ibanez@kitware.com<br>> To: nganesh76@hotmail.com<br>> CC: insight-users@itk.org<br>> <br>> Hi Ganesh,<br>> <br>> Here is the patch that you need to apply to<br>> <br>> DeformableRegistration16.cxx<br>> DeformableRegistration17.cxx<br>> <br>> in order to use them in 3D images:<br>> <br>> ------------------------------------------------------------------<br>> Index: DeformableRegistration16.cxx<br>> ===================================================================<br>> RCS file: /cvsroot/Insight/Insight/Examples/Registration/DeformableRegistration16.cxx,v<br>> retrieving revision 1.3<br>> diff -p -u -r1.3 DeformableRegistration16.cxx<br>> --- DeformableRegistration16.cxx        21 Nov 2009 21:23:25 -0000        1.3<br>> +++ DeformableRegistration16.cxx        2 May 2010 22:03:24 -0000<br>> @@ -125,10 +125,10 @@ protected:<br>> // define ITK short-hand types<br>> typedef short PixelType;<br>> typedef float InternalPixelType;<br>> - typedef itk::Image< PixelType, 2 > ImageType;<br>> - typedef itk::Image< InternalPixelType, 2 > InternalImageType;<br>> - typedef itk::Vector< float, 2 > VectorPixelType;<br>> - typedef itk::Image< VectorPixelType, 2 > DeformationFieldType;<br>> + typedef itk::Image< PixelType, 3 > ImageType;<br>> + typedef itk::Image< InternalPixelType, 3 > InternalImageType;<br>> + typedef itk::Vector< float, 3 > VectorPixelType;<br>> + typedef itk::Image< VectorPixelType, 3 > DeformationFieldType;<br>> typedef itk::DemonsRegistrationFilter< InternalImageType,<br>> InternalImageType, DeformationFieldType> RegistrationFilterType;<br>> <br>> @@ -201,7 +201,7 @@ int main( int argc, char * argv [] )<br>> }<br>> <br>> // define ITK short-hand types<br>> - const unsigned int Dimension = 2;<br>> + const unsigned int Dimension = 3;<br>> typedef short PixelType;<br>> typedef float InternalPixelType;<br>> typedef itk::Image< PixelType, Dimension > ImageType;<br>> Index: DeformableRegistration17.cxx<br>> ===================================================================<br>> RCS file: /cvsroot/Insight/Insight/Examples/Registration/DeformableRegistration17.cxx,v<br>> retrieving revision 1.3<br>> diff -p -u -r1.3 DeformableRegistration17.cxx<br>> --- DeformableRegistration17.cxx        21 Nov 2009 21:23:25 -0000        1.3<br>> +++ DeformableRegistration17.cxx        2 May 2010 22:03:25 -0000<br>> @@ -203,7 +203,7 @@ int main( int argc, char * argv [] )<br>> }<br>> <br>> // define ITK short-hand types<br>> - const unsigned int Dimension = 2;<br>> + const unsigned int Dimension = 3;<br>> typedef short PixelType;<br>> typedef float InternalPixelType;<br>> typedef itk::Image< PixelType, Dimension > ImageType;<br>> <br>> -----------------------------------------------<br>> <br>> Regarding the examples:<br>> <br>> * DeformableRegistration9<br>> * DeformableRegistration10<br>> <br>> Please look at the CMakeLists.txt file in<br>> <br>> Insight/Examples/Registration/<br>> <br>> to line 90-98 you will find:<br>> <br>> IF( USE_FFTWD )<br>> ADD_EXECUTABLE(DeformableRegistration9 DeformableRegistration9.cxx )<br>> TARGET_LINK_LIBRARIES(DeformableRegistration9<br>> ITKIO ITKAlgorithms ITKNumerics)<br>> <br>> ADD_EXECUTABLE(DeformableRegistration10 DeformableRegistration10.cxx )<br>> TARGET_LINK_LIBRARIES(DeformableRegistration10<br>> ITKIO ITKAlgorithms ITKNumerics)<br>> ENDIF( USE_FFTWD )<br>> <br>> <br>> <br>> That is, these two examples are only build if you are<br>> using the FFTW Library.<br>> <br>> You will have to download and build FFTW, and then<br>> reconfigure ITK with CMake, to turn ON the option<br>> <br>> USE_FFTWD<br>> <br>> <br>> Regards,<br>> <br>> <br>> Luis<br>> <br>> <br>> -------------------------------------<br>> On Thu, Apr 29, 2010 at 11:00 AM, Ganesh Narayanasamy<br>> <nganesh76@hotmail.com> wrote:<br>> ><br>> ><br>> > I would like to convert DeformableRegistration 17 & 16 from 2D into 3D. Can<br>> > some one send me the changes along with the location. The ones that I can<br>> > spot are:<br>> ><br>> > In DeformableRegistration17.cxx,<br>> > Change Line 206 from "const unsigned int Dimension = 2;" into 3<br>> ><br>> > In DeformableRegistration16.cxx,<br>> > Change Line 204 from "const unsigned int Dimension = 2;" into 3<br>> ><br>> > ***<br>> > In a related query, I can find DeformableRegistration9 & 10.cxx inside<br>> > C:\ITK316\ITK\Examples\Registration\, however all of the<br>> > DeformableRegistration9 & 10.VC++ project related files are missing from the<br>> > C:\ITK316\Build\Examples\Registration\. Can you help me create these ?<br>> ><br>> ><br>> > Thanks,<br>> > Ganesh<br>> ><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>