Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Computer Vision with OpenCV 3 and Qt5

You're reading from  Computer Vision with OpenCV 3 and Qt5

Product type Book
Published in Jan 2018
Publisher Packt
ISBN-13 9781788472395
Pages 486 pages
Edition 1st Edition
Languages
Author (1):
Amin Ahmadi Tazehkandi Amin Ahmadi Tazehkandi
Profile icon Amin Ahmadi Tazehkandi

Table of Contents (19) Chapters

Title Page
Dedication
Packt Upsell
Foreword
Contributors
Preface
Introduction to OpenCV and Qt Creating Our First Qt and OpenCV Project Creating a Comprehensive Qt+OpenCV Project Mat and QImage The Graphics View Framework Image Processing in OpenCV Features and Descriptors Multithreading Video Analysis Debugging and Testing Linking and Deployment Qt Quick Applications Other Books You May Enjoy

High-level multithreading using QtConcurrent


Apart from what you learned in the section, the Qt also provides a high-level API for creating multithreaded programs without the need to deal with thread synchronization tools, such as mutexes, locks, and so on. The QtConcurrent namespace, or the Qt Concurrent module in Qt framework, provides easy-to-use functions that can be used to create multithreaded applications, or, in other words, concurrency, by processing through lists of data using the optimal number of threads for any platform. This will become crystal clear after we go through the functions in QtConcurrent and classes that are used in conjunction with it. After that, we will also deal with real-life examples to learn about the power of the Qt Concurrent module and how to utilize it.

The following functions in general (and their slightly different variants) can be used to deal with multithreading using the high-level QtConcurrent API:

  • filter: This can be used to filter a list. This...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}