[Insight-users] Registration!

Luis Ibanez luis.ibanez at kitware.com
Tue Mar 16 19:24:54 EDT 2010


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