Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有一台提供 360 度平移 (x) 和倾斜 (y) 值的相机,并且我想获取我的光标在相机视图中的平移和倾斜值,我将如何转换它?
更多信息:这是一个 Flash/AS3 项目。平移和倾斜值来自摄像机视图的中心。相机视图尺寸为 960x540。
您以像素为单位给出了“视图”大小。您需要知道的是视野 (FOV),它以度数为单位。从那里你可以知道从中心到图像边缘的度数。
您可以在相机的技术规格中找到 FOV。(由探测器阵列尺寸和焦距决定)。或者,您可以尝试测量它。这是一个网页,解释了如何:
http://www.panohelp.com/lensfov.html