How do I get a median filtered image?
조회 수: 1 (최근 30일)
이전 댓글 표시
How do I get a median filtered image? I want to convert the first image like the second image using median filter.
댓글 수: 0
답변 (1개)
David Young
2015년 8월 25일
댓글 수: 4
Guillaume
2015년 8월 26일
편집: Guillaume
2015년 8월 26일
Have you tried increasing the size of the kernel. The default is 3x3. Your desired output image is extremely blurred indicative of a large kernel.
Try
medfilt2(img, [10 10]); %kernel size of 10
Note that even with the default, the output of medfilt2 is never exactly the same as the input (unless your image is just uniform)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!