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