필터 지우기
필터 지우기

Median Filter

조회 수: 2 (최근 30일)
nayomi ranamuka
nayomi ranamuka 2011년 4월 6일
Hi, I want to apply median filtering for HSI image. How would I apply it?

답변 (2개)

Lior Shapira
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

Sean de Wolski
Sean de Wolski 2011년 4월 6일

카테고리

Help CenterFile Exchange에서 Digital Filtering에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by