i searched stackoverflow and fixed the cannot find or open pdb files. Everybody keeps saying that these are just warnings. but the code doesnt run I tried everything i could find. I ran VS as administrator but it says
'hmd.exe': Loaded 'C:\WINDOWS\SysWOW64\ntdll.dll', Symbols loaded (source information stripped). 'hmd.exe': Loaded 'C:\WINDOWS\SysWOW64\kernel32.dll', Symbols loaded (source information stripped). 'hmd.exe': Loaded 'C:\WINDOWS\SysWOW64\KernelBase.dll', Symbols loaded (source information stripped).
The program '[6156] hmd.exe: Native' has exited with code -1073741701 (0xc000007b).
I know that symbols are loaded and i know that this question is asked several times but i didnt find any answers. i searched alot but these are the only errors that arise. and message window says exited with code (0xc000007b)
this is the code:
#include<iostream>
#include<opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main()
{
//open and read the image
Mat img = imread("C:\\Users\\Hammad\\Desktop\\as.jpg", CV_LOAD_IMAGE_COLOR);
if (img.empty())
{
cout << "Image cannot be loaded..!!" << endl;
return -1;
}
//change the color image to grayscale image
cvtColor(img, img, CV_BGR2GRAY);
//equalize the histogram
Mat img_hist_equalized;
equalizeHist(img, img_hist_equalized);
//create windows
namedWindow("Original Image", CV_WINDOW_AUTOSIZE);
namedWindow("Histogram Equalized", CV_WINDOW_AUTOSIZE);
//show the image
imshow("Original Image", img);
imshow("Histogram Equalized",img_hist_equalized);
waitKey(0); //wait for key press
destroyAllWindows(); //destroy all open windows
return 0;
}