imread is not getting identified in visual studio whereas cvloadimage is getting identified in the following code
(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;
}