[Note: We assume you have already installed OpenCV 3.4.3 or above along with opencv_contrib for your platform. If not then please go to below url to install it ...
01.02.2021 · If we try to pass in a multi-channel image, OpenCV will throw an error. To perform histogram equalization on a multi-channel image, you would need to (1) split the image into its respective channels, (2) equalize each channel, and (3) merge the channels back together. The final step is to show our output images:
What is Histogram Equalization? · It is a method that improves the contrast in an image, in order to stretch out the intensity range (see also the corresponding ...
Show activity on this post. I need to do a histogram equalization for a colored image. First I convert the colored image to gray and give it to the equalizeHist function: image = cv2.imread ("photo.jpg") image = cv2.cvtColor (image, cv2.COLOR_BGR2GRAY) cv2.equalizeHist (image) cv2.imshow ("equalizeHist", image) cv2.waitKey (0)