# how can i calculate rmse ?

2 Ansichten (letzte 30 Tage)
Hi, I want to calculate rmse without using for loops between 2 images. this should produce a number not a matrix. can you help me?
##### 1 Kommentar-1 ältere Kommentare anzeigen-1 ältere Kommentare ausblenden
Muhammad Usman Saleem am 19 Jun. 2016

Melden Sie sich an, um zu kommentieren.

### Akzeptierte Antwort

Image Analyst am 26 Jun. 2016
Use the immse() function in the Image Processing Toolbox.
##### 0 Kommentare-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Weitere Antworten (1)

Muhammad Usman Saleem am 19 Jun. 2016
Bearbeitet: Muhammad Usman Saleem am 19 Jun. 2016
if you upload your images, batter for me to make a code then. Try this prototype
in order to calculate some RMS error for your images, you require two points
(1) YourOrginalimaege
(2) Extimatedimage
Then you can calculate RMS error as
RMS=sqrt(sum(YourOrginalimage (:)-Extimatedimage (:))^2/N) % thanks to John
where N may be total no of samples in YourOrginalimage
Check it and tell me?
##### 2 KommentareKeine anzeigenKeine ausblenden
John D'Errico am 19 Jun. 2016
Um, NO!
You need to square those differences before the sum. In your formula, there is no square operation at all.
As importantly, if the image arrays are stored as uint8, the computation you propose will fail completely. Those image values must first be assured to be doubles before any such computation.
Muhammad Usman Saleem am 28 Jun. 2016
has corrected now

Melden Sie sich an, um zu kommentieren.

### Kategorien

Mehr zu Image Category Classification finden Sie in Help Center und File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by