Fast Perspective transform in Java Advanced Imaging API

守給你的承諾、 提交于 2019-12-01 00:02:35

Try switching off the bicubic interpolation - that should save you some time, but it would produce lower quality results.

Before 3D acceleration became widespread, games used smart tricks for drawing images in perspective. Wikipedia has a great article explaining this in detail. I am not aware of a Java-based library utilizing those concepts, but you could implement the affine-mapping version quite easily - just split the original image into several triangles and map each triangle using a different affine transform.

If you want really smooth, correct, anti-aliased preview, I would suggest using a 3D library like Java3D o JOGL.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!