- 1220
- 0
- 约4.07千字
- 约 7页
- 2017-07-25 发布于河南
- 举报
中值和均值滤波---matlab实现(Median and mean filter ---matlab implementation)
中值和均值滤波---matlab实现(Median and mean filter ---matlab implementation)
%x is the image that needs filtering, and N is the template size (that is, n * n)
Function d=avg_filter (x, n)
A (1:n, 1:n) =1;%a, that is, n * n template, the element is 1
[height, width]=size (x);% input image is hightxwidth, and hightn, widthn
X1=double (x);
X2=x1;
For i=1:hight-n+1
For j=1:width-n+1
C=x1 (i:i+ (n-1), j:j+ (n-1)),.*a;%, take out X1 from J (I), start n row, n column element, and template multiply
S=sum (sum (c));% the sum of the elements in the C matrix
X2 (i+ (n-1), /2, j+ (n-1), /2) =s/ (n*n);% will assign
您可能关注的文档
- --华安盛道管理网 如何在单件装配企业推行精益生产(How to Huaan shendall management network, the implementation of lean production in assembly enterprises).doc
- --华安盛道管理网 定置管理(Huaan Shengdao management network management).doc
- 03判断推理---演绎推理(03 judgment reasoning deductive reasoning).doc
- 12秋《经济法概论》作业3(12 autumn, introduction to economic law, assignment 3).doc
- 2007年感动中国十大人物(2007 moved China's ten great men).doc
- 1959年资料5 中医对泄泻的认识和治疗(Understanding and treatment of traditional Chinese medicine on diarrhea in 1959 5).doc
- 2010年咨询师项目决策分析与评价精选练习及解析(Selection, practice and analysis of consultants' project decision analysis and evaluation in 2010).doc
- 2011初级士基础知识(2011 basic knowledge of Junior School).doc
- 2011年西医综合考研傲视宝典(2011 Western comprehensive examination disdain for the book).doc
- 2011年高考语文试题分类汇编—名篇名句默写(2011 college entrance exam of Chinese famous famous dictation assembly - Classification).doc
最近下载
- 《配电网行波故障预警与定位装置技术规范》.pdf VIP
- J B-T 5994-1992装配通用技术要求.pdf VIP
- 地理趣味知识与奇观课件省公开课金奖全国赛课一等奖微课获奖PPT课件.pptx VIP
- 工艺标准-IPC-TM-650 CN测试方法手册.pdf VIP
- 2026年安徽省中考英语试卷真题(含答案及逐题详解).pdf
- 国海证券-贵州茅台-600519-公司深度研究-白酒周期寻金系列一,再论贵州茅台成长空间.pdf VIP
- 消防栓检查表、完整.doc VIP
- (2026年)碳达峰碳中和综合评价考核办法PPT课件.pptx VIP
- 战略管理(第6版) 课件全套 徐飞 第1--10章 战略管理概论---战略评价与控制.pptx
- 国海证券-食品饮料行业专题研究-白酒筹码出清尾声,行业拐点渐近.pdf VIP
原创力文档

文档评论(0)