Calculate the histogram of a grayscale image using 64 bins.
Add 50 to every pixel on a grayscale image (the result will look lighter) and calculate the histogram.
Calculate the red channel histogram of a BGR image without a mask.
What functions do OpenCV, NumPy, and Matplotlib provide for calculating histograms?
Modify the grayscale_histogram.py script to compute the brightness of these three images (gray_image, added_image, and subtracted_image). Rename the script to grayscale_histogram_brightness.py.
Modify the comparing_hist_equalization_clahe.py script to show the execution time of both cv2.equalizeHist() and CLAHE. Rename it to comparing_hist_equalization_clahe_time.py.
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.