在图形数据视图中剔除像素的算法?
我正在编写一个 wxpython 小部件,它显示多个对象随时间(x 个周期)的状态。现在我让它以 1 像素/周期工作,并放大和缩小到 1:1;但我想允许缩小。我想看看是否有任何首选算法可以在我开始仅使用自己微弱的启发式方法来滚动/组合数据之前。是否有这样的算法,或者我应该开始编写自己的解决方案?
I'm writing a wxpython widget which shows the state of several objects over time (x cycles). Right now I have it working with 1 pixel/cycle and zooming in and back out to 1:1; but I would like to allow zooming out. I wanted to see if there are any go-to algorithms for thowing away/combining data before I started rolling my own using only my own feeble heuristics. Is there any such algo, or should I just start coding my own solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很大程度上取决于您要调整大小的图像类型。请参阅无限的神话详细信息:双线性与双三次和更好的图像调整大小< /a> 由我们自己的 Jeff 创作!在那里您可以比较朴素最近邻的结果,双线性过滤,双三次过滤, 双三次锐化和真正的分形。
杰夫的结论:
Depends a lot on what type of images you're resizing. See The myth of infinite detail: Bilinear vs. Bicubic and Better Image Resizing by our very own Jeff! There you can compare results of naive nearest neighbor, bilinear filtering, bicubic filtering, bicubic sharper and genuine fractals.
Jeff's conclusion: