Mode & median filters for color image
3 views (last 30 days)
Show older comments
Can you please send the syntax for mode and median filters for image restoration of color images.It would be very helpful
0 Comments
Accepted Answer
Sean de Wolski
on 6 May 2011
%Median:
Irgb = your_rgb_image;
for ii = 1:3
Irgb(:,:,ii) = medfilt2(Irgb(:,:,ii),ones(3)); %3x3 median
end
0 Comments
More Answers (1)
Darshan A
on 6 May 2011
4 Comments
Sean de Wolski
on 7 May 2011
No it's mine.
medfilt2(Irgb,[3 3]);
I was confusing it with conv2. (what you would use for mean or std)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!