[Insight-users] Registration!

Luis Ibanez luis.ibanez at kitware.com
Tue Mar 16 21:17:38 EDT 2010


Hi Fariba,

It looks like you are working on Windows...

That would have been an interesting piece
of information to add to you initial email.        :-)


     Are you familiar with how to use
     the command prompt in Windows ?

or

     Do you happen to use Cygwin in your
     Windows machine ?


In summary  have to do is to open a
command prompt from the Visual Studio
menu that you find in the Windows Start button.

Once you open that command prompt window,
you can "cd" (change directories) until you get
to the directory where you build ITK..

At that point, you need to know the path to the
directory where you installed CMake

(typically C:\Program\ Files\CMake 2.6)

Then you can invoke commands such as

C:\Program\ Files\CMake\ 2.6\bin\ctest -R ImageRegistration1Test -N  -V



It will help you a lot to first familiarize yourself
with the Visual Studio command prompt before
you continue you exploration of ITK.

See, for example the following tutorial
http://www.youtube.com/watch?v=foYsmpDrYjY&feature=related


    Regards,


        Luis


----------------------------------------------------------------------------
On Tue, Mar 16, 2010 at 7:43 PM,  <fariba_yoo at yahoo.co.uk> wrote:
> Hi Luis,
>
> Thanks for your reply, I was completely hopeless...
> I want to give you exactly what I have done:
> first I downloaded Insighttoolkit and Cmake,
> then I made a folder for binary in the name of ITKBinary.
> then I run Cmake and I made
>             BUILD_TESTING       set to  ON
>             BUILD_EXAMPLES      set to  ON
> then I configured and generated(in the sourse I choose Insighttoolkit and
> for binary I choose ITKBinary)
> after configuring and generating I went to run ITKBinary.sln and it opened
> in visual studio,
> then I build  BUILL-ALL. after building all the projects that took 1 hour
> without any error, I wanted to run imageregistration1 there is no error
> first but after running I attached the error file!
> am I doing right up to now?
>
> now you have said that :
> "Then, if you pick one specific example, you can
> run it by calling ctest as:
>
>       ctest -R ImageRegistration1Test -N  -V "
>
> how can I do this?
> because when I run for example imageregistration1.cxx there is cmd window
> that says choose one of the numbers below: there are 0, 1, 2, 3
> when I choose for example 1 it breaks!!
>
> Thanks for all your help, I appreciate your help :)
>
> Best,
> Fariba
>
>
> ________________________________
> From: Luis Ibanez <luis.ibanez at kitware.com>
> To: fariba_yoo at yahoo.co.uk
> Cc: insight <Insight-users at itk.org>
> Sent: Wed, 17 March, 2010 1:24:54
> Subject: Re: [Insight-users] Registration!
>
> Hi Fariba
>
>
>                       Welcome to ITK !
>
>
> One easy way to find the parameters for running the
> Registration examples, is to configure ITK with the
> CMake variables:
>
>           BUILD_TESTING      set to  ON
>           BUILD_EXAMPLES  set to  ON
>
> then rebuild the toolkit.
>
>
> Once you have rebuild the toolkit,
> You can go to the binary directory, go down to the
> directory  Examples/Registration and invoke "ctest".
>
> Something like:
>
>           cd InsightBin
>           cd Examples/Registration
>           ctest -R ImageRegistration -N
>
> will give you a list of 76 tests (that are build using
> the source code of the examples).
>
> Then, if you pick one specific example, you can
> run it by calling ctest as:
>
>       ctest -R ImageRegistration1Test -N  -V
>
>
> The options are
>
> -R regular expression (select a list of tests
>     whose names match the regular expression)
>
> -N : not run the tests, just list them
>
> -V : verbose: shows the parameters of the tests.
>
> So, for the command above, you will see something
> like:
>
> RegistrationExamples.exe
> --compare
> D:/src/Insight/Testing/Data/Baseline/Registration/ImageRegistration1TestPixelCentered.png
> D:/bin/InsightVS9Release/Testing/Temporary/ImageRegistration1TestPixelCentered.png
> ImageRegistration1Test
> D:/src/Insight/Examples/Data/BrainProtonDensitySliceBorder20.png
> D:/src/Insight/Examples/Data/BrainProtonDensitySliceShifted13x17y.png
> D:/bin/InsightVS9Release/Testing/Temporary/ImageRegistration1TestPixelCentered.png
> D:/bin/InsightVS9Release/Testing/Temporary/ImageRegistration1DifferenceAfterTestPixelCentered.png
> D:/bin/InsightVS9Release/Testing/Temporary/ImageRegistration1DifferenceBeforeTestPixelCentered.png
>
>
> Of course, the directories in our build will be different
> from the ones that I'm showing here from my build.
>
> This will give you an idea of what command line inputs
> are expected by every example.
>
> Once you become familiar with the expected input
> parameters, then you could venture to run the
> examples with your own data as input, and to
> modify the examples for your own purposes.
>
>
>
>       Regards,
>
>
>             Luis
>
>
> --------------------------------------------------
> On Wed, Mar 10, 2010 at 5:46 PM,  <fariba_yoo at yahoo.co.uk> wrote:
>> Hello,
>>
>> I am new in ITK and I just installed the program and run the first
>> example(Hello World!),
>> Now I need to begin with registration and test some pictures from the
>> examples, but in the registration chapter I couldn't find how to run
>> registration examples...
>> I am waiting for your suggestions guys!
>>
>> Best,
>> Fariba
>>
>>
>> _____________________________________
>> 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