[Insight-users] ITK image
Alexandre GOUAILLARD
Alexandre_Gouaillard at hms.harvard.edu
Wed Jun 25 17:46:41 EDT 2008
Oh, ok.
Well, a test is not an example, you are not supposed to use it as an
executable and to change the input and output.
But, hey, life is not always what you want, right?
So, here is what you can do:
You can call ctest with -V or -VV option to see what the command looks like
(beware: lot of output)
In my case I get this:
Test command:
/Users/alex/Devel/CVSROOT/Insight/BUILD/bin/itkBasicFiltersTests2
itkShrinkImageTest
And if you're lucky, the test will allow you to provide an input image.
Unfortunatly here, it's not the case, meaning that you will have to recode
an example out of the test.
You might also want to look at the multresolution pyramid code that do
several shrinking in a row.
Alex.
On 6/25/08 5:27 PM, "shoosh moosh" <babygirl_25 at hotmail.com> wrote:
>
> I did that and got:
>
> shoosh at ear:~/Insight-binary$ ctest -R itkShrinkImageTest
> Start processing tests
> Test project /raid/home/shoosh/Insight-binary
> 561/1243 Testing itkShrinkImageTest Passed
>
> 100% tests passed, 0 tests failed out of 1
>
> I still need to use itkShrinkImageTest to shrink an actual image. How can I
> downsample an image using this?
>
>
> ----------------------------------------
>> Date: Wed, 25 Jun 2008 17:08:39 -0400
>> Subject: Re: [Insight-users] ITK image
>> From: Alexandre_Gouaillard at hms.harvard.edu
>> To: babygirl_25 at hotmail.com
>>
>> Well,
>>
>> Did you build ITK from source?
>>
>> Supposely, you create a BUILD directory, then you ccmake from it and that's
>> where you should see the BUILD_TESTING variable
>>
>>
>> Cd Insight
>> Makedir BUILD
>> Cd BUILD
>> Ccmake ..
>>
>> Then, still in the BUILD directory, you can call ctest
>> Ctest -R itkShrink
>>
>> Alex.
>>
>>
>> On 6/25/08 4:35 PM, "shoosh moosh" wrote:
>>
>>>
>>> I can't find the "BUILD_TESTING" cmake variable. I just changed my directory
>>> to: /Insight/Testing/Code/BasicFilters/itkShrinkImageTest.cxx and they typed
>>> ccmake .
>>> I got this error:
>>> CMake Error: Error in cmake code at
>>> /raid/home/shoosh/Insight/Testing/Code/BasicFilters/CMakeLists.txt:235:
>>> IF had incorrect arguments: ${CMAKE_SIZEOF_LONG} EQUAL 4 (Unknown arguments
>>> specified).
>>> Current CMake stack:
>>> [1]/raid/home/shoosh/Insight/Testing/Code/BasicFilters/CMakeLists.txt
>>>
>>>
>>>
>>> ----------------------------------------
>>>> Date: Wed, 25 Jun 2008 16:10:41 -0400
>>>> Subject: Re: [Insight-users] ITK image
>>>> From: Alexandre_Gouaillard at hms.harvard.edu
>>>> To: babygirl_25 at hotmail.com
>>>>
>>>> Hi baby girl,
>>>>
>>>> The test are usually run using the ctest command.
>>>> You need to build ITK with the "BUILD_TESTING" cmake variable ON.
>>>> You can then just run "ctest" in your build directory to run all the tests
>>>>
>>>> For this specific test, you can run
>>>> Ctest -R itkShrinkImageTest
>>>>
>>>> If you add the -VV option ( "ctest -VV -R itkShrinkImageTest" ), you can
>>>> see
>>>> all the outputs of the test, as well as the command line corresponding to
>>>> this test.
>>>>
>>>> Alex.
>>>>
>>>>
>>>>
>>>> On 6/25/08 4:00 PM, "shoosh moosh" wrote:
>>>>
>>>>>
>>>>> Does someone have the executable file for
>>>>> /Insight/Testing/Code/BasicFilters/itkShrinkImageTest.cxx?
>>>>>
>>>>>
>>>>>
>>>>> _________________________________________________________________
>>>>> News, entertainment and everything you care about at Live.com. Get it now!
>>>>> http://www.live.com/getstarted.aspx
>>>>> _______________________________________________
>>>>> Insight-users mailing list
>>>>> Insight-users at itk.org
>>>>> http://www.itk.org/mailman/listinfo/insight-users
>>>>
>>>>
>>>
>>> _________________________________________________________________
>>> Invite your mail contacts to join your friends list with Windows Live
>>> Spaces.
>>> It's easy!
>>> http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&
>>> mk
>>> t=en-us
>>
>>
>
> _________________________________________________________________
> Connect to the next generation of MSN Messenger?
> http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlm
> ailtagline
More information about the Insight-users
mailing list