Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93058389
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
Mon, Nov 25, 21:30
Size
423 B
Mime Type
text/x-c
Expires
Wed, Nov 27, 21:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22563618
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