How to measure quality of an image?
古いコメントを表示
I need to find quality of an image before and after pre-processing.
For this, i need to calculate PSNR (Peak Signal to Noise Ratio), MSE (Mean Square Error),MAXERR (Maximum Squared Error) and L2RAT (Ratio of Squared Norms)
X = imread('africasculpt.jpg');
Xapp = X;
Xapp(X<=100) = 1;
[psnr,mse,maxerr,L2rat] = measerr (X,Xapp)
figure;
subplot(1,2,1); image(X);
subplot(1,2,2); image(Xapp);
This is the program that i got in Help menu in matlab.
However it is showing an error. Can anyone help me in this......
4 件のコメント
Geoff Hayes
2014 年 5 月 31 日
What is the error message? You will need the Wavelet Toolbox in order to use the command/function measerr.
Preeti Mistry
2014 年 6 月 2 日
Image Analyst
2014 年 6 月 2 日
That is not the full error message! Geoff asked you for the error message and instead you snipped out a small part of it. Importantly, you forgot to include the actual error message - you only included the line numbers. So while we know something went wrong with those lines of code, we don't know what. Please copy and paste ALL THE RED TEXT, not just part of it, if you want help.
Preeti Mistry
2014 年 6 月 3 日
採用された回答
その他の回答 (2 件)
pranay yadav
2017 年 2 月 23 日
1 投票
What is the Formula MAXER and L2RAT
remos remos
2015 年 1 月 9 日
0 投票
in the same subject I work on the mosaic of images with two different method So I have two different results. Visually a method from the two gives good result I want to compare the quality of both results and conclude one that gives good results and I don't know how to use your code to get that
カテゴリ
ヘルプ センター および File Exchange で Image Quality についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
