我试图应用模糊效果,但我总是得到错误的颜色 我使用Easy_BMP库将BMP文件加载到像素阵列中。 我试着用this topic的参考来实现高斯模糊alghoritm。怎么了?
Exception in thread "main" java.util.NoSuchElementException: No line found
at java.util.Scanner.nextLine(Scanner.java:1540)
at errorSolve.main(errorSolve.java:7)
答案 0 :(得分:2)
In for(int z = i-1 ; z<=j+1 ; z++) {
, try changing
int z = i-1
to
int z = j-1
Also, you are not deleting any of the arrays you allocate in your blur
function.