Hello. Yesterday I finally install opencv and my first example works fine. Here's my code .
int main()
{
IplImage * img = cvLoadImage("obrazek.jpg");
cvNamedWindow("Przetworzone");
cvNamedWindow("Nie przetworzone");
cvShowImage("Przetworzone",img);
IplImage * img_wyj = cvCreateImage(cvGetSize(img),IPL_DEPTH_8U,3);
cvSmooth(img,img_wyj,CV_GAUSSIAN,11,11);
cvShowImage("Nie przetworzone",img_wyj);
cvWaitKey(0);
cvReleaseImage(&img);
cvReleaseImage(&img_wyj);
cvDestroyWindow("Przetworzone");
cvDestroyWindow("Nie przetworzone");
return 0;
}
path_to_the_open_cv/main.cpp:29: error:'CV_GAUSSIAN' was not declared in this scope path_to_the_open_cv/main.cpp:29: error:'cvSmooth' was not declared in this scope In other example I got error like this. path_to_the_open_cv/main.cpp:14: error:'Cv_Window_Autosize' was not declared in this scope when I want to do this(window called "Kamera" already exist).
cvNamedWindow("Kamera",Cv_Window_Autosize);
Im using QT Creator and im including opencv2/core/core.hpp, opencv2/highgui/highgui.hpp, opencv2/highgui/highgui_c.h.