7.6. 本章小结#
本章包含的内容比较多,主要介绍了几类图像处理问题,并给出了对应的经典算法,包括:图像滤波、泊松编辑、贝叶斯抠图、抖动算法、接缝裁剪。
7.6.1. 习题#
7.6.1.1. 滤波#
如何设计一个滤波器只提取某个给定方向的边缘?
7.6.1.2. 抖动#
GIF 格式是非常常见的图像、动画格式,比如微信表情包。但是由于其历史悠久,最多只支持 8 位调色板,也就是一张 GIF 图像最多只有256种颜色。现在的图像往往使用 8 比特色深,也就是有 \(2^{24}\) 种颜色选择。请思考:如何将一张真彩色的图像高质量压缩成 GIF 格式?
7.6.2. 参考文献#
Shai Avidan and Ariel Shamir. Seam carving for content-aware image resizing. In Seminal Graphics Papers: Pushing the Boundaries, Volume 2, pages 609–617. 2023.
Yung-Yu Chuang, Brian Curless, David H Salesin, and Richard Szeliski. A bayesian approach to digital matting. In Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition. CVPR 2001, volume 2, II–II. IEEE, 2001.
Patrick Pérez, Michel Gangnet, and Andrew Blake. Poisson image editing. ACM Trans. Graph., 22(3):313–318, July 2003. URL: https://doi.org/10.1145/882262.882269, doi:10.1145/882262.882269.