Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
0b348ea9
Commit
0b348ea9
authored
Dec 17, 2015
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RGBD: enabled normals test, removed some tabs
parent
9c413930
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
normal.cpp
modules/rgbd/src/normal.cpp
+1
-1
test_normal.cpp
modules/rgbd/test/test_normal.cpp
+4
-4
No files found.
modules/rgbd/src/normal.cpp
View file @
0b348ea9
...
...
@@ -527,7 +527,7 @@ multiply_by_K_inv(const Matx<T, 3, 3> & K_inv, U a, U b, U c, Vec<T, 3> &res)
// Get the mapping function for SRI
float
min_theta
=
(
float
)
std
::
asin
(
sin_theta
(
0
,
0
)),
max_theta
=
(
float
)
std
::
asin
(
sin_theta
(
0
,
cols_
-
1
));
float
min_phi
=
(
float
)
std
::
asin
(
sin_phi
(
0
,
cols_
/
2
-
1
)),
max_phi
=
(
float
)
std
::
asin
(
sin_phi
(
rows_
-
1
,
cols_
/
2
-
1
));
float
min_phi
=
(
float
)
std
::
asin
(
sin_phi
(
0
,
cols_
/
2
-
1
)),
max_phi
=
(
float
)
std
::
asin
(
sin_phi
(
rows_
-
1
,
cols_
/
2
-
1
));
std
::
vector
<
Point3f
>
points3d
(
cols_
*
rows_
);
R_hat_
.
create
(
rows_
,
cols_
);
...
...
modules/rgbd/test/test_normal.cpp
View file @
0b348ea9
...
...
@@ -287,9 +287,9 @@ protected:
errors
[
1
][
0
]
=
0.02
f
;
errors
[
1
][
1
]
=
0.04
f
;
break
;
default
:
method
=
(
RgbdNormals
::
RGBD_NORMALS_METHOD
)
-
1
;
CV_Error
(
0
,
""
);
default
:
method
=
(
RgbdNormals
::
RGBD_NORMALS_METHOD
)
-
1
;
CV_Error
(
0
,
""
);
}
for
(
unsigned
char
j
=
0
;
j
<
2
;
++
j
)
...
...
@@ -513,7 +513,7 @@ protected:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
TEST
(
DISABLED_
Rgbd_Normals
,
compute
)
TEST
(
Rgbd_Normals
,
compute
)
{
cv
::
rgbd
::
CV_RgbdNormalsTest
test
;
test
.
safe_run
();
...
...
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