image processing

2 views (last 30 days)
SAPANA NIKHADE
SAPANA NIKHADE on 13 Jun 2011
hello i wnt to plot graph of psnr vs noise, also mse vs noise, hw can i do it, plz giv me command. also i wnt to prepare table of psrn at noise density. can i get prepared table in matlab? i guess in workspace i can do that bt hw i dnt kw. plz help

Answers (1)

Walter Roberson
Walter Roberson on 13 Jun 2011
You can plot graphs using plot()
If you want the table to show up in a graphic interface, you can use uitable(). If you want the table to be plain text, you should use fprintf() with fixed width formats such as %15f
Which definitions of "psnr" and "mse" and "noise" are you using, and how have you chosen to implement them?
  1 Comment
SAPANA NIKHADE
SAPANA NIKHADE on 15 Jun 2011
m using median filter to remove salt n pepper noise from digital image.
psnr= 10log((255^2)/mse)
%mae(mean absolute error)
d1=imabsdiff(i2,i1);
sum2=sum(sum(d1));
mae=sum2/(M.*N)
SSIM=1.48.*(((2.*(m1).*(m2))+c1)).*((2.*(sd_both))+c2)/(((m12+m22)+c1).*(sd11+sd12+c2))
user ll give input as noise density and i m calculatng psnr, mse and ssim for inputed density. i wnt to plot all values of these parameter vs noise density. for that i might hv to sav all values of these parameters in matlab file so dat at density 90% i ll get plot.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!