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
a7faa9af
Commit
a7faa9af
authored
Jun 10, 2010
by
James Bowman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_moments checks for float members
parent
c11bc131
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
test.py
tests/python/test.py
+2
-1
No files found.
tests/python/test.py
View file @
a7faa9af
...
...
@@ -1789,7 +1789,8 @@ class AreaTests(OpenCVTests):
mo
=
cv
.
Moments
(
im
)
for
fld
in
[
"m00"
,
"m10"
,
"m01"
,
"m20"
,
"m11"
,
"m02"
,
"m30"
,
"m21"
,
"m12"
,
"m03"
,
"mu20"
,
"mu11"
,
"mu02"
,
"mu30"
,
"mu21"
,
"mu12"
,
"mu03"
,
"inv_sqrt_m00"
]:
self
.
assert_
(
isinstance
(
getattr
(
mo
,
fld
),
float
))
print
getattr
(
mo
,
fld
)
x
=
getattr
(
mo
,
fld
)
self
.
assert_
(
isinstance
(
x
,
float
))
orders
=
[]
for
x_order
in
range
(
4
):
...
...
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