2D ImagePlus 对象上的俯仰和偏航
我正在使用一项服务,当给定人脸时,它会返回“滚动”、“偏航”和“俯仰”值。
我用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为“滚转”、“俯仰”和“偏航”与飞行动力学中的含义相同。然后,您可以通过应用垂直和水平透视校正来模拟“俯仰”和“偏航”的效果。最简单的形式是将矩形映射到梯形:
您提到了 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.