Android相机缩放数字在数学上代表什么? [英] What do the Android camera zoom numbers mathematically represent?

查看:331
本文介绍了Android相机缩放数字在数学上代表什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Android中编写一个基本的增强现实应用程序,但由于我不知道如何解释Android上的缩放级别,我在执行平台解耦计算时遇到了一些麻烦。

I'm trying to write a basic augmented reality app in Android, but I'm running into some trouble doing platform-uncoupled calculations because I don't know how to interpret the zoom levels on Android.

缩放级别范围从0到params.getMaxZoom(),但我找不到任何缩放级别实际意味着什么的文档(例如缩放级别0显然是0%放大,但缩放级别1像10%放大?)

The zoom levels range from 0 - params.getMaxZoom(), but I can't find any documentation about what those zoom levels actually mean (for example, zoom level 0 is obviously 0% zoomed in, but is zoom level 1 like 10% zoomed in?)

缩放级别是否完全未定义和任意抽象?我希望不会 - 这将使放大AR非常绝望。

Are the zoom levels totally undefined and arbitrary abstractions? I hope not - that would make zoomed-in AR pretty hopeless.

推荐答案

D'oh - 看起来像我只是需要阅读文档更密切。答案可以在这里找到:
getZoomRatios ()

D'oh - looks like I just needed to read the documentation more closely. The answer can be found here: getZoomRatios ()

这篇关于Android相机缩放数字在数学上代表什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆