应用透视时图像锯齿状边缘,C#
面临图像变形的一些问题。我的应用程序(C#、VS2010)将图像作为输入并将其平铺,并使用单应性矩阵应用透视。所有这些工作正常,我得到了具有所需视角的平铺输出图像。但输出图像有一些锯齿状边缘和丢失像素。
这是我的应用程序的示例输出: http://www.4shared.com/photo/vIeRhc9y/InterPol.html (放大图像以清楚地看到问题)
检查图像左上角的锯齿状边缘和一些缺失的白线。我尝试根据此处提供的解释对像素应用双三次插值: http://paulbourke.net/texture_colour/imageprocess/
输出稍好一些,但大部分缺失的线条和锯齿状的边缘仍然存在。我可以做什么来解决这个问题?
提前致谢。
问候
Facing some issues with image warping. My application (C#, VS2010) takes as input an image and tiles it and applies perspective using a homography matrix. All that works fine and I get a tiled output image with the required perspective. But the output image has some jaggered edges and missing pixels.
This is a sample output from my application:
http://www.4shared.com/photo/vIeRhc9y/InterPol.html
(Enlarge the image to see the problem clearly)
Check out the jaggered edges and some missing white lines towards the top left corner of the image. I tried applying bicubic interpolation to the pixels based on the explanation provided here:
http://paulbourke.net/texture_colour/imageprocess/
The output is slightly better, but most of the missing lines and jaggered edges remain. What can I do to solve the issue?
Thanks in advance.
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要做得更好;)您使用的是 System.Drawing 还是其他东西?我知道如何使用 GDI+ 使质量变得非常好,但是您应该能够通过双三次插值。你有做任何过滤吗?
为了进行简单比较,只需在 Paint.NET 中打开图像并调整大小,我就不会遇到同样的问题。
You need to do better ;) are you using System.Drawing or something else? I know how to make the quality really good with GDI+ but you should be able to get better results with bicubic interpolation. Are you doing any filtering?
For simple comparsion, just opening the image in Paint.NET and doing some resizing I'm not experiencing the same problem.