Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93524194
cp_errdiff.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 29, 10:59
Size
423 B
Mime Type
text/x-c
Expires
Sun, Dec 1, 10:59 (2 d)
Engine
blob
Format
Raw Data
Handle
22657588
Attached To
R1448 Lenstool-HPC
cp_errdiff.c
View Options
#include<stdio.h>
/* function compute norme of (test image-image) ----------- */
double
cp_errdiff
(
double
**
im1
,
double
**
im2
,
int
ni
,
int
nj
,
double
sigim
)
{
register
int
i
,
j
;
double
ndiff
=
0
;
for
(
i
=
0
;
i
<
ni
;
i
++
)
for
(
j
=
0
;
j
<
nj
;
j
++
)
ndiff
+=
(
im1
[
i
][
j
]
-
im2
[
i
][
j
])
*
(
im1
[
i
][
j
]
-
im2
[
i
][
j
]);
ndiff
/=
ni
*
nj
;
ndiff
/=
sigim
*
sigim
;
return
(
ndiff
);
}
Event Timeline
Log In to Comment