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
700c1665
Commit
700c1665
authored
Mar 29, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed 2 spontaneously failing tests
parent
f5152500
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
test_arithm.cpp
modules/core/test/test_arithm.cpp
+3
-3
test_boundingrect.cpp
modules/imgproc/test/test_boundingrect.cpp
+1
-1
No files found.
modules/core/test/test_arithm.cpp
View file @
700c1665
...
...
@@ -1448,7 +1448,7 @@ protected:
compare
(
mask
,
0
,
mask1
,
CMP_EQ
);
a1
.
setTo
(
0
,
mask1
);
b1
.
setTo
(
0
,
mask1
);
if
(
op
==
0
)
{
add
(
a
,
b
,
c
,
mask
);
...
...
@@ -1476,12 +1476,12 @@ protected:
}
Mat
d1
;
d
.
convertTo
(
d1
,
depth
);
CV_Assert
(
norm
(
c
,
d1
,
CV_C
)
==
0
);
CV_Assert
(
norm
(
c
,
d1
,
CV_C
)
<=
DBL_EPSILON
);
}
}
catch
(...)
{
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_MISMATCH
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_MISMATCH
);
}
}
};
...
...
modules/imgproc/test/test_boundingrect.cpp
View file @
700c1665
...
...
@@ -89,7 +89,7 @@ template <typename T> cv::Rect CV_BoundingRectTest::get_bounding_rect(const vect
max_h
=
std
::
max
<
T
>
(
src
.
at
(
i
).
y
,
max_h
);
}
return
Rect
((
int
)
min_w
,
(
int
)
min_h
,
(
int
)
(
floor
(
1.0
*
(
max_w
-
min_w
))
+
1
),
(
int
)(
floor
(
1.0
*
(
max_h
-
min_h
))
+
1
)
);
return
Rect
((
int
)
min_w
,
(
int
)
min_h
,
(
int
)
max_w
-
(
int
)
min_w
+
1
,
(
int
)
max_h
-
(
int
)
min_h
+
1
);
}
template
<
typename
T
>
bool
CV_BoundingRectTest
::
checking_function_work
(
vector
<
Point_
<
T
>
>&
src
,
int
type
)
...
...
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