KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've installed Code::Blocks with MinGW and OpenCV 2.4.3. I want to compile this simple program: #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace cv; using namespace std; int main() { Mat im = imread("c:/path/to/lena.jpg"); if (im.empty()) { cout << "Cannot open image!" << endl; return 1; } imshow("Image", im); waitKey(0); } How to properly setup CodeBlocks for compiling the code above? I have installed OpenCV in c:\opencv .
Tags (comma-separated)
Save Edits
Cancel