[Insight-users] Multi-threaded Image Registration Examples?

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Wed Jul 23 11:25:25 EDT 2008


Le 23 juil. 08 à 16:09, Oleksandr Dzyubak a écrit :

> Hi Gaëtan,
>
> Speaking of parallel computing... Correct me if I misunderstood you.
> Lets say I want to distribute my image processing over 4 CPUs on a  
> single station.
> Is that correct to think that ITK does it without my intrusion?

right

>
> I presume the CMAKE_USE_PTHREADS parameter is ON by default, right?

I don't know, and I don't know if it has an effect on ITK itself.

>
>
> No parameters in the CMake file should be turned ON/OFF?

no — it works with the default values

>
> Is there any support for MPI or OpenCV?

Not at this time.

Regards,

Gaëtan


>
>
> Thanks,
>
> Alex
>
> Gaëtan Lehmann wrote:
>>
>> Le 23 juil. 08 à 15:31, Oleksandr Dzyubak a écrit :
>>
>>> Hi Luis,
>>>
>>> I finally got money to upgrade my Linux box and soon I'll build
>>> a 4 CPU station with 16 GB memory.
>>>
>>> Quick question.
>>> For my work I mostly use smoothing/denoising, segmentation, and  
>>> morphology filters.
>>> And now I want to benefit from my new 4 CPU station.
>>> How can I activate the multi CPU (multi threading) support when  
>>> using ITK?
>>
>> Just do nothing — ITK do it by default for you :-)
>> Some morphological filter are not multithreaded though  
>> (reconstruction filters for example).
>>
>> Regards,
>>
>> Gaëtan
>>
>>>
>>>
>>> Thanks,
>>> Alex
>>>
>>> Luis Ibanez wrote:
>>>>
>>>> Hi Mishali,
>>>>
>>>> In order to use Multi-threading registration in ITK
>>>> you simply should do the following:
>>>>
>>>>
>>>>  0) Get the release of ITK 3.6,
>>>>     or a more recent CVS version.
>>>>
>>>>  1) In the CMake configuration,
>>>>     enable the variables
>>>>
>>>>           ITK_USE_REVIEW
>>>>           ITK_USE_OPTIMIZED_REGISTRATION_METHODS
>>>>
>>>>  2) build ITK
>>>>
>>>>  3) build your application.
>>>>
>>>>
>>>> At this point, if you use MattesMutualInformation or
>>>> the MeanSquares metric, they will run in multiple
>>>> threads.
>>>>
>>>> There is no need to change anything in the code of the examples.
>>>> All the examples in Insight/Examples/Registration (that use the
>>>> two metrics above) can be used with and without multi-threading.
>>>>
>>>>
>>>> Please give it a try and let us know if you encounter
>>>> any problems.
>>>>
>>>>
>>>>
>>>>   Thanks
>>>>
>>>>
>>>>      Luis
>>>>
>>>>
>>>> ------------------
>>>> Mishali Naik wrote:
>>>>> Hi all,
>>>>>        I am wondering if anyone can point me to multi-threaded  
>>>>> image registration examples? I looked for multi-threaded image  
>>>>> registration examples in the Insight package, but didn't find  
>>>>> any - so I am wondering if multi-threaded examples are  
>>>>> available? thanks a lot!!
>>>>> - Mishali
>>>>>
>>>>> _______________________________________________
>>>>> Insight-users mailing list
>>>>> Insight-users at itk.org
>>>>> http://www.itk.org/mailman/listinfo/insight-users
>>>>>
>>>> _______________________________________________
>>>> Insight-users mailing list
>>>> Insight-users at itk.org
>>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>>> _______________________________________________
>>> Insight-users mailing list
>>> Insight-users at itk.org
>>> http://www.itk.org/mailman/listinfo/insight-users
>>
>> --Gaëtan Lehmann
>> Biologie du Développement et de la Reproduction
>> INRA de Jouy-en-Josas (France)
>> tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
>> http://voxel.jouy.inra.fr  http://www.mandriva.org
>> http://www.itk.org  http://www.clavier-dvorak.org
>>
>

-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.mandriva.org
http://www.itk.org  http://www.clavier-dvorak.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080723/65fe5c56/attachment.pgp>


More information about the Insight-users mailing list