中值滤波讲解-Matlab
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                中值滤波讲解-Matlab
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.                        
                                
                            
                            
                            一、原理:
 
1:通過從序列中取出奇數(shù)個(gè)數(shù)(偶數(shù)也可)據(jù)進(jìn)行排序
 
2:用排序后的中值,(若取數(shù)為偶數(shù),則求中間兩數(shù)的均值)來取代要處理的數(shù)據(jù)即可
 
二、除去高頻波動(dòng)分量和奇異點(diǎn)(即離基本分布點(diǎn)很遠(yuǎn)的噪點(diǎn))
 
三、實(shí)例說明
 
 
圖1-整體效果圖
圖2-局部效果圖
四、代碼說明 %中值濾波-Lab10 file='Datanog7'; x=importdata([file,'/A_x.txt']); subplot(2,1,1); plot(x); b=medfilt1(x,1000); subplot(2,1,2); plot(b);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
                            
                        
                        
                        圖1-整體效果圖
圖2-局部效果圖
四、代碼說明 %中值濾波-Lab10 file='Datanog7'; x=importdata([file,'/A_x.txt']); subplot(2,1,1); plot(x); b=medfilt1(x,1000); subplot(2,1,2); plot(b);
總結(jié)
以上是生活随笔為你收集整理的中值滤波讲解-Matlab的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: Undefined function o
- 下一篇: 傅立叶变换、拉普拉斯变换、Z变换之间 篇
