what is the difference between the MSE of rgb image and gray scale image ?
38 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
shameen khan
am 27 Mai 2015
Bearbeitet: Image Analyst
am 27 Mai 2015
what is the difference between the MSE of rgb image and gray scale image ?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 27 Mai 2015
Bearbeitet: Image Analyst
am 27 Mai 2015
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.
0 Kommentare
Weitere Antworten (1)
Walter Roberson
am 27 Mai 2015
MSE = sum(((double(FirstImage(:))-double(SecondImage(:)).^2) ./ numel(FirstImage);
This works regardless of whether the image is RGB or grayscale.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!