I know this question was asked before. But I need a real answer, a real explanation!
When running (ctrl+F5) the code shown underneath, in Visual Studio 2012 Express, in Release mode, everything works. When running it in Debug mode, I get:
The program cant't start becaue MSVCP100.dll is missin from your computer...
I already installed the Redistributable Package 2010 and 2012.
What is going on??? Please a detailed Explanation, that I can understand :) Thanks a lot!!!
#include "stdafx.h"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main( int argc, char** argv )
{
Mat image = imread("Bild.jpg");
namedWindow("Mein Bild");
imshow("Mein Bild", image);
waitKey(5000);
//The member variable data is in fact a pointer to the allocated memory block that will contain
//the image data. It is simply set to 0 when no image has been read.
if(!image.data)
{
cout<<"No image has been createt"<<endl;
}
cout<<"height = " << image.size().height <<" width = "<< image.size().width<<endl;
//page 27
return 1;
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…