isp 图像算法(三)之anti-aliasing filter抗混滤波
生活随笔
收集整理的這篇文章主要介紹了
isp 图像算法(三)之anti-aliasing filter抗混滤波
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
| p6 | p7 | p8 |
| p4 | p0 | p5 |
| p1 | p2 | p3 |
抗混濾波就是加大中心點p0的權重的一個加權平均而已
for y in range(img_pad.shape[0] - 4):for x in range(img_pad.shape[1] - 4):p0 = img_pad[y + 2, x + 2]p1 = img_pad[y, x]p2 = img_pad[y, x + 2]p3 = img_pad[y, x + 4]p4 = img_pad[y + 2, x]p5 = img_pad[y + 2, x + 4]p6 = img_pad[y + 4, x]p7 = img_pad[y + 4, x + 2]p8 = img_pad[y + 4, x + 4]aaf_img[y, x] = (p0 * 8 + p1 + p2 + p3 + p4 + p5 + p6 + p7 + p8) / 16總結
以上是生活随笔為你收集整理的isp 图像算法(三)之anti-aliasing filter抗混滤波的全部內容,希望文章能夠幫你解決所遇到的問題。