MATLAB Answers


How do I add noise to a color image without using imnoise function?

Asked by ARUN SAI
on 17 Apr 2013

is it possible to create noise in a color image without using imnoise function?

  1 Comment

1 Answer

Answer by Image Analyst
on 17 Apr 2013

Yes, you could use rand(), or just write any nonsense into the image that is not the image, such as

if yourImage(row, column) ~= 42
  yourImage(row, column) = 42; % I just created noise!


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!