2D ImagePlus 对象上的俯仰和偏航

发布于 2024-10-05 13:10:15 字数 212 浏览 0 评论 0原文

我正在使用一项服务,当给定人脸时,它会返回“滚动”、“偏航”和“俯仰”值。

我用 Java 将图片作为 ImagePlus 对象。我将rotate() 函数与ImagePlus 对象的ImageProcessor() 实例结合使用来模拟服务返回的“滚动”测量。但是,由于我使用的是 2D 图形,我是否可以使用“俯仰”和“偏航”测量来更好地模拟图片?

谢谢,

乔尔

I am using a service , which when given a human face, returns the "roll" "yaw" and "pitch" values.

I have the picture as an ImagePlus object with Java. I used the rotate() function with ImageProcessor() instance of the ImagePlus object to simulate the "roll" measurment returned by the service. However, since I am using a 2D graphic, is there anyway I can use the "pitch" and "yaw" measurments to better simulate the picture?

Thanks,

Joel

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

╰◇生如夏花灿烂 2024-10-12 13:10:15

我认为“滚转”、“俯仰”和“偏航”与飞行动力学中的含义相同。然后,您可以通过应用垂直和水平透视校正来模拟“俯仰”和“偏航”的效果。最简单的形式是将矩形映射到梯形:

 ________          ____________
|        |         \          /
|        |  ==>     \        /
|        |           \      /
|________|            \____/

您提到了 ImagePlus 对象,所以我断定您正在使用 ImageJ 进行编程。这种情况下你可以在其透视校正的源代码中看看如何实现透视校正 插件。

I assume "roll", "pitch" and "yaw" have the same meaning as in flight dynamics. Then you can simulate effects of "pitch" and "yaw" by applying vertical and horisontal perspective corrections. The simpest form is to map a rectangle to a trapezium:

 ________          ____________
|        |         \          /
|        |  ==>     \        /
|        |           \      /
|________|            \____/

You mention ImagePlus object, so I conclude that you are programming with ImageJ. In this case you can look how to implement perspective correction in the source code of its Perspective correction plugin.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文