M
M
makondo2021-05-18 00:52:17
Python
makondo, 2021-05-18 00:52:17

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?
60a2e4d50d5f5994750177.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question