added c++ code to test opencv installation

This commit is contained in:
2020-02-19 13:12:59 +01:00
parent c7f03d8a5d
commit 55dc76a057
3 changed files with 33 additions and 0 deletions
+16
View File
@@ -48,3 +48,19 @@ related work/bib/bibliography.bib.bak
related work/java_gpu/Compiling and Optimizing Java 8 Programs for GPU Execution.pdf
related work/java_gpu/JCudaMP OpenMPJava on CUDA.pdf
related work/java_gpu/Rootbeer Seamlessly using GPUs from Java.pdf
*.pdb
*.ipdb
*.iobj
*.exe
*.ilk
*.tlog
*.obj
*.idb
*.user
*.filters
*.vcxproj
*.ipch
*.opendb
*.db
*.suo
*.sln
+17
View File
@@ -0,0 +1,17 @@
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace std;
using namespace cv;
int main() {
cout << "Hello world" << endl;
Mat image = imread("car.jpg");
namedWindow("window");
imshow("window", image);
waitKey(0);
return 0;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB