Polynomial Regression filter implementation

조회 수: 4 (최근 30일)
mosa mm
mosa mm 2016년 5월 24일
편집: Miftah Bedru 2022년 12월 15일
How can I implement Polynomial Regression filter for clutter filtering?
I would appreciate if you give me an example to understand it.
Best
  댓글 수: 2
Star Strider
Star Strider 2016년 5월 24일
Are you doing signal processing or image processing?
mosa mm
mosa mm 2016년 5월 24일
편집: mosa mm 2016년 5월 24일
Thanks for your comment, it's Signal processing. I have to design an accurate high pass filter by Polynomial Regression...

댓글을 달려면 로그인하십시오.

답변 (3개)

Bjorn Gustavsson
Bjorn Gustavsson 2016년 5월 24일
First have a look at
sgolayfilt
If you need to filter images and it's not enough to apply sgolayfilt along either direction you might possibly be ably to make a version of sgolayfilt for 2-D that uses polyfitn, in the worst case you could make a function that simply loops around using polyfitn.
HTH
  댓글 수: 1
mosa mm
mosa mm 2016년 5월 24일
편집: mosa mm 2016년 5월 24일
Thanks for your comment Bjorn. I read about it and it's FIR smoothing filter (low pass)... but what I need is an accurate high pass filter.
Have you heard about The Gram–Schmidt process? maybe it's possible through this process but I don't know how....

댓글을 달려면 로그인하십시오.


Star Strider
Star Strider 2016년 5월 25일
I’m listing this as an Answer so I can find it again. If I have the opportunity to code and test it, I’ll follow up. I’m not promising anything.
This reference Polynomial regression filters and Calculation of time-variant Magnitude Responses are everything I can find on it.
The legendre function seems to me to be able to produce the polynomials, but I would have to know much more about it to know if it could be applied here.
There is nothing in the File Exchange, and no MATLAB code for it online.
  댓글 수: 2
mosa mm
mosa mm 2016년 5월 29일
Thanks Star for your answer, I will figure it out.
Star Strider
Star Strider 2016년 5월 29일
My pleasure.

댓글을 달려면 로그인하십시오.


mireirei
mireirei 2016년 12월 1일
has anyone figured out how to implement poly reg filter? I'm looking for a file exchange source file if possible.....
  댓글 수: 1
Miftah Bedru
Miftah Bedru 2022년 10월 20일
편집: Miftah Bedru 2022년 12월 15일
I know it will be too late by the time you see this post , I myself was looking for such implementation and all what I found was papers and some bolgs ... below are best resources in terms of sample code and quick material to read :
  1. good lecture pdf and code snips here
  2. Matlab library function here
To get more detail resources just click here . Sorry for just putting links. I saw the discussion and the code are better elaborated in the link. In case the above link get broken in the futue , here I put short code segement shared to me by a good friend regarding ploy filter that uses matrxi implemntation of polynomial filter ( I am assuiming ultrasound data/signal here )
SIG = reshape(shiftdim(SIG,2),N,[]); % SIG refers a 3D signal slow-time, fast timem and channel - signal reshaped for better application of the below filter coeff.
t = linspace(0,1,N).'; %% time span between each shot along the slow time
V(:,n+1) = ones(N,1); %%% Vandermode matrix to hold orthogonla polynomilas which will be fitted to the clutters
for k = n:-1:1
V(:,k) = t.*V(:,k+1); %%
end
A = eye(N)-V*pinv(V); #### creating filtering coeffcient using the formulata y = I - b.b'
SIG = A*SIG; %%% APPLYING THE FILTER TO THE SIGNAL
SIG = reshape(permute(SIG,[3 2 1]),siz0); %%% Reshape the filtered signal for display .
It may not be the best but I am just sharing what I got while sniffing around ...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Filter Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by