AdditiveNoise

Add a user defined level of white noise to the input image.

 

function call:

[out_img1]=vsg('AdditiveNoise',in_img1,num1);

 

Arguments:

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

num1 – an integer which specifies the range of the additive noise.

 

Description:

out_img1 – An image which has dimensions the same as the input image. This is the input image with noise added. Max noise level =num1/2, min noise level =(-num1)/2.

 

Example:

img = openimage('lake.jpg');

[out_img1]=vsg('AdditiveNoise',img,50);

 

Notes:

1. For DICOM images, the function operates on all slices separately.

2. For RGB images, the function operates on all colour planes separately.

Home    Functions   Back