MATLAB Answers


What is the mathematics behind the imnoise function in matlab?

Asked by Ashwani
on 2 Jan 2013

Actually I want to know that how imnoise add noise to a signal .which method it follows.



No products are associated with this question.

2 Answers

Answer by Walter Roberson
on 2 Jan 2013

It depends which kind of noise.

Most of the supported types are essentially randn() * scale + mean


Thanks for reply. If I am using J = imnoise(I,'gaussian',m,v),( m = 0,v=1). Then how it add noise to 'I'.

on 2 Jan 2013

I would guess newpixel = originalpixel + randn(1). For every pixel in image, in other words J = I + randn(size(I)). See 'help randn' on how to get different means/variance.

Answer by Image Analyst
on 2 Jan 2013

This is all spelled out in the help for the different types of noise you can choose from. It assumes the image is normalized 0-1 and then adds the noise you selected, then it unnormalizes the image to get back to the original intensity range. Was there one particular type of noise that you did not understand the definition of?


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!