Search icon CANCEL
Subscription
0
Cart icon
Cart
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
Arrow up icon
GO TO TOP
Hands-On GPU-Accelerated Computer Vision with OpenCV and CUDA

You're reading from  Hands-On GPU-Accelerated Computer Vision with OpenCV and CUDA

Product type Book
Published in Sep 2018
Publisher Packt
ISBN-13 9781789348293
Pages 380 pages
Edition 1st Edition
Languages
Author (1):
Bhaumik Vaidya Bhaumik Vaidya
Profile icon Bhaumik Vaidya
Toc

Table of Contents (15) Chapters close

Preface 1. Introducing CUDA and Getting Started with CUDA 2. Parallel Programming using CUDA C 3. Threads, Synchronization, and Memory 4. Advanced Concepts in CUDA 5. Getting Started with OpenCV with CUDA Support 6. Basic Computer Vision Operations Using OpenCV and CUDA 7. Object Detection and Tracking Using OpenCV and CUDA 8. Introduction to the Jetson TX1 Development Board and Installing OpenCV on Jetson TX1 9. Deploying Computer Vision Applications on Jetson TX1 10. Getting Started with PyCUDA 11. Working with PyCUDA 12. Basic Computer Vision Applications Using PyCUDA 13. Assessments 14. Other Books You May Enjoy

Histogram calculation and equalization in OpenCV

A histogram is a very important property of an image as it provides a global description of the appearance of that image. An enormous amount of information can be obtained from the histogram. It represents the relative frequency of occurrence of gray levels in an image. It is basically a plot of gray levels on the X-axis and the number of pixels in each gray level on the Y-axis. If the histogram is concentrated on the left side then the image will be very dark and if it is concentrated on the right side, then the image will be very bright. It should be evenly distributed for good visual quality of an image.

The following image demonstrates histograms for dark, bright, and normal images:

OpenCV provides a function to calculate the histogram of an Image. The syntax of the function is as follows:

void cv::cuda::calcHist ( InputArray...
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 €14.99/month. Cancel anytime}