<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                圖像銳化算法是圖像處理中經常用到的基礎算法,在Photoshop中,使用的是USM銳化,但是這種銳化速度比較慢,今天,介紹一種很簡單的銳化算法:基于均值濾波的銳化算法。 本文要介紹的這個算法,來源于論文《Digital image enhancement and noise fitering by using local statistics》。 算法過程如下: 1,計算窗口范圍內的均值: [![](https://box.kancloud.cn/2015-12-30_56837deca43d7.png)](http://www.zealpixel.com/data/attachment/portal/201509/20/194532aj17ujsh7pj7u2j2.png) [![](https://box.kancloud.cn/2015-12-30_56837decb60e7.png)](http://www.zealpixel.com/data/attachment/portal/201509/20/194532zdqb934lttwggb3u.png) 其中公式(1)為均值計算公式 ,公式(2)為方差計算公式,公式(2)暫時沒有用到。 2,銳化公式: 2.1 銳化算法(1): [![](https://box.kancloud.cn/2015-12-30_56837deccd932.png)](http://www.zealpixel.com/data/attachment/portal/201509/20/194532k75x97y05x99740z.png)?? 這個公式中x(i,j)表示(i,j)位置像素的銳化值,m(i,j)表示均值。 當k=0時,該算法表示均值濾波; 當0<k<1時,該算法表示低通濾波; 當k = 1時,該算法表示原圖不變; 當k>1時,該算法表示高通濾波,即銳化算法; 2.2銳化算法(2): [![](https://box.kancloud.cn/2015-12-30_56837decdc124.png)](http://www.zealpixel.com/data/attachment/portal/201509/20/194532dq85ts6873rvjsqq.png) [![](https://box.kancloud.cn/2015-12-30_56837dece9124.png)](http://www.zealpixel.com/data/attachment/portal/201509/20/194532hcsqth5yhlhq4ohx.png) 其中,g(x)表示一個線性變換,比如a=0.9,b=13,表示一個對比度增強。 當k=0時,該算法表示均值濾波; 當0<k<1時,該算法表示低通濾波; 當k = 1時,該算法表示原圖不變; 當k>1時,該算法表示高通濾波,即銳化算法; 以上就是這個基于均值濾波的銳化算法,算法相當簡單,易于實現,這里給出效果圖: [![](https://box.kancloud.cn/2015-12-30_56837ded03877.jpg)](http://www.zealpixel.com/data/attachment/portal/201509/20/195613wl4zcod1sofyssl0.jpg) 原圖 [![](https://box.kancloud.cn/2015-12-30_56837ded1a75e.png)](http://www.zealpixel.com/data/attachment/portal/201509/20/195612rrpzsswrwu0m8vax.png) 窗口半徑radius=10,k=0.5效果圖 [![](https://box.kancloud.cn/2015-12-30_56837ded5746e.png)](http://www.zealpixel.com/data/attachment/portal/201509/20/195745ws585bcznsplsccc.png) 窗口半徑radius=10,k=2效果圖 最后,給出一個簡單的DEMO:[基于均值濾波的銳化算法DEMO.zip](http://www.zealpixel.com/portal.php?mod=attachment&id=326)? 跟大家分享一下!
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看