title: Adding Impulse Noise in Image manually
body: <p>How can salt &amp; pepper noise be added to an image separately depending on the PROBABILITY of salt and pepper. <code>imnoise</code> would take ONE value for the noise density as a whole and that value is the measure for both salt (white dots) and pepper (black dots). I want to know if we have just to add white (salt) and then black (pepper) noise separately with two different probabilities. What equation would have to be used? </p>