mathcad_ median filtering in t...
时间:2020-01-15
大小:91.3KB
阅读数:292
查看他发布的资源
资料介绍
mathcad_ median filtering in two dimensionGRAPHING AND VISUALIZATION
Median Filtering in Two Dimensions
This QuickSheet illustrates smoothing of a 2D image using 3 x 3 or 5 x 5 median filtering. S := READBMP( "cross" ) g( x) := if( rnd( 1)
M := READBMP( "mona" ) K := submatrixM ( , 60 , 160 , 50 , 150) → K := g( K) Second example
Input parameter k is 3 or 5 or 7. . . medflt ( M , k) := I0 ← J0 ← k1
2
k1
2
I1 ← rows ( M) J1 ← cols ( M) for i ∈ I0 .. I1 for j ∈ J0 .. J1
k+1
2
k+1
2
for r ∈ 0 .. k 1 for s ∈ 0 .. k 1 Ar , s ← M
i+ r k1
2
, j+s
k 1
2
Ni , j ← median ( A) N T := medflt ( S , 5) Noisy image Smoothed image
S
T
L := medflt ( K , 3)
K
L
……
版权说明:本资料由用户提供并上传,仅用于学习交流;若内容存在侵权,请进行举报,或
联系我们 删除。