[Insight-users] ImageRegistration9.exe - 2DAffine

Luis Ibanez luis.ibanez at kitware.com
Thu Mar 18 10:54:37 EDT 2010


Hi Hing-tong,

I can certainly include hyperlinks to the examples...

but...

if you have the ITK source code you already have
these examples in your directory:

                 Insight/Examples/Registration


I'll put a couple of hyperlink examples in the Wiki page,
just to provide a  pattern for potential volunteers to
improve the page.


     Luis


--------------------------------------------------------------------------------------------------------
On Wed, Mar 17, 2010 at 9:48 PM, Hing-tong LEUNG <leunght at ha.org.hk> wrote:
> Dear Luis,
>
> http://www.itk.org/Wiki/ITK/InsightClopedia/Registration/Index_of_Source_Cod
> e_Examples is very good.  Can you include a hyperlink to each example so
> that it allows people to download the source code directly?
>
> Best regards,
> Lucullus
>
> -----Original Message-----
> From: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org]
> On Behalf Of Luis Ibanez
> Sent: Thursday, March 18, 2010 7:20 AM
> To: Ganesh Narayanasamy
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] ImageRegistration9.exe - 2DAffine
>
> 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_Cod
> e_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
>>
>>
> _____________________________________
> 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
>
>
>
> ***************************************************************************
> Disclaimer
>
> This Email may contain privileged and confidential information and is solely for the use of the intended recipient. If you are not the intended recipient, you must not print, copy, distribute or take any action in reliance on it. If you have received this Email by mistake, please notify the sender and then delete this Email from your computer. The Hospital Authority does not accept liability arising from Email transmitted by mistake.
>
> Although this Email and any attachments are believed to be free of virus or other defects that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free, and no responsibility is accepted by the Hospital Authority for any loss or damage in any way arising from its use.
>
> All views or opinions expressed in this Email and its attachments are those of the sender and do not necessarily reflect the views and opinions of the Hospital Authority.
> ***************************************************************************
>


More information about the Insight-users mailing list