The determination of the intrinsic and extrinsic parameters of virtual camera based on OpenGL

OpenGL is the international standard of 3D image. The 3D image generation by OpenGL is similar to the shoot by camera. This paper focuses on the application of OpenGL to computer vision, the OpenGL 3D image is regarded as virtual camera image. Firstly, the imaging mechanism of OpenGL has been analyzed in view of perspective projection transformation of computer vision camera. Then, the relationship between intrinsic and extrinsic parameters of camera and function parameters in OpenGL has been analysed, the transformation formulas have been deduced. Thereout the computer vision simulation has been realized. According to the comparison between the actual CCD camera images and virtual camera images(the parameters of actual camera are the same as virtual camera's) and the experiment results of stereo vision 3D reconstruction simulation, the effectiveness of the method with which the intrinsic and extrinsic parameters of virtual camera based on OpenGL are determined has been verified.