Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
7b13550b
Commit
7b13550b
authored
Nov 22, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7697 from alalek:backport_6561
parents
62b20390
3ea4f72e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
test_dxt.cpp
modules/core/test/test_dxt.cpp
+28
-0
No files found.
modules/core/test/test_dxt.cpp
View file @
7b13550b
...
...
@@ -778,6 +778,9 @@ public:
protected
:
void
run_func
();
void
prepare_to_validation
(
int
test_case_idx
);
#if defined(__aarch64__) && defined(NDEBUG)
double
get_success_error_level
(
int
test_case_idx
,
int
i
,
int
j
);
#endif
};
...
...
@@ -785,6 +788,31 @@ CxCore_MulSpectrumsTest::CxCore_MulSpectrumsTest() : CxCore_DXTBaseTest( true, t
{
}
#if defined(__aarch64__) && defined(NDEBUG)
double
CxCore_MulSpectrumsTest
::
get_success_error_level
(
int
test_case_idx
,
int
i
,
int
j
)
{
int
elem_depth
=
CV_MAT_DEPTH
(
cvGetElemType
(
test_array
[
i
][
j
]));
if
(
elem_depth
<=
CV_32F
)
{
return
ArrayTest
::
get_success_error_level
(
test_case_idx
,
i
,
j
);
}
switch
(
test_case_idx
)
{
// Usual threshold is too strict for these test cases due to the difference of fmsub and fsub
case
399
:
case
420
:
return
DBL_EPSILON
*
20000
;
case
65
:
case
161
:
case
287
:
case
351
:
case
458
:
return
DBL_EPSILON
*
10000
;
default
:
return
ArrayTest
::
get_success_error_level
(
test_case_idx
,
i
,
j
);
}
}
#endif
void
CxCore_MulSpectrumsTest
::
run_func
()
{
...
...
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