[Insight-users] Mutexes

Luis Ibanez luis.ibanez at kitware.com
Sun May 24 15:23:34 EDT 2009


Hi Brady,


Applying Mutual Exclusion on a per-pixel basis does not seem to
be a good idea. It most likely be very expensive in computation
time.

You may want to profile the time of Mutex and the FastMutex in
your platform, in order to make an informed decision...


What is your motivation for using a mutual exclusion lock on
every pixel ?


You may find in ITK better methods to solve your image processing
problem.


    Please let us know,



        Thanks


             Luis



-------------------
Brady McCary wrote:
> insight-users,
> 
> How expensive is it to create mutexes? For example, I have an image
> processing problem where it would be nice to be able to lock on a
> per-pixel basis, perhaps something like:
> 
> typename itk::Image< MutexType, ImageDimension > MutexImageType;
> 
> ITK's threading mechanism is actually a wrapper around several (at
> least three) different threading libraries which exist on different
> platforms, so the answer to my question probably depends on my
> platform. I am running a recent linux on x86. However, for posterity
> it would be nice if someone could answer this question for most of the
> common platforms.
> 
> Thanks,
> 
> Brady
> _____________________________________
> 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