MATLAB Answers


how to remove the noise applied to particular part of color image

Asked by KAS
on 7 Jul 2013

i have read an image into some variable for ex; 'r' ,next applied the noise to r(i,j) where i and j is the position of the noise i want to remove the noise but applying the denoising method only at the to do it explain it with an example.


1 Answer

Answer by Image Analyst
on 7 Jul 2013
Edited by Image Analyst
on 7 Jul 2013

First bet a binary image that says where the noise is, for example by just specifying the rows and columns, or using imfreehand() and poly2mask(), or stdfilt() and thresholding, or whatever gives you the noise pixels. Then just do:

% Set back to original noise-free values.
noisyImage(binaryImage) = originalImage(binaryImage); 

Repeat for each color channel.

  1 Comment

on 7 Jul 2013

explain with example

Discover MakerZone

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

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!