码迷,mamicode.com
首页 > 其他好文 > 详细

e677. 模糊化图像

时间:2018-09-02 23:45:34      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:kernel   body   dem   模糊   ali   this   cells   str   his   

This example demonstrates a 3x3 kernel that blurs an image.

    Kernel kernel = new Kernel(3, 3,
        new float[] {
            1f/9f, 1f/9f, 1f/9f,
            1f/9f, 1f/9f, 1f/9f,
            1f/9f, 1f/9f, 1f/9f});
    BufferedImageOp op = new ConvolveOp(kernel);
    bufferedImage = op.filter(bufferedImage, null);

 

Related Examples

e677. 模糊化图像

标签:kernel   body   dem   模糊   ali   this   cells   str   his   

原文地址:https://www.cnblogs.com/borter/p/9575551.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!