2 次元フィルタの適用範囲

5 ビュー (過去 30 日間)
R.Kato
R.Kato 2020 年 10 月 20 日
回答済み: Shunichi Kusano 2020 年 10 月 20 日
画像データimageに対して、メディアンフィルタ及び平均化フィルタを適用した場合の比較をしたいと思います。
下記のそれぞれのフィルタにおいて適用範囲は中心画素に対して周辺何画素になりますか。
メディアンフィルタ:medfilt2(image,[3 3])
平均化フィルタ:filter2(fspecial('average',3),image)

回答 (1 件)

Shunichi Kusano
Shunichi Kusano 2020 年 10 月 20 日
それぞれ中心画素を中心とする3x3の窓が適用範囲となります。
ちなみにですが、単なる平均値フィルタでしたらimboxfiltという関数もあります。

Community Treasure Hunt

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

Start Hunting!