<< iminpaint Image Enhancement and Restoration imnoise >>

IPCV >> Image Enhancement and Restoration > immedian

immedian

Image median filter

Syntax

imout = immedian(imin,sz)

Parameters

imin :

Input image

sz :

Size of the filter block

Description

This function perform median filtering for an image, which effectively remove pepper and salt noise.

Examples

S = imread(fullpath(getIPCVpath() + "/images/coins_gray.jpg"));
S_noise =  imnoise(S,'salt & pepper',0.02);
imshow(S_noise);
S2 = immedian(S_noise,3);
figure; imshow(S2);

See also

Authors


Report an issue
<< iminpaint Image Enhancement and Restoration imnoise >>