1D med filter

1 回表示 (過去 30 日間)
dunklevision
dunklevision 2016 年 12 月 13 日
コメント済み: dunklevision 2017 年 1 月 13 日
Can anyone please, help me with the 1D median filter algorithm?
  2 件のコメント
David Barry
David Barry 2016 年 12 月 13 日
Help you do what exactly? You need to be clear. Why can't you use the built-in MATLAB function? It seems strange to build your own when one already exists for you to use straight out of the box.
dunklevision
dunklevision 2016 年 12 月 17 日
well it's a task so I have to build that function...

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2016 年 12 月 13 日
M = movmedian(A,k) returns an array of local k-point median values, where each median is calculated over a sliding window of length k across neighboring elements of A. When k is odd, the window is centered about the element in the current position. When k is even, the window is centered about the current and previous elements. The window size is automatically truncated at the endpoints when there are not enough elements to fill the window. When the window is truncated, the median is taken over only the elements that fill the window. M is the same size as A.
I supposed you don't want to use that either? Well at least movmedian() is built into base MATLAB, unlike medfilt1() which is in the Signal Processing Toolbox.
  8 件のコメント
Image Analyst
Image Analyst 2017 年 1 月 3 日
Well, can you then go ahead and "Accept this Answer"? Thanks in advance.
dunklevision
dunklevision 2017 年 1 月 13 日
sure! I'm the one to thank you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by