I am trying to add gaussian noise to an image using the pdf model. I have searched for hours but the only thing I get is either imnoise or a manual code as below:
Inoise = Orig_img + (sqrt(variance)*randn(size(Orig_img)) + mean);
The pdf for gausssian noise is:

Any way I can use this to generate noise in an image
meanas a variable name. It's the name of a Matlab function. And you can remove the outer parentheses. Other than that, it's the way to go - Luis Mendo