Hi everyone. I have an 8UC1 image and I want to change its brightness and contrast. I have gui for it and there is 2 sliders in gui:
cv::Mat img = ... ;
cv::Mat imgB = img + cv::Scalar(value * 255/100.0); //I am currently changing brightness like this but not sure if its correct way.
Here value is in 0-99 range according to slider’s position. Which functions should i use for these operations?
I didn’t ask to you anywhere to write my program. I just asked for what should i do for changing these two things. And you are pointing wrong link. Right doc : OpenCV: Changing the contrast and brightness of an image!
I did this and still have a question but this website looks kinda dead and you seem like you don’t know more than me so i am passing my questions.