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
1242a661
Commit
1242a661
authored
Jul 20, 2014
by
Lars Glud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Openni2 support
parent
4dcd37f6
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
20 deletions
+18
-20
CMakeLists.txt
modules/highgui/CMakeLists.txt
+0
-6
highgui.hpp
modules/highgui/include/opencv2/highgui.hpp
+0
-5
highgui_c.h
modules/highgui/include/opencv2/highgui/highgui_c.h
+0
-4
CMakeLists.txt
modules/videoio/CMakeLists.txt
+6
-0
videoio.hpp
modules/videoio/include/opencv2/videoio.hpp
+5
-2
videoio_c.h
modules/videoio/include/opencv2/videoio/videoio_c.h
+5
-1
cap_openni2.cpp
modules/videoio/src/cap_openni2.cpp
+2
-2
No files found.
modules/highgui/CMakeLists.txt
View file @
1242a661
...
@@ -72,12 +72,6 @@ elseif(HAVE_COCOA)
...
@@ -72,12 +72,6 @@ elseif(HAVE_COCOA)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework Cocoa"
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework Cocoa"
)
endif
()
endif
()
if
(
HAVE_OPENNI2
)
list
(
APPEND highgui_srcs src/cap_openni2.cpp
)
ocv_include_directories
(
${
OPENNI2_INCLUDE_DIR
}
)
list
(
APPEND HIGHGUI_LIBRARIES
${
OPENNI2_LIBRARY
}
)
endif
(
HAVE_OPENNI2
)
if
(
UNIX
)
if
(
UNIX
)
#these variables are set by CHECK_MODULE macro
#these variables are set by CHECK_MODULE macro
foreach
(
P
${
HIGHGUI_INCLUDE_DIRS
}
)
foreach
(
P
${
HIGHGUI_INCLUDE_DIRS
}
)
...
...
modules/highgui/include/opencv2/highgui.hpp
View file @
1242a661
...
@@ -201,9 +201,4 @@ CV_EXPORTS int createButton( const String& bar_name, ButtonCallback on_change,
...
@@ -201,9 +201,4 @@ CV_EXPORTS int createButton( const String& bar_name, ButtonCallback on_change,
bool
initial_button_state
=
false
);
bool
initial_button_state
=
false
);
}
// cv
}
// cv
CAP_OPENNI2
=
1600
// OpenNI2 (for Kinect)
CAP_PROP_OPENNI_OUTPUT_MODE
=
100
,
CAP_PROP_OPENNI2_SYNC
=
110
,
CAP_PROP_OPENNI2_MIRROR
=
111
#endif
#endif
modules/highgui/include/opencv2/highgui/highgui_c.h
View file @
1242a661
...
@@ -208,10 +208,6 @@ CVAPI(void) cvUpdateWindow(const char* window_name);
...
@@ -208,10 +208,6 @@ CVAPI(void) cvUpdateWindow(const char* window_name);
/****************************************************************************************\
/****************************************************************************************\
CV_CAP_OPENNI2 = 1600 // OpenNI2 (for Kinect)
CV_CAP_PROP_OPENNI2_SYNC = 110,
CV_CAP_PROP_OPENNI2_MIRROR = 111,
* Obsolete functions/synonyms *
* Obsolete functions/synonyms *
\****************************************************************************************/
\****************************************************************************************/
...
...
modules/videoio/CMakeLists.txt
View file @
1242a661
...
@@ -78,6 +78,12 @@ if(HAVE_OPENNI)
...
@@ -78,6 +78,12 @@ if(HAVE_OPENNI)
list
(
APPEND VIDEOIO_LIBRARIES
${
OPENNI_LIBRARY
}
)
list
(
APPEND VIDEOIO_LIBRARIES
${
OPENNI_LIBRARY
}
)
endif
(
HAVE_OPENNI
)
endif
(
HAVE_OPENNI
)
if
(
HAVE_OPENNI2
)
list
(
APPEND videoio_srcs src/cap_openni2.cpp
)
ocv_include_directories
(
${
OPENNI2_INCLUDE_DIR
}
)
list
(
APPEND VIDEOIO_LIBRARIES
${
OPENNI2_LIBRARY
}
)
endif
(
HAVE_OPENNI2
)
if
(
HAVE_opencv_androidcamera
)
if
(
HAVE_opencv_androidcamera
)
list
(
APPEND videoio_srcs src/cap_android.cpp
)
list
(
APPEND videoio_srcs src/cap_android.cpp
)
add_definitions
(
-DHAVE_ANDROID_NATIVE_CAMERA
)
#TODO: remove this line
add_definitions
(
-DHAVE_ANDROID_NATIVE_CAMERA
)
#TODO: remove this line
...
...
modules/videoio/include/opencv2/videoio.hpp
View file @
1242a661
...
@@ -75,7 +75,8 @@ enum { CAP_ANY = 0, // autodetect
...
@@ -75,7 +75,8 @@ enum { CAP_ANY = 0, // autodetect
CAP_AVFOUNDATION
=
1200
,
// AVFoundation framework for iOS (OS X Lion will have the same API)
CAP_AVFOUNDATION
=
1200
,
// AVFoundation framework for iOS (OS X Lion will have the same API)
CAP_GIGANETIX
=
1300
,
// Smartek Giganetix GigEVisionSDK
CAP_GIGANETIX
=
1300
,
// Smartek Giganetix GigEVisionSDK
CAP_MSMF
=
1400
,
// Microsoft Media Foundation (via videoInput)
CAP_MSMF
=
1400
,
// Microsoft Media Foundation (via videoInput)
CAP_INTELPERC
=
1500
// Intel Perceptual Computing SDK
CAP_INTELPERC
=
1500
,
// Intel Perceptual Computing SDK
CAP_OPENNI2
=
1600
// OpenNI2 (for Kinect)
};
};
// generic properties (based on DC1394 properties)
// generic properties (based on DC1394 properties)
...
@@ -149,7 +150,9 @@ enum { CAP_PROP_OPENNI_OUTPUT_MODE = 100,
...
@@ -149,7 +150,9 @@ enum { CAP_PROP_OPENNI_OUTPUT_MODE = 100,
CAP_PROP_OPENNI_MAX_BUFFER_SIZE
=
106
,
CAP_PROP_OPENNI_MAX_BUFFER_SIZE
=
106
,
CAP_PROP_OPENNI_CIRCLE_BUFFER
=
107
,
CAP_PROP_OPENNI_CIRCLE_BUFFER
=
107
,
CAP_PROP_OPENNI_MAX_TIME_DURATION
=
108
,
CAP_PROP_OPENNI_MAX_TIME_DURATION
=
108
,
CAP_PROP_OPENNI_GENERATOR_PRESENT
=
109
CAP_PROP_OPENNI_GENERATOR_PRESENT
=
109
,
CAP_PROP_OPENNI2_SYNC
=
110
,
CAP_PROP_OPENNI2_MIRROR
=
111
};
};
// OpenNI shortcats
// OpenNI shortcats
...
...
modules/videoio/include/opencv2/videoio/videoio_c.h
View file @
1242a661
...
@@ -104,7 +104,9 @@ enum
...
@@ -104,7 +104,9 @@ enum
CV_CAP_GIGANETIX
=
1300
,
// Smartek Giganetix GigEVisionSDK
CV_CAP_GIGANETIX
=
1300
,
// Smartek Giganetix GigEVisionSDK
CV_CAP_INTELPERC
=
1500
// Intel Perceptual Computing SDK
CV_CAP_INTELPERC
=
1500
,
// Intel Perceptual Computing
CV_CAP_OPENNI2
=
1600
// OpenNI2 (for Kinect)
};
};
/* start capturing frames from camera: index = camera_index + domain_offset (CV_CAP_*) */
/* start capturing frames from camera: index = camera_index + domain_offset (CV_CAP_*) */
...
@@ -200,6 +202,8 @@ enum
...
@@ -200,6 +202,8 @@ enum
CV_CAP_PROP_OPENNI_MAX_TIME_DURATION
=
108
,
CV_CAP_PROP_OPENNI_MAX_TIME_DURATION
=
108
,
CV_CAP_PROP_OPENNI_GENERATOR_PRESENT
=
109
,
CV_CAP_PROP_OPENNI_GENERATOR_PRESENT
=
109
,
CV_CAP_PROP_OPENNI2_SYNC
=
110
,
CV_CAP_PROP_OPENNI2_MIRROR
=
111
,
CV_CAP_OPENNI_IMAGE_GENERATOR_PRESENT
=
CV_CAP_OPENNI_IMAGE_GENERATOR
+
CV_CAP_PROP_OPENNI_GENERATOR_PRESENT
,
CV_CAP_OPENNI_IMAGE_GENERATOR_PRESENT
=
CV_CAP_OPENNI_IMAGE_GENERATOR
+
CV_CAP_PROP_OPENNI_GENERATOR_PRESENT
,
CV_CAP_OPENNI_IMAGE_GENERATOR_OUTPUT_MODE
=
CV_CAP_OPENNI_IMAGE_GENERATOR
+
CV_CAP_PROP_OPENNI_OUTPUT_MODE
,
CV_CAP_OPENNI_IMAGE_GENERATOR_OUTPUT_MODE
=
CV_CAP_OPENNI_IMAGE_GENERATOR
+
CV_CAP_PROP_OPENNI_OUTPUT_MODE
,
...
...
modules/
highgui
/src/cap_openni2.cpp
→
modules/
videoio
/src/cap_openni2.cpp
View file @
1242a661
...
@@ -481,7 +481,7 @@ bool CvCapture_OpenNI2::setCommonProperty( int propIdx, double propValue )
...
@@ -481,7 +481,7 @@ bool CvCapture_OpenNI2::setCommonProperty( int propIdx, double propValue )
{
{
case
CV_CAP_PROP_OPENNI2_MIRROR
:
case
CV_CAP_PROP_OPENNI2_MIRROR
:
{
{
bool
mirror
=
propValue
>
0
?
true
:
false
;
bool
mirror
=
propValue
>
0
.0
?
true
:
false
;
isSet
=
color
.
setMirroringEnabled
(
mirror
)
==
openni
::
STATUS_OK
;
isSet
=
color
.
setMirroringEnabled
(
mirror
)
==
openni
::
STATUS_OK
;
isSet
=
depth
.
setMirroringEnabled
(
mirror
)
==
openni
::
STATUS_OK
;
isSet
=
depth
.
setMirroringEnabled
(
mirror
)
==
openni
::
STATUS_OK
;
}
}
...
@@ -492,7 +492,7 @@ bool CvCapture_OpenNI2::setCommonProperty( int propIdx, double propValue )
...
@@ -492,7 +492,7 @@ bool CvCapture_OpenNI2::setCommonProperty( int propIdx, double propValue )
isSet
=
setDepthGeneratorProperty
(
propIdx
,
propValue
);
isSet
=
setDepthGeneratorProperty
(
propIdx
,
propValue
);
break
;
break
;
case
CV_CAP_PROP_OPENNI2_SYNC
:
case
CV_CAP_PROP_OPENNI2_SYNC
:
isSet
=
device
.
setDepthColorSyncEnabled
(
propValue
)
==
openni
::
STATUS_OK
;
isSet
=
device
.
setDepthColorSyncEnabled
(
propValue
>
0.0
)
==
openni
::
STATUS_OK
;
break
;
break
;
default
:
default
:
CV_Error
(
CV_StsBadArg
,
cv
::
format
(
"Such parameter (propIdx=%d) isn't supported for setting.
\n
"
,
propIdx
)
);
CV_Error
(
CV_StsBadArg
,
cv
::
format
(
"Such parameter (propIdx=%d) isn't supported for setting.
\n
"
,
propIdx
)
);
...
...
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