Median Filter
古いコメントを表示
Hi, I want to apply median filtering for HSI image. How would I apply it?
回答 (2 件)
Sean de Wolski
2011 年 4 月 6 日
doc medfilt2
Lior Shapira
2011 年 4 月 6 日
I'm assuming your problem is with the radial dimension H. What I would do is calculate the median for each pixel such that its neighborhood is centered around 0.5 (the pixel). For example for a neighborhood size of [5 5]
colfilt(img_hsv(:,:,c), [5 5], 'sliding', @(x) mod(median(mod(x - x(13) + 0.5,1)) + x(13) - 0.5,1));
Its not perfect but gives decent results
カテゴリ
ヘルプ センター および File Exchange で Image Filtering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!