求助

B2108 图像模糊处理

B2108
by lijunye_1 @ 2021-11-24 21:34:39


@[lijunye_1](/user/531785) 精度问题 ```cpp b[i][j] = round((a[i][j] + a[i - 1][j] + a[i][j - 1] + a[i + 1][j] + a[i][j + 1])/5); ``` 改为 ```cpp b[i][j] = round((a[i][j] + a[i - 1][j] + a[i][j - 1] + a[i + 1][j] + a[i][j + 1])*1.0/5.0); ```
by sycqwq @ 2021-11-24 22:02:10


@[无敌的蒟蒻](/user/151647) thank you very much!
by lijunye_1 @ 2021-11-25 19:05:47


@[无敌的蒟蒻](/user/151647) 万分感谢!
by lijunye_1 @ 2021-11-25 19:09:34


|