<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:10pt"><div><br></div><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma">----- Forwarded Message ----<br><b><span style="font-weight: bold;">From:</span></b> "fariba_yoo@yahoo.co.uk" <fariba_yoo@yahoo.co.uk><br><b><span style="font-weight: bold;">To:</span></b> insight <Insight-users@itk.org><br><b><span style="font-weight: bold;">Sent:</span></b> Sun, 28 March, 2010 2:43:10<br><b><span style="font-weight: bold;">Subject:</span></b> Insight-users] Registration!<br></font><br><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 10pt;"><br><div style="font-family: Courier
New,courier,monaco,monospace,sans-serif; font-size: 10pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 10pt;"><div>Hi Luis,<br><br>Thanks for your helps. But it seems I really need extra help. <br>Because I could just run Hello world example!<br>I can't run any other examples!<br>I am not a programmer nor expert in windows or dos...<br>I studied the guides that you sended the links to me but there, I couldn't find any help in running examples with visual studio command prompt.<br>I need a really step by step guide for running examples.<br>I should tell you that I have InsightToolkit-3.16.0 and cmake 2.8 and I have installed
cmake and then I build a binary folder and then I Configured and generated...<br>also buil_Examples and Buil_testing values are on.<br>then in Visual studio builded ALL_BUILD.<br>I have done these and there is a weeks I want to run ITK's examples but there is no clear
help...<br>I appreciate your help.<br><br>Regards,<br>Fariba<br><br><br></div><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Luis Ibanez <luis.ibanez@kitware.com><br><b><span style="font-weight: bold;">To:</span></b> fariba_yoo@yahoo.co.uk<br><b><span style="font-weight: bold;">Cc:</span></b> itk <Insight-users@itk.org><br><b><span style="font-weight: bold;">Sent:</span></b> Sat, 27 March, 2010 23:10:40<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Insight-users] Registration!<br></font><br>Hi Fariba,<br><br>You must fist "cd" into the directory where<br>you built ITK. (not into the CMake directory).<br><br><br>Once you are in the directory where you<br>built ITK, you can then call:<br><br>C:\Program\
Files\CMake\ 2.6\bin\ctest -R ImageRegistration1Test -N -V<br><br>-----<br><br>The problem in your current approach is that you<br>are going to the CMake directory, instead of going<br>to the ITK binary directory.<br><br><br><br> Regards<br><br><br> Luis<br><br><br>-------------------------------------------------------------------<br>On Sat, Mar 27, 2010 at 5:05 PM, <<a rel="nofollow" ymailto="mailto:fariba_yoo@yahoo.co.uk" target="_blank" href="mailto:fariba_yoo@yahoo.co.uk">fariba_yoo@yahoo.co.uk</a>> wrote:<br>> Hello luis,<br>><br>><br>> I did these and the result is in the attachment, please tell me what is<br>> wrong?<br>><br>> Regards,<br>> Fariba<br>><br>> ________________________________<br>> From: Luis Ibanez <<a rel="nofollow" ymailto="mailto:luis.ibanez@kitware.com" target="_blank"
href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>><br>> To: <a rel="nofollow" ymailto="mailto:fariba_yoo@yahoo.co.uk" target="_blank" href="mailto:fariba_yoo@yahoo.co.uk">fariba_yoo@yahoo.co.uk</a><br>> Cc: itk <<a rel="nofollow" ymailto="mailto:Insight-users@itk.org" target="_blank" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>><br>> Sent: Wed, 17 March, 2010 3:17:38<br>> Subject: Re: [Insight-users] Registration!<br>><br>> Hi Fariba,<br>><br>> It looks like you are working on Windows...<br>><br>> That would have been an interesting piece<br>> of information to add to you initial email. :-)<br>><br>><br>> Are you familiar with how to use<br>> the command prompt in Windows ?<br>><br>> or<br>><br>> Do you happen to use Cygwin in your<br>> Windows machine
?<br>><br>><br>> In summary have to do is to open a<br>> command prompt from the Visual Studio<br>> menu that you find in the Windows Start
button.<br>><br>> Once you open that command prompt window,<br>> you can "cd" (change directories) until you get<br>> to the directory where you build ITK..<br>><br>> At that point, you need to know the path to the<br>> directory where you installed CMake<br>><br>> (typically C:\Program\ Files\CMake 2.6)<br>><br>> Then you can invoke commands such as<br>><br>> C:\Program\ Files\CMake\ 2.6\bin\ctest -R ImageRegistration1Test -N -V<br>><br>><br>><br>> It will help you a lot to first familiarize yourself<br>> with the Visual Studio command prompt before<br>> you continue you exploration of ITK.<br>><br>> See, for example the following tutorial<br>> <a rel="nofollow" target="_blank" href="http://www.youtube.com/watch?v=foYsmpDrYjY&feature=related">http://www.youtube.com/watch?v=foYsmpDrYjY&feature=related</a><br>><br>><br>> Regards,<br>><br>><br>>
Luis<br>><br>><br>> ----------------------------------------------------------------------------<br>> On Tue, Mar 16, 2010 at 7:43 PM, <<a rel="nofollow" ymailto="mailto:fariba_yoo@yahoo.co.uk" target="_blank" href="mailto:fariba_yoo@yahoo.co.uk">fariba_yoo@yahoo.co.uk</a>> wrote:<br>>> Hi Luis,<br>>><br>>> Thanks for your reply, I was completely hopeless...<br>>> I want to give you exactly what I have done:<br>>> first I downloaded Insighttoolkit and Cmake,<br>>> then I made a folder for binary in the name of ITKBinary.<br>>> then I run Cmake and I made<br>>> BUILD_TESTING set to ON<br>>> BUILD_EXAMPLES set to ON<br>>> then I configured and generated(in the sourse I choose Insighttoolkit
and<br>>> for binary I choose
ITKBinary)<br>>> after configuring and generating I went to run ITKBinary.sln and it opened<br>>> in visual studio,<br>>> then I build BUILL-ALL. after building all the projects that took 1 hour<br>>> without any error, I wanted to run imageregistration1 there is no error<br>>> first but after running I attached the error file!<br>>> am I doing right up to now?<br>>><br>>> now you have said that :<br>>> "Then, if you pick one specific example, you can<br>>> run it by calling ctest as:<br>>><br>>> ctest -R ImageRegistration1Test -N -V "<br>>><br>>> how can I do this?<br>>> because when I run for example imageregistration1.cxx there is cmd window<br>>> that says choose one of the numbers below: there are 0, 1, 2, 3<br>>> when I choose for example 1 it breaks!!<br>>><br>>> Thanks for all your help, I appreciate
your help :)<br>>><br>>> Best,<br>>> Fariba<br>>><br>>><br>>> ________________________________<br>>> From: Luis Ibanez <<a rel="nofollow" ymailto="mailto:luis.ibanez@kitware.com" target="_blank" href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>><br>>> To: <a rel="nofollow" ymailto="mailto:fariba_yoo@yahoo.co.uk" target="_blank" href="mailto:fariba_yoo@yahoo.co.uk">fariba_yoo@yahoo.co.uk</a><br>>> Cc: insight <<a rel="nofollow" ymailto="mailto:Insight-users@itk.org" target="_blank" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>><br>>> Sent: Wed, 17 March, 2010 1:24:54<br>>> Subject: Re: [Insight-users] Registration!<br>>><br>>> Hi Fariba<br>>><br>>><br>>> Welcome to ITK !<br>>><br>>><br>>> One easy way to find the parameters
for running the<br>>> Registration examples, is to configure ITK with the<br>>>
CMake variables:<br>>><br>>> BUILD_TESTING set to ON<br>>> BUILD_EXAMPLES set to ON<br>>><br>>> then rebuild the toolkit.<br>>><br>>><br>>> Once you have rebuild the toolkit,<br>>> You can go to the binary directory, go down to the<br>>> directory Examples/Registration and invoke "ctest".<br>>><br>>> Something like:<br>>><br>>> cd InsightBin<br>>> cd Examples/Registration<br>>> ctest -R ImageRegistration -N<br>>><br>>> will give you a list of 76 tests (that are build using<br>>> the source code of the examples).<br>>><br>>> Then, if you pick one specific example, you can<br>>> run it by calling ctest
as:<br>>><br>>> ctest -R ImageRegistration1Test -N -V<br>>><br>>><br>>> The options are<br>>><br>>> -R regular expression (select a list of tests<br>>> whose names match the regular expression)<br>>><br>>> -N : not run the tests, just list them<br>>><br>>> -V : verbose: shows the parameters of the tests.<br>>><br>>> So, for the command above, you will see something<br>>> like:<br>>><br>>> RegistrationExamples.exe<br>>> --compare<br>>><br>>> D:/src/Insight/Testing/Data/Baseline/Registration/ImageRegistration1TestPixelCentered.png<br>>><br>>> D:/bin/InsightVS9Release/Testing/Temporary/ImageRegistration1TestPixelCentered.png<br>>> ImageRegistration1Test<br>>> D:/src/Insight/Examples/Data/BrainProtonDensitySliceBorder20.png<br>>>
D:/src/Insight/Examples/Data/BrainProtonDensitySliceShifted13x17y.png<br>>><br>>> D:/bin/InsightVS9Release/Testing/Temporary/ImageRegistration1TestPixelCentered.png<br>>><br>>> D:/bin/InsightVS9Release/Testing/Temporary/ImageRegistration1DifferenceAfterTestPixelCentered.png<br>>><br>>> D:/bin/InsightVS9Release/Testing/Temporary/ImageRegistration1DifferenceBeforeTestPixelCentered.png<br>>><br>>><br>>> Of course, the directories in our build will be different<br>>> from the ones that I'm showing here from my build.<br>>><br>>> This will give you an idea of what command line inputs<br>>> are expected by every example.<br>>><br>>> Once you become familiar with the expected input<br>>> parameters, then you could venture to run the<br>>> examples with your own data as input, and to<br>>> modify the examples for your own
purposes.<br>>><br>>><br>>><br>>> Regards,<br>>><br>>><br>>> Luis<br>>><br>>><br>>> --------------------------------------------------<br>>> On Wed, Mar 10, 2010 at 5:46 PM, <<a rel="nofollow" ymailto="mailto:fariba_yoo@yahoo.co.uk" target="_blank" href="mailto:fariba_yoo@yahoo.co.uk">fariba_yoo@yahoo.co.uk</a>> wrote:<br>>>> Hello,<br>>>><br>>>> I am new in ITK and I just installed the program and run the first<br>>>> example(Hello World!),<br>>>> Now I need to begin with registration and test some pictures from the<br>>>> examples, but in the registration chapter I couldn't find how to run<br>>>> registration examples...<br>>>> I am waiting for your suggestions guys!<br>>>><br>>>> Best,<br>>>>
Fariba<br>>>><br>>>><br>>>> _____________________________________<br><span>>>> Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a></span><br>>>><br>>>> Visit other Kitware open-source projects at<br>>>> <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>>>><br>>>> Kitware offers ITK Training Courses, for more information visit:<br>>>> <a rel="nofollow" target="_blank" href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a><br>>>><br>>>> Please keep messages on-topic and check the ITK FAQ at:<br>>>> <a rel="nofollow" target="_blank" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>>>><br>>>> Follow this
link to subscribe/unsubscribe:<br>>>> <a rel="nofollow" target="_blank" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>>>><br>>>><br>>><br>>><br>><br>><br></div></div>
</div><br>
</div></div>
</div><br>
</div></div>
</div><br>
</body></html>