comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: RMS error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: RMS error [message #39379 is a reply to message #39378] Wed, 12 May 2004 07:13 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
David Fanning <david@dfanning.com> writes:

> Julio writes:
>
>> I'd like to calculate Root Mean Square error using a base image and a
>> secondary image. How can I do that? Clues are welcome!
>
> rms_error = Sqrt( Total((img_1 - img2)^2)/N_Elements(img_1) )

Hey David, I'll pile on too. The problem I see with the above
expression is that there could be an offset between the two images,
which you are including in your TOTAL expression, and hence biasing
the rms value. How about the following instead?

rms_error = stddev(img_1 - img2)

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: graphics_level
Next Topic: IDL - fundamental question about image display

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 14:38:02 PDT 2025

Total time taken to generate the page: 1.19721 seconds