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
f363c835
Commit
f363c835
authored
Jun 13, 2012
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed compilation error and some warnings if with_openni is true
parent
7b544d2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
cap_openni.cpp
modules/highgui/src/cap_openni.cpp
+22
-21
No files found.
modules/highgui/src/cap_openni.cpp
View file @
f363c835
...
...
@@ -99,12 +99,12 @@ const std::string XMLConfig =
class
ApproximateSyncGrabber
{
public
:
ApproximateSyncGrabber
(
xn
::
Context
&
context
,
xn
::
DepthGenerator
&
depthGenerator
,
xn
::
ImageGenerator
&
imageGenerator
,
int
maxBufferSize
,
bool
isCircleBuffer
,
int
maxTimeDuration
)
:
context
(
context
),
depthGenerator
(
depthGenerator
),
imageGenerator
(
imageGenerator
),
maxBufferSize
(
maxBufferSize
),
isCircleBuffer
(
isCircleBuffer
),
maxTimeDuration
(
maxTimeDuration
)
ApproximateSyncGrabber
(
xn
::
Context
&
_
context
,
xn
::
DepthGenerator
&
_
depthGenerator
,
xn
::
ImageGenerator
&
_
imageGenerator
,
int
_maxBufferSize
,
bool
_isCircleBuffer
,
int
_
maxTimeDuration
)
:
context
(
_context
),
depthGenerator
(
_depthGenerator
),
imageGenerator
(
_
imageGenerator
),
maxBufferSize
(
_maxBufferSize
),
isCircleBuffer
(
_isCircleBuffer
),
maxTimeDuration
(
_
maxTimeDuration
)
{
task
=
0
;
...
...
@@ -179,8 +179,8 @@ private:
class
ApproximateSynchronizerBase
{
public
:
ApproximateSynchronizerBase
(
ApproximateSyncGrabber
&
approxSyncGrabber
)
:
approxSyncGrabber
(
approxSyncGrabber
),
isDepthFilled
(
false
),
isImageFilled
(
false
)
ApproximateSynchronizerBase
(
ApproximateSyncGrabber
&
_
approxSyncGrabber
)
:
approxSyncGrabber
(
_
approxSyncGrabber
),
isDepthFilled
(
false
),
isImageFilled
(
false
)
{}
virtual
~
ApproximateSynchronizerBase
()
{}
...
...
@@ -199,8 +199,8 @@ private:
if
(
status
!=
XN_STATUS_OK
)
continue
;
xn
::
DepthMetaData
depth
;
xn
::
ImageMetaData
image
;
//
xn::DepthMetaData depth;
//
xn::ImageMetaData image;
approxSyncGrabber
.
depthGenerator
.
GetMetaData
(
depth
);
approxSyncGrabber
.
imageGenerator
.
GetMetaData
(
image
);
...
...
@@ -258,8 +258,8 @@ private:
class
ApproximateSynchronizer
:
public
ApproximateSynchronizerBase
{
public
:
ApproximateSynchronizer
(
ApproximateSyncGrabber
&
approxSyncGrabber
)
:
ApproximateSynchronizerBase
(
approxSyncGrabber
)
ApproximateSynchronizer
(
ApproximateSyncGrabber
&
_
approxSyncGrabber
)
:
ApproximateSynchronizerBase
(
_
approxSyncGrabber
)
{}
virtual
bool
isSpinContinue
()
const
...
...
@@ -461,6 +461,8 @@ protected:
static
const
int
outputMapsTypesCount
=
7
;
static
XnMapOutputMode
defaultMapOutputMode
();
IplImage
*
retrieveDepthMap
();
IplImage
*
retrievePointCloudMap
();
IplImage
*
retrieveDisparityMap
();
...
...
@@ -524,15 +526,14 @@ bool CvCapture_OpenNI::isOpened() const
return
isContextOpened
;
}
// static XnMapOutputMode defaultMapOutputMode()
// {
// XnMapOutputMode mode;
// mode.nXRes = XN_VGA_X_RES;
// mode.nYRes = XN_VGA_Y_RES;
// mode.nFPS = 30;
// return mode;
// }
XnMapOutputMode
CvCapture_OpenNI
::
defaultMapOutputMode
()
{
XnMapOutputMode
mode
;
mode
.
nXRes
=
XN_VGA_X_RES
;
mode
.
nYRes
=
XN_VGA_Y_RES
;
mode
.
nFPS
=
30
;
return
mode
;
}
CvCapture_OpenNI
::
CvCapture_OpenNI
(
int
index
)
{
...
...
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