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
66b90d19
Commit
66b90d19
authored
Oct 31, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #81 from stephenfox/master
parents
468eefe0
9f8ce906
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
ug_highgui.rst
doc/user_guide/ug_highgui.rst
+10
-10
openni_capture.cpp
samples/cpp/openni_capture.cpp
+7
-7
No files found.
doc/user_guide/ug_highgui.rst
View file @
66b90d19
...
...
@@ -41,15 +41,15 @@ VideoCapture can retrieve the following data:
#.
data given from depth generator:
* ``OPENNI_DEPTH_MAP`` - depth values in mm (CV_16UC1)
* ``OPENNI_POINT_CLOUD_MAP`` - XYZ in meters (CV_32FC3)
* ``OPENNI_DISPARITY_MAP`` - disparity in pixels (CV_8UC1)
* ``OPENNI_DISPARITY_MAP_32F`` - disparity in pixels (CV_32FC1)
* ``OPENNI_VALID_DEPTH_MASK`` - mask of valid pixels (not ocluded, not shaded etc.) (CV_8UC1)
* ``
CV_CAP_
OPENNI_DEPTH_MAP`` - depth values in mm (CV_16UC1)
* ``
CV_CAP_
OPENNI_POINT_CLOUD_MAP`` - XYZ in meters (CV_32FC3)
* ``
CV_CAP_
OPENNI_DISPARITY_MAP`` - disparity in pixels (CV_8UC1)
* ``
CV_CAP_
OPENNI_DISPARITY_MAP_32F`` - disparity in pixels (CV_32FC1)
* ``
CV_CAP_
OPENNI_VALID_DEPTH_MASK`` - mask of valid pixels (not ocluded, not shaded etc.) (CV_8UC1)
#.
data given from RGB image generator:
* ``OPENNI_BGR_IMAGE`` - color image (CV_8UC3)
* ``OPENNI_GRAY_IMAGE`` - gray image (CV_8UC1)
* ``
CV_CAP_
OPENNI_BGR_IMAGE`` - color image (CV_8UC3)
* ``
CV_CAP_
OPENNI_GRAY_IMAGE`` - gray image (CV_8UC1)
In order to get depth map from depth sensor use ``VideoCapture::operator >>``, e. g. ::
...
...
@@ -69,12 +69,12 @@ For getting several data maps use ``VideoCapture::grab`` and ``VideoCapture::ret
for(;;)
{
Mat depthMap;
Mat
rgbImage
Mat
bgrImage;
capture.grab();
capture.retrieve( depthMap, OPENNI_DEPTH_MAP );
capture.retrieve( bgrImage, OPENNI_BGR_IMAGE );
capture.retrieve( depthMap,
CV_CAP_
OPENNI_DEPTH_MAP );
capture.retrieve( bgrImage,
CV_CAP_
OPENNI_BGR_IMAGE );
if( waitKey( 30 ) >= 0 )
break;
...
...
samples/cpp/openni_capture.cpp
View file @
66b90d19
...
...
@@ -12,14 +12,14 @@ static void help()
"The user gets some of the supported output images.
\n
"
"
\n
All supported output map types:
\n
"
"1.) Data given from depth generator
\n
"
" OPENNI_DEPTH_MAP - depth values in mm (CV_16UC1)
\n
"
" OPENNI_POINT_CLOUD_MAP - XYZ in meters (CV_32FC3)
\n
"
" OPENNI_DISPARITY_MAP - disparity in pixels (CV_8UC1)
\n
"
" OPENNI_DISPARITY_MAP_32F - disparity in pixels (CV_32FC1)
\n
"
" OPENNI_VALID_DEPTH_MASK - mask of valid pixels (not ocluded, not shaded etc.) (CV_8UC1)
\n
"
"
CV_CAP_
OPENNI_DEPTH_MAP - depth values in mm (CV_16UC1)
\n
"
"
CV_CAP_
OPENNI_POINT_CLOUD_MAP - XYZ in meters (CV_32FC3)
\n
"
"
CV_CAP_
OPENNI_DISPARITY_MAP - disparity in pixels (CV_8UC1)
\n
"
"
CV_CAP_
OPENNI_DISPARITY_MAP_32F - disparity in pixels (CV_32FC1)
\n
"
"
CV_CAP_
OPENNI_VALID_DEPTH_MASK - mask of valid pixels (not ocluded, not shaded etc.) (CV_8UC1)
\n
"
"2.) Data given from RGB image generator
\n
"
" OPENNI_BGR_IMAGE - color image (CV_8UC3)
\n
"
" OPENNI_GRAY_IMAGE - gray image (CV_8UC1)
\n
"
"
CV_CAP_
OPENNI_BGR_IMAGE - color image (CV_8UC3)
\n
"
"
CV_CAP_
OPENNI_GRAY_IMAGE - gray image (CV_8UC1)
\n
"
<<
endl
;
}
...
...
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