资源描述:
《种滤波方法私人收藏正品( filtering methods private collection)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、10种滤波方法【私人收藏正品】(10filteringmethods[privatecollection])LimitingfilteringmethodAccordingtoexperience,themaximumdifferenceoftwosamplingisdeterminedA.Theutilitymodelhastheadvantagesthattheaccidentalpulseinterferencecanbeovercome.Disadvantages:inabilitytomedicalhiperiodicinterference./***
2、******************************************************************************************************************functionname:AmplitudeLimiterFilter()*instructions:1.callthefunctionGetAD()toobtainthecurrentsamplevalue.2.variabledeclarationValue:thelastsamplevalue,whichisaglobalvaria
3、ble.NewValue:currentsamplevalueReturnValue:returnvalue3.parameterdescriptionA:themaximumdifferencebetweenthetwosampling,dependingonthesituation.*entrance:Value*exports:ReturnValue*********************************************************************************************************
4、***********/#defineA10UnsignedcharValue;Unsigned,char,AmplitudeLimiterFilter(){UnsignedcharNewValue;UnsignedcharReturnValue;NewValue=GetAD;If(((NewValue-Value)>A(>A)
5、
6、(Value-NewValue))))ReturnValue=Value;ElseReturnValue=NewValue;ReturnReturnValue;}Two,medianfilteringContinuoussamplin
7、gNtimes(Noddnumber),baNtimesthesizeofthesamplearrangement,gotothemiddlevalueisvalid.Theutilitymodelhastheadvantagesthatthepulseinterferencecausedbychancecanbeovercome,andthefilteringeffectoftemperature,hydraulicpressureandotherslowlychangingparameterscanbeeffectivelyfiltered,.Disadva
8、ntages:itisdifficulttoquicklychangeparameterssuchasflowrateandspeed./*********************************************************************************************************************functionname:MiddleValueFilter()*instructions:1.callfunctionGetAD()usedtoobtainthecurrentsampleval
9、ue;Delay(),basicdelayfunction.2.variabledeclarationArrDataBuffer[N]isusedtostoretheNdataofonetimesamplingTemp,completethetemporaryregisterusedbythebubblemethodI,J,K,cyclicparametervalues3.parameterdescriptionN,arraylength*entrance:Export:ArrDataBuffer[(n-1)*/2],thereturnvalueofthefil
10、teringresult