Question: Find SNR for different values 2 5 , 5 0 , 7 5 , and 1 0 0 of the noise std ( standard deviation
Find SNR for different values and of the noise std standard
deviation and plot the results graph,Empirical Resolution,Calculated Resolution,Percentage error,SNR vs Noise Graph? clc; clear all;
imfinfoexamplejpg
IIimreadexamplejpg;
IIdoubleII; convert data type to double
figure; imshowII;
BW roipoly; select a region to find SNR
indfindBW; find the pixels that are selected
bwimage zerossizeII; make a array same size as the image
bwimageind; convert the array into a binary image
hold on;
imcontourbwimage,r; display the contour
figure;imshowbwimage,; titleBinary Image';display the binary image
FINDING SNR FOR NOISEFREE IMAGE
mu meanIIind; find the mean in the selected region
sd stdIIind; find the standard deviation in the selected region
SNRlogmusd; find the SNR in dB
dispThe SNR for noise free image in dB is:; SNR
ADD NOISE
dimsizeII; get the dimension of the image
noiserandomnormdimdim; generate random noise
same size as the image
IInoisyIInoise; add noise to the image
figure;imshowIInoisy,
BW roipoly; select a region to find SNR
indfindBW; find the pixels that are selected
bwimage zerossizeII; make a array same size as the image
bwimageind; convert the array into a binary image
hold on;
imcontourbwimage,r; display the contour
figure;imshowbwimage,; titleBinary Image';display the binary image
FINDING SNR FOR NOISY IMAGE
munoisy meanIInoisyind; find the mean in the selected region
sdnoisy stdIInoisyind; find the standard deviation in the selected
region
SNRnoisylogmunoisysdnoisy; find the SNR in dB
dispThe SNR for noisy image in dB is:; SNRnoisy
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
