Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
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
1. Introduction to OpenCV and Qt 2. Creating Our First Qt and OpenCV Project 3. Creating a Comprehensive Qt+OpenCV Project 4. Mat and QImage 5. The Graphics View Framework 6. Image Processing in OpenCV 7. Features and Descriptors 8. Multithreading 9. Video Analysis 10. Debugging and Testing 11. Linking and Deployment 12. Qt Quick Applications 1. Other Books You May Enjoy

Understanding back-projection images


Apart from the visual information in a histogram, there is a more important use for it. This is called back-projection of a histogram, which can be used to modify an image using its histogram, or as we'll see later on in this chapter, to locate objects of interest inside an image. Let's break it down further. As we learned in the previous section, a histogram is the distribution of pixel data over the image, so if we somehow modify the resulting histogram and then re-apply it to the source image (as if it was a lookup table for pixel values), the resulting image would be considered the back-projection image. It is important to note that a back-projection image is always a single-channel image in which the value of each pixel is fetched from its corresponding bin in the histogram.

Let's see this as another example. First of all, here is how a back-projection is calculated in OpenCV:

    calcBackProject(&image, 
      1, 
      channels, 
      histogram...
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}