Be the first to rate this file! 53 downloads (last 30 days) File Size: 1.9 KB File ID: #22141

Impulse Noise Addition

by Kannan Keizer

 

18 Nov 2008 (Updated 01 Dec 2008)

No BSD License  

Adding impulse noise to image

Download Now | Watch this File

File Information
Description

This function can be used for adding different kind of impulse noises (i.e. Salt & Pepper noise and Random-value impulse noise) to image.
Salt & Pepper Noise values are 0 or 255 but random-value impulse noise values vary from 0 to 255.

website : http://kannan.keizer.googlepages.com

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
01 Dec 2008 Cris Luengo

1st: you're using incorrect statistics when you change the output of RAND the way you do (setting 0 values to 1 and dividing by the max value). Just use the output of RAND directly in your comparisons, that is what RAND is designed for.

2nd: A function that asks to enter a choice every time it is run is inconsistent with all the other functions in MATLAB (and annoying), the choice should be an input parameter to the function. Also, you could provide default values for the ND and D parameters.

3rd: There is no need to output the result to a figure window. Let the user decide whether they want that or not.

Please login to add a comment or rating.
Updates
01 Dec 2008

Modified based on Cris Luengo' comments.

Tag Activity for this File
Tag Applied By Date/Time
signal processing Kannan Keizer 18 Nov 2008 14:37:02
image processing Kannan Keizer 18 Nov 2008 14:37:02
impulse noise Kannan Keizer 18 Nov 2008 14:37:02
randomvalue impulse Kannan Keizer 18 Nov 2008 14:37:02
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com