Questions

  1. What is an image histogram?
  2. Calculate the histogram of a grayscale image using 64 bins.
  3. Add 50 to every pixel on a grayscale image (the result will look lighter) and calculate the histogram.
  4. Calculate the red channel histogram of a BGR image without a mask.
  5. What functions do OpenCV, NumPy, and Matplotlib provide for calculating histograms?
  6. 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.
  7. 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.