<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>Let me ask for help with adding new .cxx files into an existing project/solution with the drawback of making me look like a dummy;)<br><br>I have added these lines to the relevant sections inside C:\ITK316\ITK\Examples\Registration\CMakeLists.txt. I opened ITK.sln in MS-VC++ .NET to do a "Build Solution". <br>However, i still could not find C:\ITK316\Buil\bin\DebugImageRegistration20.exe<br>Please let me know what is the missing link here.<br><br>Thanks,<br>Ganesh<br><pre>ADD_EXECUTABLE(ImageRegistration20 ImageRegistration20.cxx )<br>TARGET_LINK_LIBRARIES(ImageRegistration20 ITKStatistics ITKIO ITKNumerics)<br><br>ADD_TEST(ImageRegistration20Test<br> ${CXX_TEST_PATH}/ImageRegistration20<br> ${ITK_BRAINWEB_DATA_ROOT}/brainweb1e1a10f20.mha<br> ${ITK_BRAINWEB_DATA_ROOT}/brainweb1e1a10f20Rot10Tx15.mha<br> ${TEMP}/ImageRegistration20Output.mhd<br> ${TEMP}/ImageRegistration20DifferenceBefore.mhd<br> ${TEMP}/ImageRegistration20DifferenceAfter.mhd<br> 0.1 # Step length<br> 300 # maximum number of iterations<br>)<br><br></pre><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: Wed, 17 Mar 2010 19:20:05 -0400<br>> Subject: Re: [Insight-users] ImageRegistration9.exe - 2DAffine<br>> From: luis.ibanez@kitware.com<br>> To: nganesh76@hotmail.com<br>> CC: insight-users@itk.org<br>> <br>> Hi Ganesh,<br>> <br>> <br>> You must also modify the CMakeLists.txt file in that directory.<br>> <br>> <br>> You should apply this patch to that file:<br>> <br>> <br>> Index: CMakeLists.txt<br>> ===================================================================<br>> RCS file: /cvsroot/Insight/Insight/Examples/Registration/CMakeLists.txt,v<br>> retrieving revision 1.194<br>> retrieving revision 1.195<br>> diff -r1.194 -r1.195<br>> 77a78,80<br>> > ADD_EXECUTABLE(ImageRegistration20 ImageRegistration20.cxx )<br>> > TARGET_LINK_LIBRARIES(ImageRegistration20 ITKStatistics ITKIO ITKNumerics)<br>> ><br>> 553a557,566<br>> > ADD_TEST(ImageRegistration20Test<br>> > ${CXX_TEST_PATH}/ImageRegistration20<br>> > ${ITK_BRAINWEB_DATA_ROOT}/brainweb1e1a10f20.mha<br>> > ${ITK_BRAINWEB_DATA_ROOT}/brainweb1e1a10f20Rot10Tx15.mha<br>> > ${TEMP}/ImageRegistration20Output.mhd<br>> > ${TEMP}/ImageRegistration20DifferenceBefore.mhd<br>> > ${TEMP}/ImageRegistration20DifferenceAfter.mhd<br>> > 0.1 # Step length<br>> > 300 # maximum number of iterations<br>> > )<br>> 830d842<br>> <<br>> <br>> <br>> <br>> <br>> Or simply build the example outside of ITK as it is<br>> explained in the Tutorial:<br>> <br>> http://www.itk.org/CourseWare/Training/GettingStarted-I.pdf<br>> http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/index.htm<br>> <br>> <br>> <br>> -------------<br>> <br>> <br>> You bring a very good point about the need for an index<br>> listing the main features of the registration examples.<br>> <br>> I have therefore just started a page in the InsightClopedia:<br>> <br>> http://www.itk.org/Wiki/ITK/InsightClopedia/Registration/Index_of_Source_Code_Examples<br>> <br>> It is still work in progress,<br>> but very easy to do:<br>> <br>> <br>> We welcome volunteers to help us fill up this table !!!<br>> <br>> <br>> It comes down to opening each file an looking at<br>> <br>> * Metric<br>> * Optimizer<br>> * Transform<br>> * Interpolator<br>> * Image dimension.<br>> <br>> <br>> If anyone want to help please let me know.<br>> <br>> <br>> Luis<br>> <br>> <br>> --------------------------------------------------------------------------------------------<br>> On Wed, Mar 17, 2010 at 4:20 PM, Ganesh Narayanasamy<br>> <nganesh76@hotmail.com> wrote:<br>> ><br>> > Thank you Luis.<br>> > When I copied the ImageRegistration20.cxx into the same folder with other<br>> > example code and re-started ITK.sln using MS VC++.NET in my PC. it does not<br>> > recognize ImageRegistration20.cxx. Do I have to say "Build Solution"?<br>> > Could you also guide me how to add programs into an existing project, build<br>> > and create a .exe file ?<br>> ><br>> > Every time, I want to do deformable registration using a certain method, I<br>> > am not sure whether that had been already dealt with in the example code. I<br>> > wonder if there is a list of the various example codes and their functions.<br>> > To start with...<br>> > ImageRegistration6 - Affine Registration in 2D<br>> > ImageRegistration8,9 - Affine Registration in 2D<br>> > ImageRegistration20 - Affine Registration in 3D<br>> ><br>> > DeformableRegistration4,6,7,8 -Bspline Registration<br>> ><br>> > Thanks again,<br>> > Ganesh<br>> ><br>> > ************************************************************************<br>> > "What the mind of man can conceive and believe, It can achieve" - Napolean<br>> > Hill<br>> > -Ganesh Narayanasamy,Ph.D., PostDoc-University of Kentucky Cancer Center<br>> > Earlier work: http://www.sciencedaily.com/releases/2007/05/070504133017.htm<br>> > ************************************************************************<br>> ><br>> >><br>> >> Message: 5<br>> >> Date: Tue, 16 Mar 2010 16:07:01 -0400<br>> >> From: Luis Ibanez <luis.ibanez@kitware.com><br>> >> Subject: Re: [Insight-users] ImageRegistration9.exe - 2DAffine<br>> >> To: Ganesh Narayanasamy <nganesh76@hotmail.com><br>> >> Cc: insight-users@itk.org<br>> >> Message-ID:<br>> >> <f7abd23c1003161307k7a810525nc55c4ee3e079c1d@mail.gmail.com><br>> >> Content-Type: text/plain; charset="windows-1252"<br>> >><br>> >> Hi Ganesh,<br>> >><br>> >> You captured most of the important changes.<br>> >><br>> >> However, for completeness we have just added to<br>> >> ITK and example for performing 3D Affine registration.<br>> >><br>> >><br>> >> You will find it under<br>> >><br>> >> Insight/Examples/Registration/<br>> >> ImageRegistration20.cxx<br>> >><br>> >><br>> >> (and for your convenience the file is also attached<br>> >> to this email).<br>> >><br>> >><br>> >> You will run it as:<br>> >><br>> >> ImageRegistration20 fixedimage movingimage<br>> >> resampledimage comparisonimagebefore<br>> >> comparisonimageafter initialstep iterations<br>> >><br>> >><br>> >> This should now run in the Nightly Dashboard<br>> >> as the test:<br>> >><br>> >> ImageRegistration20Test<br>> >><br>> >><br>> >> Please take a look at the code, give it a try,<br>> >> and let us know if you have any questions,<br>> >><br>> >><br>> >> Thanks<br>> >><br>> >><br>> >><br>> >> Luis<br>> >><br>> ><br>> ><br>> > ________________________________<br>> > Hotmail: Trusted email with powerful SPAM protection. Sign up now.<br>> > _____________________________________<br>> > Powered by www.kitware.com<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Kitware offers ITK Training Courses, for more information visit:<br>> > http://www.kitware.com/products/protraining.html<br>> ><br>> > Please keep messages on-topic and check the ITK FAQ at:<br>> > http://www.itk.org/Wiki/ITK_FAQ<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.itk.org/mailman/listinfo/insight-users<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=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_2' target='_new'>Sign up now.</a></body>
</html>