How can I adjust contrast in OpenCV in C?
问题 I'm just trying to adjust contrast/ brightness in an image in gray scale to highlight whites in that image with Opencv in C. How can I do that? is there any function that makes this task in opencv? Original image: Modified image: Thanks in advance! 回答1: I think you can adjust contrast here in two ways: 1) Histogram Equalization : But when i tried this with your image, result was not as you expected. Check it below: 2) Thresholding : Here, i compared each pixel value of input with an arbitrary