Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I've had a few thread glitches while using OpenCV.

The library itself is thread safe in that you can have multiple calls into the library at the same time, however the data is not always thread safe.

This means that if you have to pass a mat image between threads you have to use a mutex and call .CopyTo() to force a copy instead of a reference.

Note: Std::Vector is also not thread safe under all conditions as well.