Answer the question
In order to leave comments, you need to log in
What library (function) in Python can stretch the histogram of the brightness of an image?
Which image processing library in python can analyze the brightness histogram of a b/w image and stretch it? In the figure, the brightness spectrum of the image points. It is very dark and low contrast, the background peak is strongly shifted to the left, towards black. In addition, there is a peak of pure white at 255 - there is an irregularly shaped white border around the image.
If we apply the THRESH_BINARY (127, 255) binarization to such a picture, we get just a completely black rectangle.
How to automatically stretch the spectrum to the right?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question