Skip to Content
Computer Vision with OpenCV 3 and Qt5
book

Computer Vision with OpenCV 3 and Qt5

by Amin Ahmadi Tazehkandi
January 2018
Intermediate to advanced content levelIntermediate to advanced
486 pages
11h 28m
English
Packt Publishing
Content preview from Computer Vision with OpenCV 3 and Qt5

Histogram equalization

The histogram of an image can be used to adjust the brightness and contrast of an image. OpenCV offers a function called equalizeHist that internally calculates the histogram of a given image, normalizes the histogram, calculates the integral of the histogram (sum of all bins), and then uses the updated histogram as a lookup table to update the input image's pixels, which leads to a normalized brightness and contrast in the input image. Here's how this function is used:

    equalizeHist(image, equalizedImg); 

If you try this function on images that have an out-of-place brightness level, or contract, then they will be automatically adjusted to a visually better level in terms of brightness and contrast. This process is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering OpenCV 4 - Third Edition

Mastering OpenCV 4 - Third Edition

Roy Shilkrot, David Millán Escrivá
Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

Benjamin Planche, Eliot Andres
OpenCV 4 with Python Blueprints - Second Edition

OpenCV 4 with Python Blueprints - Second Edition

Dr. Menua Gevorgyan, Michael Beyeler (USD), Arsen Mamikonyan, Michael Beyeler

Publisher Resources

ISBN: 9781788472395Supplemental Content