MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB图像处理] 十字形窗口中值滤波怎么写程序 (https://www.labfans.com/bbs/showthread.php?t=8401)

529117903 2009-05-16 23:07

十字形窗口中值滤波怎么写程序
 
十字形窗口中值滤波怎么写程序,,请大侠们救命,急!!!!!!!

silas_xue 2009-05-17 10:34

回复: 新手请教!!!救命...
 
lz 可以阅读图像处理有关的书籍 基本上都会有讲的
可以参考一下 matlab的help中关于图像滤波的demo
希望可以对你有些帮助

Thx for reading.
PS:若还算满意,直接点击“Thanks”,再次登陆时亦便于查看回答是否真的帮到你了。
个人观点 仅供参考 多多交流 相互学习

529117903 2009-05-18 11:58

回复: 十字形窗口中值滤波怎么写程序
 
能给个十字窗口程序吗?我要做窗口滤波,可找不着资料,,马上要上交了,,时间赶不上了!!谢谢

silas_xue 2009-05-19 02:45

回复: 十字形窗口中值滤波怎么写程序
 
lz 不知道我理解你的意图是否正确?

pseudo:
Suppose p(i,j) is the current pixel, p_n(i,j) is the result updated
for i,j across the image
p_n(i,j) = 1/4(p(i-1,j)+p(i+1,j)+p(i,j-1)+p(i,j+1)) %% for average calculation
%% Or p_n(i,j) = 1/5(p(i-1,j)+p(i+1,j)+p(i,j-1)+p(i,j+1))+p(i,j)) for average calculation with the p(i,j) itself in calculation
%% Or temp_set = (p(i-1,j),p(i+1,j),p(i,j-1),p(i,j+1)) p_n(i,j) = median(temp_set) for Median calculation
%% Or temp_set = (p(i-1,j),p(i+1,j),p(i,j-1),p(i,j+1),p(i,j)) p_n(i,j) = median(temp_set) for Median calculation with the p(i,j) itself in calculation
end


所有时间均为北京时间。现在的时间是 12:38

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.