Midpoint

Midpoint 3x3 filter.

 

function call:

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

 

Arguments:

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

 

Description:

The midpoint filter is based on the mid-value of pixels in a 3×3 neighboured.

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

 

Example:

img = openimage('lake.jpg');

h=figure; image(img1);set(h,'Name','Input Image');

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

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