图像处理20211117
讨论纪要
- 设多尺度指数为k(k = 1, 2, 3……)
- 遍历图像(每次都取3*3的九宫格为研究单位)
- 统计每个单位内存在噪声的个数的分布情况
图片素材
原图:
噪声图(20%噪声):
测试代码
1 | # python3.8 |
结果
1 : [37913, 57693, 37883, 14758, 3597, 637, 63, 6, 0, 0]
2 : [37846, 56020, 37246, 13848, 3574, 566, 76, 8, 0, 0]
3 : [38391, 54542, 35782, 13314, 3150, 648, 27, 0, 0, 0]
4 : [41556, 52310, 33718, 11641, 3167, 168, 0, 0, 0, 0]
5 : [36854, 49566, 32374, 14177, 4828, 765, 111, 0, 0, 0]
6 : [43444, 47958, 30239, 11964, 2043, 432, 0, 0, 0, 0]
7 : [46230, 46478, 28256, 9866, 1029, 441, 0, 0, 0, 0]
8 : [50508, 42172, 24850, 10246, 1392, 624, 0, 0, 0, 0]
9 : [46914, 37518, 26088, 12972, 3813, 1242, 0, 0, 0, 0]
10 : [53463, 41171, 19412, 4646, 1068, 240, 0, 0, 0, 0]
11 : [52524, 38412, 16932, 6822, 2643, 279, 0, 0, 0, 0]
12 : [65424, 29631, 14661, 6492, 1026, 270, 0, 0, 0, 0]
13 : [75999, 22551, 8235, 4530, 2052, 708, 0, 0, 0, 0]
14 : [79663, 21724, 10942, 2589, 330, 0, 0, 0, 0, 0]
15 : [77481, 19605, 11124, 3819, 1686, 360, 0, 0, 0, 0]
16 : [87633, 17988, 3285, 1356, 330, 0, 0, 0, 0, 0]
17 : [92328, 6741, 3807, 1782, 249, 0, 0, 0, 0, 0]
18 : [81849, 5629, 6010, 2776, 693, 243, 0, 0, 0, 0]
19 : [88299, 6501, 1809, 861, 0, 0, 0, 0, 0, 0]