Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

error non-standard syntax; use '&' to create a pointer to membe

    void Blending::Blend(int, void*)
    {
        alpha = (double)defaultvalue / 100;
        addWeighted(img, alpha, img2, 1.0 - alpha, 0, des);
        imshow("Blendimage", des);
    }



       int main()
    {
    Blending ble;

    ble.Blend(defaultvalue, 0);

    createTrackbar("Blend", "Blendimage", &defaultvalue,maximumvalue,ble.Blend);
    waitKey(0);

    return 0;
            }



}

i get the non-standard error when i pass the Blend function to createTrackBar using the object of the class to call the function direct.. any help pls

error non-standard syntax; use '&' to create a pointer to membe

 

void Blending::Blend(int, void*) { alpha = (double)defaultvalue / 100; addWeighted(img, alpha, img2, 1.0 - alpha, 0, des); imshow("Blendimage", des); } }

int main()
 {
Blending ble;
ble.Blend(defaultvalue, 0);
createTrackbar("Blend", "Blendimage", &defaultvalue,maximumvalue,ble.Blend);
&defaultvalue, maximumvalue, ble.Blend);
 waitKey(0);
return 0;
 }
}

i get the non-standard error when i pass the Blend function to createTrackBar using the object of the class to call the function direct.. any help pls

error non-standard syntax; use '&' to create a pointer to membe

void Blending::Blend(int, void*) { alpha = (double)defaultvalue / 100; addWeighted(img, alpha, img2, 1.0 - alpha, 0, des); imshow("Blendimage", des); }

int main()
{
    Blending ble;

    ble.Blend(defaultvalue, 0);

    createTrackbar("Blend", "Blendimage", &defaultvalue, maximumvalue, ble.Blend);
    waitKey(0);

    return 0;
}

i get the non-standard error when i pass the Blend function to createTrackBar using the object of the class to call the function direct.. any help pls

error non-standard syntax; use '&' to create a pointer to membe

void Blending::Blend(int, void*) { alpha = (double)defaultvalue / 100; addWeighted(img, alpha, img2, 1.0 - alpha, 0, des); imshow("Blendimage", des); }

int main()
{
    Blending ble;

    ble.Blend(defaultvalue, 0);

    createTrackbar("Blend", "Blendimage", &defaultvalue, maximumvalue, ble.Blend);
    waitKey(0);

    return 0;
}

i get the non-standard error when i pass the Blend function to createTrackBar using the object of the class to call the function direct.. any help pls

error non-standard syntax; use '&' to create a pointer to membe

void Blending::Blend(int, void*) { alpha = (double)defaultvalue / 100; addWeighted(img, alpha, img2, 1.0 - alpha, 0, des); imshow("Blendimage", des); }

int main()
{
    Blending ble;

    ble.Blend(defaultvalue, 0);

    createTrackbar("Blend", "Blendimage", &defaultvalue, maximumvalue, ble.Blend);
    waitKey(0);

    return 0;
}

i get the non-standard error when i pass the Blend function to createTrackBar using the object of the class to call the function direct.. any help pls

error non-standard syntax; use '&' to create a pointer to membe

void Blending::Blend(int, void*) { alpha = (double)defaultvalue / 100; addWeighted(img, alpha, img2, 1.0 - alpha, 0, des); imshow("Blendimage", des); }

int main()
{
    Blending ble;

    ble.Blend(defaultvalue, 0);

    createTrackbar("Blend", "Blendimage", &defaultvalue, maximumvalue, ble.Blend);
    waitKey(0);

    return 0;
}

i get the non-standard error when i pass the Blend function to createTrackBar using the object of the class to call the function direct.. any help pls

error non-standard syntax; use '&' to create a pointer to membe

//

void Blending::Blend(int, void*)
 {
     alpha = (double)defaultvalue / 100;
     addWeighted(img, alpha, img2, 1.0 - alpha, 0, des);
     imshow("Blendimage", des);
    }

}
int main()
{
    Blending ble;

    ble.Blend(defaultvalue, 0);

    createTrackbar("Blend", "Blendimage", &defaultvalue, maximumvalue, ble.Blend);
    waitKey(0);

    return 0;
}

i get the non-standard error when i pass the Blend function to createTrackBar using the object of the class to call the function direct.. any help pls