edit-calculating PSNR
古いコメントを表示
As in my previous post
MSE = mean2((single(image1) - single(image2)).^2);
i get error,matrix dimension must agree,please help
採用された回答
その他の回答 (1 件)
Image Analyst
2012 年 3 月 22 日
"Matrix dimension" basically means the size of your image. Your images must both be of the same size, not just laterally but also in the number of colors. So you can't subtract a grayscale image from a color one or vice versa. Do this and see what it says:
[rows1 columns1 numberOfColorChannels1] = size(image1)
[rows2 columns2 numberOfColorChannels2] = size(image2)
2 件のコメント
kash
2012 年 3 月 22 日
Image Analyst
2012 年 3 月 22 日
Well there you go. Matrix dimensions are not the same, just like it said. Plus, like Walter said, this is not really meaningful (assuming you resized them to match) since of course you know you will get a big number because it's a low pass version of the original image. Nothing really surprising there, or worth measuring I don't think.
カテゴリ
ヘルプ センター および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!