if i add matrix(same size of original image)as a noisy matrix in original image, then how could i get noise of image(original+noisy matrix)?

if i add matrix(same size of original image)as a noisy matrix in original image, then how could i get noise of image(original+noisy matrix) in matlab?

 Accepted Answer

All right, let's take this a step at a time. You say " if i add matrix(same size of original image)as a noisy matrix". Ok, let's call this matrix "noiseImage" just to be descriptive.
Next you say " in original image,". OK that is confusing. Let me assume that you meant "to the original noise-free image." Let's call the original noise-free image "originalImage". So now you're saying let's do this operation: noiseImage+originalImage.
Then you say " then how could i get noise of image(original+noisy matrix) in matlab?" Well, first of all the noise of the image is the variable noiseImage, which we already had or else we couldn't do the addition operation. So you ALREADY HAVE it! But then you imply that the noise of (in) the image is originalImage+noiseImage, which is not true. That is your output image, not your noise. So now we have a situation with ambiguous and conflicting requests and leave us to guess or ask you for clarification.
If you have all three images (1) noiseImage, (2) originalImage, and (3) noisyImage or outputImage, then given any two, you can compute the third. Is that your situation? Do you have only two of these images, or even worse, only one of the images (presumable the noisy output image) and you want to compute the other two given only one image? If you have only the noisy image, there are a number of ways that you guess at what the noise might be - they all require that you make some assumptions about the noise.
Please clarify so we can help you further.

10 Comments

if i get noisy matrix,how it it is converted into noise in figure in db?
You did not answer any of my questions, but I will answer yours: I suppose you'd use the definition for decibel: http://en.wikipedia.org/wiki/Decibel
I have added 1)noise image in 2)original image manually. then i have calculated noise=mean(noise image)
because i would like to know how many noise added into original image?
Why are you saying that noise = mean(noise image)??? It's quite possible that the mean of the noise is zero, but that doesn't mean that there is no noise at all.
You know what it is because you added it to your image.
i know matrix of noise,not a single figure of it. i need noise for snr calculation
You need to get the SNR of each pixel before you take the mean. You can't take the mean of each image and then divide them. That's different (and pretty much useless).
SNR = mean2(signalImage ./ noiseImage);
signalImage=pixel intensity of 2)originalImage
noiseImage=pixel intensity of 1)noiseImage(not a noisy)
is this ok?

Sign in to comment.

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!