LINFilter

Replace the central pixel of the 3x3 mask with the maximum value.

 

function call:

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

 

Arguments:

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

 

Description:

The LinFilter has the effect of spreading bright regions and contracting dark regions.

out_img1 – an image of the same dimensions as the input image that outputs the largest value at each pixel location for that location and its 8 neighbours.

 

Example:

img = openimage('lake.jpg');

h=figure;image(img);

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

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