MATLAB: Mode & median filters for color image

medianmode

Can you please send the syntax for mode and median filters for image restoration of color images.It would be very helpful

Best Answer

%Median:
Irgb = your_rgb_image;
for ii = 1:3
Irgb(:,:,ii) = medfilt2(Irgb(:,:,ii),ones(3)); %3x3 median
end
Related Question