Replace the central pixel of the 3x3 mask with the minimum value.
function call:
[out_img1]=vsg('SINFilter',in_img1);
Arguments:
in_img1
input image, 3 channel RGB, 1 channel greyscale or binary image, or
DICOM image.
Description:
The SINFilter has the effect of spreading dark regions and contracting
bright ones.
out_img1
– an image of the same dimensions as the input image that shows outputs
the smallest value at each pixel location for that location and its 8
neighbours.
Example:
img = openimage('lake.jpg');
[out_img1]=vsg('SINFilter',img);
h=figure; image(uint8(out_img1));set(h,'Name','SIN filter');
Notes:
For DICOM images, each slice is considered separately and 2D operators
are used. RGB images are worked on plane by plane.