Ask Your Question
0

what is error in this question

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

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 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

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

GANESH PRASAATH L gravatar image

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

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

2 followers

Stats

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

Seen: 62 times

Last updated: Mar 01 '16