Image Processing, Image Contrasting, Histogram Equalization, Post Processing, Numpy.
Credits — The above code is an inspiration from the article written by Tory Walker. The above function returns an equalized image matrix when passed the original image matrix as an argument. Let’s write another function that computes the equalization for both the RGB image and the gray_scale image