Ask Your Question

Revision history [back]

imread is not getting identified in visual studio whereas cvloadimage is getting identified in the following code

#include<opencv cv.h="">

include<opencv highgui.h="">

using namespace cv;

int main() { Mat img = cvLoadImage("C:\opencv2_4_13\sources\samples\data\fruits.jpg"); Mat img1; cvtColor(img, img1, COLOR_BGR2GRAY); imshow("ex", img1); cvWaitKey(0); return 0; }

click to hide/show revision 2
None

updated 2018-06-25 01:55:13 -0600

berak gravatar image

imread is not getting identified in visual studio whereas cvloadimage is getting identified in the following code

#include<opencv cv.h="">(code:)

include<opencv highgui.h="">

#include<opencv/cv.h>
#include<opencv/highgui.h>
  

using namespace cv;

cv;

int main() { Mat img = cvLoadImage("C:\opencv2_4_13\sources\samples\data\fruits.jpg"); cvLoadImage("C:\\opencv2_4_13\\sources\\samples\\data\\fruits.jpg"); Mat img1; cvtColor(img, img1, COLOR_BGR2GRAY); imshow("ex", img1); cvWaitKey(0); return 0; }

}