📜  3x3 高斯内核 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:01.085000             🧑  作者: Mango

代码示例1
float[] matrix = {
    1/16f, 1/8f, 1/16f, 
    1/8f, 1/4f, 1/8f, 
    1/16f, 1/8f, 1/16f, 
};

BufferedImageOp op = new ConvolveOp( new Kernel(3, 3, matrix) );
blurredImage = op.filter(sourceImage, destImage);