added c++ code to test opencv installation
This commit is contained in:
+16
@@ -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
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user