Histogram Equalization, Opencv Python, Histogram Manipulation, Image Enhancement, Opencv.
the image: plt.imshow(img, cmap='gray') <matplotlib.image.AxesImage at 0x1d0b415e100> In gray tones now we have how to work the histogram… img.max() 255 img.min() 0 img.shape (2354, 2560) Flatting it out: flat = img.flatten() # 1 row 2354 x 2560 = 6.026.240 flat.shape (6026240,) show the histogram