I am trying to adjust the gain in a simple camera function
void imgGet(){
cv::VideoCapture cap(0);
double k=0.99;
cv::VideoCapture::set(CV_CAP_PROP_GAIN, k ); //value from 0 to 1
Mat frame;
cap >> frame;
string fileName = getFName();
imwrite(fileName, frame);
}
Ive tried a variety of things, but the error I get is:
capture.cpp:34:47: error: cannot call member function ‘virtual bool cv::VideoCapture::set(int, double)’ without object
I don't know what that means, how am I supposed to set the VideoCapture::set object? I have seen the videocapture documentation
but I didnt understand it in a useful way.