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
07126d86
Commit
07126d86
authored
Feb 22, 2017
by
Hamdi Sahloul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create a float-type cloud when depth map is not double-type
parent
b527ab99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
depth_to_3d.cpp
modules/rgbd/src/depth_to_3d.cpp
+1
-7
No files found.
modules/rgbd/src/depth_to_3d.cpp
View file @
07126d86
...
...
@@ -232,14 +232,8 @@ namespace rgbd
depth
.
type
()
==
CV_64FC1
||
depth
.
type
()
==
CV_32FC1
||
depth
.
type
()
==
CV_16UC1
||
depth
.
type
()
==
CV_16SC1
);
CV_Assert
(
mask
.
empty
()
||
mask
.
channels
()
==
1
);
// TODO figure out what to do when types are different: convert or reject ?
cv
::
Mat
K_new
;
if
((
depth
.
depth
()
==
CV_32F
||
depth
.
depth
()
==
CV_64F
)
&&
depth
.
depth
()
!=
K
.
depth
())
{
K
.
convertTo
(
K_new
,
depth
.
depth
());
}
else
K_new
=
K
;
K
.
convertTo
(
K_new
,
depth
.
depth
()
==
CV_64F
?
CV_64F
:
CV_32F
);
// issue #1021
// Create 3D points in one go.
if
(
!
mask
.
empty
())
...
...
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