Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to solve the problem on C2056 undeclared identifier

image description

Hi, I have a problem withimage description

and I don't know how to solve the problem. Please help me, thank you.

click to hide/show revision 2
None

updated 2019-01-12 04:03:16 -0600

berak gravatar image

How to solve the problem on C2056 undeclared identifier

image description

Hi, I have a problem withimage description

and I don't know how to solve the problem. Please help me, thank you.

How to solve the problem on C2056 undeclared identifier

I having problem with this

image description

image description

and I don't know how to solve the problem. Please help me, thank you.

How to solve the problem on C2056 undeclared identifier

I having problem with this

image description

image descriptionvoid 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.

click to hide/show revision 5
None

updated 2019-01-12 04:16:16 -0600

berak gravatar image

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

identifier

and I don't know how to solve the problem. Please help me, thank you.