【发布时间】:2012-01-31 18:47:48
【问题描述】:
我参考以下paper 并尝试实现 matlab 中给出的算法
唯一的问题是我如何找到嘈杂的像素,即具有脉冲噪声的像素?
X 似乎是我必须计算的图像中的脉冲像素
_
____________________________________________
Input – Noisy Image h
_______________________________________________
Step 1: Compute X
for every pixel repeat steps from 2 to 7
Step 2: Initialize w = 3
Step 3: If X(i,j) ≠ Impulse pixel
goto step 7
Step 4: ∆i,j = { h(i1,j1) | i-(w-1)/2 ≤ i1 ≤ i+(w-1)/2,
j-(w-1)/2 ≤ j1 ≤ j+(w-1)/2}
b=no. of black pixels in the window
w=no. of white pixels in the window
Step 5: If ∆i,j ≠ NULL
p(i,j) = mean(∆i,j
)
d(i,j) = | h(i,j) – p(i,j) |
else if (w < wmax)
w=w+2
goto step 4
else
if (b>w)
h(i,j)=0
else
h(i,j)=255
Step 7: Goto next pixel
Step 8: Calculate threshold t, from detailed coefficient
matrix d
for every pixel
Step 9: If (d(i,j)>t)
h(i,j)=p(i,j)
____________________________
编辑:为了实现 PSM 或中值滤波方法,我们 需要设置一些参数和阈值。这 阈值取决于图像和噪声 密度。因此,要恢复不同的图像,我们需要检查 一系列阈值并找出最佳值。所以,在 我们提出的算法消除了定义阈值的需要。算法智能,判断 阈值自动。
【问题讨论】:
-
能否请您总结一下文章的目标和算法?标题也可以避免链接失效。
-
那么“带有脉冲噪声的像素”这个词是从哪里来的呢?它在代码中不存在。不知道你对你的问题期望什么样的答案,然后
-
如果 X(i,j) ≠ Impulse pixel here 这表明!
-
递归算法的速度:Matlab
标签: algorithm image matlab image-processing