Median

Median 3x3 filter.

 

function call:

[out_img1]=vsg('Median',in_img1);

 

Arguments:

in_img1 input image, 3 channel RGB, 1 channel greyscale or binary image, or DICOM image.

 

Description:

The Median filter is particularly useful for reducing the level of noise in an image.

out_img1 - an image which has dimensions the same as the input image. The output image is the input image after being median filtered.

 

Example:

img = openimage('lake.jpg');

h=figure;image(img);

[out_img1]=vsg('Median',img);

h=figure; image(uint8(out_img1));set(h,'Name','Median-image');
Home       Functions       Back