Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
3faaa0b8
"git@developer.sourcefind.cn:OpenDAS/dlib.git" did not exist on "cd71dab3f2ca6a044f00590932a88c554433d2ad"
Commit
3faaa0b8
authored
Jul 29, 2017
by
Davis King
Browse files
Minor adjustments to avoid false alarms in cca test.
parent
96881874
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dlib/test/cca.cpp
dlib/test/cca.cpp
+4
-4
No files found.
dlib/test/cca.cpp
View file @
3faaa0b8
...
@@ -236,7 +236,7 @@ namespace
...
@@ -236,7 +236,7 @@ namespace
// non-matching pairs of projections.
// non-matching pairs of projections.
const
double
corr_rot1_error
=
max
(
abs
(
compute_correlations
(
rm_zeros
(
L
*
rotate
<
0
,
1
>
(
Ltrans
)),
rm_zeros
(
R
*
Rtrans
))));
const
double
corr_rot1_error
=
max
(
abs
(
compute_correlations
(
rm_zeros
(
L
*
rotate
<
0
,
1
>
(
Ltrans
)),
rm_zeros
(
R
*
Rtrans
))));
dlog
<<
LINFO
<<
"corr_rot1_error: "
<<
corr_rot1_error
;
dlog
<<
LINFO
<<
"corr_rot1_error: "
<<
corr_rot1_error
;
DLIB_TEST
(
std
::
abs
(
corr_rot1_error
)
<
1
e-
10
);
DLIB_TEST
(
std
::
abs
(
corr_rot1_error
)
<
2
e-
9
);
}
}
// Matching projection directions should be correlated with the amount of
// Matching projection directions should be correlated with the amount of
// correlation indicated by the return value of cca().
// correlation indicated by the return value of cca().
...
@@ -246,7 +246,7 @@ namespace
...
@@ -246,7 +246,7 @@ namespace
const
double
trans_error
=
max
(
abs
(
L
*
Ltrans
-
R
*
Rtrans
));
const
double
trans_error
=
max
(
abs
(
L
*
Ltrans
-
R
*
Rtrans
));
dlog
<<
LINFO
<<
"trans_error: "
<<
trans_error
;
dlog
<<
LINFO
<<
"trans_error: "
<<
trans_error
;
DLIB_TEST
(
trans_error
<
1
e-
10
);
DLIB_TEST
(
trans_error
<
2
e-
9
);
dlog
<<
LINFO
<<
"correlations: "
<<
trans
(
correlations
);
dlog
<<
LINFO
<<
"correlations: "
<<
trans
(
correlations
);
}
}
...
@@ -259,7 +259,7 @@ namespace
...
@@ -259,7 +259,7 @@ namespace
// non-matching pairs of projections.
// non-matching pairs of projections.
const
double
corr_rot1_error
=
max
(
abs
(
compute_correlations
(
rm_zeros
(
L
*
rotate
<
0
,
1
>
(
Ltrans
)),
rm_zeros
(
R
*
Rtrans
))));
const
double
corr_rot1_error
=
max
(
abs
(
compute_correlations
(
rm_zeros
(
L
*
rotate
<
0
,
1
>
(
Ltrans
)),
rm_zeros
(
R
*
Rtrans
))));
dlog
<<
LINFO
<<
"corr_rot1_error: "
<<
corr_rot1_error
;
dlog
<<
LINFO
<<
"corr_rot1_error: "
<<
corr_rot1_error
;
DLIB_TEST
(
std
::
abs
(
corr_rot1_error
)
<
1
e-
10
);
DLIB_TEST
(
std
::
abs
(
corr_rot1_error
)
<
2
e-
9
);
}
}
// Matching projection directions should be correlated with the amount of
// Matching projection directions should be correlated with the amount of
// correlation indicated by the return value of cca().
// correlation indicated by the return value of cca().
...
@@ -269,7 +269,7 @@ namespace
...
@@ -269,7 +269,7 @@ namespace
const
double
trans_error
=
max
(
abs
(
L
*
Ltrans
-
R
*
Rtrans
));
const
double
trans_error
=
max
(
abs
(
L
*
Ltrans
-
R
*
Rtrans
));
dlog
<<
LINFO
<<
"trans_error: "
<<
trans_error
;
dlog
<<
LINFO
<<
"trans_error: "
<<
trans_error
;
DLIB_TEST
(
trans_error
<
1
e-9
);
DLIB_TEST
(
trans_error
<
2
e-9
);
dlog
<<
LINFO
<<
"correlations: "
<<
trans
(
correlations
);
dlog
<<
LINFO
<<
"correlations: "
<<
trans
(
correlations
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment