Ask Your Question
0

what is error in this question

asked 2016-03-01 09:28:35 -0600

supriya123 gravatar image

include “stdafx.h”

include “opencv2\highgui\highgui.hpp”

include “iostream”

using namespace cv; using namespace std; int main(){

Mat im = imread("C:\\Users\\supriya123\\Desktop\\cake.jpg");
if (im.empty()){

    cout<< "Cannot load image!";
    return -1;

}

imshow("Image", im);
waitKey(0);

}

edit retag flag offensive close merge delete

Comments

what is error in this question ?

berak gravatar imageberak ( 2016-03-01 10:36:13 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2016-03-01 10:13:23 -0600

GANESH PRASAATH L gravatar image

I executed this code. No error was shown.It really works.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-03-01 09:28:35 -0600

Seen: 254 times

Last updated: Mar 01 '16