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

Oleksandr Dzyubak adzyubak at gmail.com
Thu Jul 24 09:18:35 EDT 2008


Hi Luis,

I see the point. It helps, thanks.

Alex


Luis Ibanez wrote:
>
>
> Hi Alex,
>
> If the filter implements the method
>
>             ThreadedGenerateData()
>
> instead of the method
>
>               GenerateData()
>
> then, the filter supports multi-threading.
>
>
> Note however, that some filters derive from multi-threaded filters
> and implement variations on them. For example all the filters
> deriving from the UnaryFunctorImageFilter support multi-threading,
> and simply use the ThreadedGenerateData() method from the base class.
>
>
>
>     Regards,
>
>
>         Luis
>
>
> -----------------------
> Oleksandr Dzyubak wrote:
>> Hi Luis,
>>
>> My platforms are Linux(Debian) and UNIX(FreeBSD).
>> I just checked. You are right, on my platforms it is ON by default
>> and pthreads package gets installed by default also.
>>
>> What's a hint using which I could figure out, before even running, 
>> whether or not
>> a filter supports multi threading?
>>
>> Alex
>>
>> Luis Ibanez wrote:
>>
>>>
>>> Hi Alex,
>>>
>>> CMAKE_USE_PTHREADS will be ON are used by default in Linux.
>>>
>>> What is your platform ?
>>>
>>> Please let us know,
>>>
>>> ---
>>>
>>> As Gaetan pointed out, you don't need to modify anything in
>>> ITK in order to take advantage of the filters that provide
>>> multi-threading.
>>>
>>>
>>>    Regards,
>>>
>>>
>>>       Luis
>>>
>>>
>>> ----------------------
>>> Gaëtan Lehmann wrote:
>>>
>>>>>
>>>>> 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.
>>>>
>>
>>



More information about the Insight-users mailing list