How to get the Projection ProjectionMatrixFromCameraIntrinsics
2017-06-16 16:16
495 查看
ProjectionMatrixForCameraIntrinsics(float width, float height, float fx, float fy,float cx, float cy, float near, float far) { const float xscale = near / fx; const float yscale = near / fy; const float xoffset = (cx - (width / 2.0)) * xscale; const float yoffset = -(cy - (height / 2.0)) * yscale; return glm::frustum(xscale * -width / 2.0f - xoffset, xscale * width / 2.0f - xoffset, yscale * -height / 2.0f - yoffset, yscale * height / 2.0f - yoffset, near, far); }
相关文章推荐
- How to Get the Best Image Quality from Your IP Camera
- How to get the Values of Selected Row from a Gridview using ASP.NET
- How to get the DOM of a WebBrowser control from a window handle (VB6)
- how to get the return value from a thread in python?
- Java How to get the PID from a process?
- How to get parameters from the URL?
- USBView & How to get the Serial Number from a USB disk & qextserialport
- HOWTO get multiple value from the same name checkbox elements or radiobution elements
- How to get a notification from Linux when the set of network interfaces changes
- How to get the data from a cell when I click on the GridButtonColumn of the same row
- How can i specify the resource to get from R.res.drawable dynamically?
- How to Get Help With a Command from the Linux Terminal
- string - How to get the filename without the extension from a path in Python? - Stack Overflow
- How to get the "connection string" from web.config file
- How to capture video frames from the camera as images using AV Foundation on iOS
- how to get the default maximum heap size for Sun's JVM from Java SE 6 or 7
- To get the View matrix from the rotation,translation,scale
- How to capture video frames from the camera as images using AV Foundation
- How to convert from the color camera space to the depth camera space in Kinect For Windows
- How to get the text from any standard object