Image is Noisy or not ?
3 views (last 30 days)
Hey Everyone ! I'm working on a project which includes to examine either the provided/selected image is noisy or not ?Is the given image is aesthetically acceptable or not.what should be the steps to follow to judge that ?
Any helpful response will be highly appreciated . Thanks in advance
Changoleon on 17 Nov 2016
Edited: Walter Roberson on 17 Nov 2016
Hi. this question is very qualitative. What kind of noise does your images has?
Let's assume your image has "salt & pepper" noise ( please see the attached image - the attached picture has salt and pepper noise and also some other sources of noise)
In order to judge if an image has salt and pepper noise, you could count the number of pixels in that image which have the intensity values of 0 and 255. And if the numbers is higher than a specific threshold then you could say that your image has salt and pepper noise or not. For instance
a = double(imread('actin_noise.bmp')); %( download the attached image )
b = sum(sum(a==255)); %this counts the number of white pixels (salt noise)
c = sum(sum(a==0)); %this counts the number of black pixels (pepper noise)
threshold = 2000; % this number needs to be determined by you
if b||c > threshold
fprintf ('Your image has Salt & Pepper noise /d')