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
a2676b27
Commit
a2676b27
authored
Nov 04, 2010
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed failure in rand test (ticket #449)
parent
8a8ba57b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
arand.cpp
tests/cxcore/src/arand.cpp
+3
-2
cxcoretest_main.cpp
tests/cxcore/src/cxcoretest_main.cpp
+1
-1
No files found.
tests/cxcore/src/arand.cpp
View file @
a2676b27
...
@@ -132,7 +132,7 @@ void CV_RandTest::run( int )
...
@@ -132,7 +132,7 @@ void CV_RandTest::run( int )
{
-
1000000
,
1000000
},
{
-
1000
,
1000
},
{
-
1000
,
1000
}};
{
-
1000000
,
1000000
},
{
-
1000
,
1000
},
{
-
1000
,
1000
}};
const
int
MAX_SDIM
=
10
;
const
int
MAX_SDIM
=
10
;
const
int
N
=
12
00000
;
const
int
N
=
20
00000
;
const
int
maxSlice
=
1000
;
const
int
maxSlice
=
1000
;
const
int
MAX_HIST_SIZE
=
1000
;
const
int
MAX_HIST_SIZE
=
1000
;
int
progress
=
0
;
int
progress
=
0
;
...
@@ -329,10 +329,11 @@ void CV_RandTest::run( int )
...
@@ -329,10 +329,11 @@ void CV_RandTest::run( int )
for
(
sdim
+=
2
;
sdim
<=
SDIM
;
sdim
+=
2
)
for
(
sdim
+=
2
;
sdim
<=
SDIM
;
sdim
+=
2
)
V0
*=
2
*
CV_PI
/
sdim
;
V0
*=
2
*
CV_PI
/
sdim
;
if
(
fabs
(
V
-
V0
)
>
0.
2
*
fabs
(
V0
)
)
if
(
fabs
(
V
-
V0
)
>
0.
3
*
fabs
(
V0
)
)
{
{
ts
->
printf
(
CvTS
::
LOG
,
"RNG failed %d-dim sphere volume test (got %g instead of %g)
\n
"
,
ts
->
printf
(
CvTS
::
LOG
,
"RNG failed %d-dim sphere volume test (got %g instead of %g)
\n
"
,
SDIM
,
V
,
V0
);
SDIM
,
V
,
V0
);
ts
->
printf
(
CvTS
::
LOG
,
"depth = %d, N0 = %d
\n
"
,
depth
,
N0
);
ts
->
set_failed_test_info
(
CvTS
::
FAIL_INVALID_OUTPUT
);
ts
->
set_failed_test_info
(
CvTS
::
FAIL_INVALID_OUTPUT
);
return
;
return
;
}
}
...
...
tests/cxcore/src/cxcoretest_main.cpp
View file @
a2676b27
...
@@ -49,7 +49,7 @@ const char* blacklist[] =
...
@@ -49,7 +49,7 @@ const char* blacklist[] =
//"ds-graphscan", //ticket 504
//"ds-graphscan", //ticket 504
//"matrix-invert", //ticket 536
//"matrix-invert", //ticket 536
//"pca", //ticket 566
//"pca", //ticket 566
"rand"
,
//ticket 449
//
"rand", //ticket 449
0
0
};
};
...
...
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