rms
[ XITE Reference Manual | XITE home ]
Name
rms - root mean square difference between two images
Syntax
rms <inimage1> <inimage2> [<edge>]
Description
rms calculates the root mean square difference
between corresponding pairs of bands and writes
the result to stdout.
rms = SQRT{ SUM [ |inp1[y][x] - inp2[y][x]| **2 ] / N }
where SUM is over all N pixels in the band minus an edge of
width edge which is not included in the calculaton. The
purpose of this is to exclude differences due to different
processing of the edge by local filters. Default edge value is
0.
All pixeltypes are allowed, but corresponding bands in
inimage1 and inimage2 must be of the same pixeltype.
See also
rms(3), absDiff(1), signDiff(1)
Author
Tor Lønnestad, BLAB, Ifi, UiO.
Examples
rms monaMed.img monaAver.img 1
Id
$Id: rms.c,v 1.30 1997/05/27 14:47:12 svein Exp $