如下: 1. 直接初始化 double[][] embossFilter = {{-1/9, 0, 1/9}, {-1/9, 1/9, 1/9}, {-1/9, 0, 1/9}}; 2. 赋值初始化 double l = 1/9; double[][] linearFilter = {{l, l, l}, {l, l, l}, {l, l, l}}; 以上两种初始化结果均得到0.0,正确方法如下: double l = (double)1/9, b1 = (double)1/13, b2 = (