[Insight-users] Re sampleImageFilter and multithreading.

Luis Ibanez luis.ibanez at kitware.com
Sat Oct 17 22:11:39 EDT 2009


Hi Pete79,


Are you sharing the same Affine Transform among all the ResampleFilters ?


      Luis


----------------------------------------------------------------
On Sat, Oct 17, 2009 at 8:51 PM, Pete79 <pkoniusz at hotmail.com> wrote:
>
>
>
> Pete79 wrote:
>>
>> Also, if I replace _beginthread and call a thread subroutine n-times
>> consecutively, all works perfectly fine. Basically, it looks like there is
>> something going on in resample filter that I don't fully get while running
>> it from a batch of separate threads managed by myself.
>>
>
> Further, I've tried to chuck the all code inside thread subroutine into
> critical sections to force execution of all filters consecutively (like it
> happens without multithreading). Alas, it also resulted in the same random
> behaviour. I cannot think of any reason. Any ideas how to debug it further?
> Could it be that affine transform often requests data from outside the area
> of an original image? I guess there is no reason why this wouldn't be
> handled though while launched from a separate thread as opposed to the
> parent process ...
> --
> View this message in context: http://www.nabble.com/ResampleImageFilter-and-multithreading.-tp25942385p25943113.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.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