what is the difference between the MSE of rgb image and gray scale image ?

8 ビュー (過去 30 日間)
shameen khan
shameen khan 2015 年 5 月 27 日
編集済み: Image Analyst 2015 年 5 月 27 日
what is the difference between the MSE of rgb image and gray scale image ?

採用された回答

Image Analyst
Image Analyst 2015 年 5 月 27 日
編集済み: Image Analyst 2015 年 5 月 27 日
There is a function called immse() but I bet it would only work if both images are the same type. If you have one that is monochrome and one that is color, either convert the color one to grayscale with rgb2gray() or convert the gray scale one to color with cat().
As for what is the difference, there's basically none. You just get the mean square error between every corresponding pixel, where there is one plane or 3 color planes.

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 5 月 27 日
MSE = sum(((double(FirstImage(:))-double(SecondImage(:)).^2) ./ numel(FirstImage);
This works regardless of whether the image is RGB or grayscale.

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by