function [ img_o ] = addNoiseToImage( img, std )
% Hassan Nahas
%This function adds noise to an image.
    img_o = img + round((std^2)*randn(size(img)));%imnoise(img,'gaussian',0,std^2);
    img_o(img_o > 255 ) = 255;
    img_o(img_o < 0) = 0;

end

