1.導覽
今天的單字:
TexCoord:貼圖座標
2.實作1(狗幹多)
3.實作2
附錄1:今天的程式1
#include <opencv/highgui.h>
int main()
{
IplImage * img=cvLoadImage("Earth.jpg");
cvShowImage("opencv Windos", img);
cvWaitKey(0);
}
附錄2:今天的程式2
#include <GL/glut.h>
#include <opencv/highgui.h>
void display()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glPushMatrix();
glutSolidTeapot(0.3);
glPopMatrix();
glutSwapBuffers();
}
int main(int argc,char ** argv)
{
IplImage * img=cvLoadImage("Earth.jpg");
cvShowImage("opencv Windos", img);
cvWaitKey(0);
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH);
glutCreateWindow("week8");
glutDisplayFunc(display);
glutMainLoop();
}
沒有留言:
張貼留言