AdaptSmooth

Adaptive smoothing of grey scale images. In order to apply it to colour images, the input image has to be split into RGB components and adaptive smooth has to be applied to each channel. If the colour image is applied directly the algorithm will smooth the average intensity image.

 

function call:

[out_img1]=vsg('AdaptSmooth',in_img1,num1,num2,num3);

 

 

Arguments:

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

num1 – an integer with the number of iterations that smoothing should be performed.

num2 – a double, the variance parameter.

num3 – a double, the diffusion parameter.

 

Description:

out_img1 - An image which has dimensions the same as the input image. The output image is an adaptively smoothed version of the input image.

 

Example:

img1 = openimage('lake.jpg');

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

[out_img1]=vsg('AdaptSmooth',img1,10,0.3,10.0);

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