hornetseye-kinect 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/ext/kinectinput.cc +21 -2
- metadata +4 -25
data/Rakefile
CHANGED
data/ext/kinectinput.cc
CHANGED
@@ -15,6 +15,23 @@
|
|
15
15
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
16
16
|
#include "kinectinput.hh"
|
17
17
|
|
18
|
+
#ifndef FREENECT_FRAME_W
|
19
|
+
#define FREENECT_FRAME_W 640
|
20
|
+
#endif
|
21
|
+
#ifndef FREENECT_FRAME_H
|
22
|
+
#define FREENECT_FRAME_H 480
|
23
|
+
#endif
|
24
|
+
#ifndef FREENECT_FRAME_PIX
|
25
|
+
#define FREENECT_FRAME_PIX (FREENECT_FRAME_W * FREENECT_FRAME_H)
|
26
|
+
#endif
|
27
|
+
#ifndef FREENECT_VIDEO_RGB_SIZE
|
28
|
+
#define FREENECT_VIDEO_RGB_SIZE (FREENECT_FRAME_PIX*3)
|
29
|
+
#endif
|
30
|
+
#ifndef FREENECT_DEPTH_11BIT_SIZE
|
31
|
+
#define FREENECT_DEPTH_11BIT_SIZE (FREENECT_FRAME_PIX*2)
|
32
|
+
#endif
|
33
|
+
|
34
|
+
|
18
35
|
using namespace std;
|
19
36
|
|
20
37
|
VALUE KinectInput::cRubyClass = Qnil;
|
@@ -36,8 +53,10 @@ KinectInput::KinectInput( KinectContextPtr context, int node ) throw (Error):
|
|
36
53
|
m_depth[i] = (char *)malloc( FREENECT_DEPTH_11BIT_SIZE );
|
37
54
|
};
|
38
55
|
instances[ m_device ] = this;
|
39
|
-
freenect_set_depth_format( m_device, FREENECT_DEPTH_11BIT );
|
40
|
-
freenect_set_video_format( m_device, FREENECT_VIDEO_RGB );
|
56
|
+
// freenect_set_depth_format( m_device, FREENECT_DEPTH_11BIT );
|
57
|
+
// freenect_set_video_format( m_device, FREENECT_VIDEO_RGB );
|
58
|
+
freenect_set_video_mode(m_device, freenect_find_video_mode(FREENECT_RESOLUTION_MEDIUM, FREENECT_VIDEO_RGB));
|
59
|
+
freenect_set_depth_mode(m_device, freenect_find_depth_mode(FREENECT_RESOLUTION_MEDIUM, FREENECT_DEPTH_11BIT));
|
41
60
|
freenect_set_depth_buffer( m_device, m_rgb[0] );
|
42
61
|
freenect_set_video_buffer( m_device, m_rgb[0] );
|
43
62
|
freenect_set_depth_callback( m_device, staticDepthCallBack );
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hornetseye-kinect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 3
|
8
|
-
- 0
|
9
|
-
version: 0.3.0
|
4
|
+
prerelease:
|
5
|
+
version: 0.4.0
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Jan Wedekind
|
@@ -14,8 +10,7 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date: 2011-
|
18
|
-
default_executable:
|
13
|
+
date: 2011-11-04 00:00:00 Z
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: malloc
|
@@ -25,9 +20,6 @@ dependencies:
|
|
25
20
|
requirements:
|
26
21
|
- - ~>
|
27
22
|
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 1
|
31
23
|
version: "1.1"
|
32
24
|
type: :runtime
|
33
25
|
version_requirements: *id001
|
@@ -39,9 +31,6 @@ dependencies:
|
|
39
31
|
requirements:
|
40
32
|
- - ~>
|
41
33
|
- !ruby/object:Gem::Version
|
42
|
-
segments:
|
43
|
-
- 0
|
44
|
-
- 23
|
45
34
|
version: "0.23"
|
46
35
|
type: :runtime
|
47
36
|
version_requirements: *id002
|
@@ -53,9 +42,6 @@ dependencies:
|
|
53
42
|
requirements:
|
54
43
|
- - ~>
|
55
44
|
- !ruby/object:Gem::Version
|
56
|
-
segments:
|
57
|
-
- 0
|
58
|
-
- 11
|
59
45
|
version: "0.11"
|
60
46
|
type: :runtime
|
61
47
|
version_requirements: *id003
|
@@ -67,8 +53,6 @@ dependencies:
|
|
67
53
|
requirements:
|
68
54
|
- - ">="
|
69
55
|
- !ruby/object:Gem::Version
|
70
|
-
segments:
|
71
|
-
- 0
|
72
56
|
version: "0"
|
73
57
|
type: :development
|
74
58
|
version_requirements: *id004
|
@@ -98,7 +82,6 @@ files:
|
|
98
82
|
- ext/error.hh
|
99
83
|
- ext/rubyinc.hh
|
100
84
|
- ext/rubytools.tcc
|
101
|
-
has_rdoc: yard
|
102
85
|
homepage: http://wedesoft.github.com/hornetseye-kinect/
|
103
86
|
licenses: []
|
104
87
|
|
@@ -113,21 +96,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
96
|
requirements:
|
114
97
|
- - ">="
|
115
98
|
- !ruby/object:Gem::Version
|
116
|
-
segments:
|
117
|
-
- 0
|
118
99
|
version: "0"
|
119
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
101
|
none: false
|
121
102
|
requirements:
|
122
103
|
- - ">="
|
123
104
|
- !ruby/object:Gem::Version
|
124
|
-
segments:
|
125
|
-
- 0
|
126
105
|
version: "0"
|
127
106
|
requirements: []
|
128
107
|
|
129
108
|
rubyforge_project: hornetseye
|
130
|
-
rubygems_version: 1.
|
109
|
+
rubygems_version: 1.8.5
|
131
110
|
signing_key:
|
132
111
|
specification_version: 3
|
133
112
|
summary: Acquisition of images and depth maps using libfreenect
|