2016年4月11日 星期一

week 08 Jim_c OpenGL

MidTearm exam
Copy paste Image
>>download and install (CV2.1)**smaller size folder
>>must click path for all user or current *IMPORTANT*
>>open codeblocks (glut project) (freeglut*direct)
>>
#include <opencv/highgui.h>
int main()


{
    IplImage *img=cvLoadImage("C:\\Users\\Public\\Pictures\\Sample Pictures\\tulips.jpg");
    cvNamedWindow("opencv");
    cvShowImage("opencv",img);
    cvWaitKey(0);

}
















>>Build options
>>search direction>>compiler add(C\OpenCV2.1\iclude)
>>search direction>>linker add(C\OpenCV2.1\lib)
>>linker settings>>link libraries>>add(cv210,cxcore210,highgui210)

if get any error (solution) save the file and reopen


沒有留言:

張貼留言