How to solve the problem on C2056 undeclared identifier
I having problem with this
void colortrackbar() {
namedWindow("Color", CV_WINDOW_AUTOSIZE);
cvCreateTrackbar("Blue", "Color", 0, 1, bluecolor_callback);
cvCreateTrackbar("Green", "Color", 0, 1);
cvCreateTrackbar("Red", "Color", 0, 1);
}
void bluecolor_callback(int position) {
if (position == 0) {
int H_MIN = 0;
int H_MAX = 255;
int S_MIN = 0;
int S_MAX = 255;
int V_MIN = 0;
int V_MAX = 255;
}
else {
int H_MIN = 0;
int H_MAX = 255;
int S_MIN = 110;
int S_MAX = 255;
int V_MIN = 148;
int V_MAX = 255;
}
and having error
C2065 "bluecolor_callback" : undeclared identifier
and I don't know how to solve the problem. Please help me, thank you.