[Insight-users] ImageRegistration9.exe - 2DAffine
Luis Ibanez
luis.ibanez at kitware.com
Wed Mar 17 19:20:05 EDT 2010
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
>
>
More information about the Insight-users
mailing list