tinkercalib 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,211 +0,0 @@
1
- # This file is generated by gyp; do not edit.
2
-
3
- TOOLSET := target
4
- TARGET := tinkercalib
5
- DEFS_Debug := \
6
- '-DNODE_GYP_MODULE_NAME=tinkercalib' \
7
- '-DUSING_UV_SHARED=1' \
8
- '-DUSING_V8_SHARED=1' \
9
- '-DV8_DEPRECATION_WARNINGS=1' \
10
- '-D_DARWIN_USE_64_BIT_INODE=1' \
11
- '-D_LARGEFILE_SOURCE' \
12
- '-D_FILE_OFFSET_BITS=64' \
13
- '-DBUILDING_NODE_EXTENSION' \
14
- '-DDEBUG' \
15
- '-D_DEBUG' \
16
- '-DV8_ENABLE_CHECKS'
17
-
18
- # Flags passed to all source files.
19
- CFLAGS_Debug := \
20
- -O0 \
21
- -gdwarf-2 \
22
- -mmacosx-version-min=10.7 \
23
- -arch x86_64 \
24
- -Wall \
25
- -Wendif-labels \
26
- -W \
27
- -Wno-unused-parameter
28
-
29
- # Flags passed to only C files.
30
- CFLAGS_C_Debug := \
31
- -fno-strict-aliasing
32
-
33
- # Flags passed to only C++ files.
34
- CFLAGS_CC_Debug := \
35
- -std=gnu++0x \
36
- -stdlib=libc++ \
37
- -fno-rtti \
38
- -fno-exceptions \
39
- -fno-threadsafe-statics \
40
- -fno-strict-aliasing
41
-
42
- # Flags passed to only ObjC files.
43
- CFLAGS_OBJC_Debug :=
44
-
45
- # Flags passed to only ObjC++ files.
46
- CFLAGS_OBJCC_Debug :=
47
-
48
- INCS_Debug := \
49
- -I/Users/zufferey/.node-gyp/9.1.0/include/node \
50
- -I/Users/zufferey/.node-gyp/9.1.0/src \
51
- -I/Users/zufferey/.node-gyp/9.1.0/deps/uv/include \
52
- -I/Users/zufferey/.node-gyp/9.1.0/deps/v8/include \
53
- -I/usr/local/include
54
-
55
- DEFS_Release := \
56
- '-DNODE_GYP_MODULE_NAME=tinkercalib' \
57
- '-DUSING_UV_SHARED=1' \
58
- '-DUSING_V8_SHARED=1' \
59
- '-DV8_DEPRECATION_WARNINGS=1' \
60
- '-D_DARWIN_USE_64_BIT_INODE=1' \
61
- '-D_LARGEFILE_SOURCE' \
62
- '-D_FILE_OFFSET_BITS=64' \
63
- '-DBUILDING_NODE_EXTENSION'
64
-
65
- # Flags passed to all source files.
66
- CFLAGS_Release := \
67
- -Os \
68
- -gdwarf-2 \
69
- -mmacosx-version-min=10.7 \
70
- -arch x86_64 \
71
- -Wall \
72
- -Wendif-labels \
73
- -W \
74
- -Wno-unused-parameter
75
-
76
- # Flags passed to only C files.
77
- CFLAGS_C_Release := \
78
- -fno-strict-aliasing
79
-
80
- # Flags passed to only C++ files.
81
- CFLAGS_CC_Release := \
82
- -std=gnu++0x \
83
- -stdlib=libc++ \
84
- -fno-rtti \
85
- -fno-exceptions \
86
- -fno-threadsafe-statics \
87
- -fno-strict-aliasing
88
-
89
- # Flags passed to only ObjC files.
90
- CFLAGS_OBJC_Release :=
91
-
92
- # Flags passed to only ObjC++ files.
93
- CFLAGS_OBJCC_Release :=
94
-
95
- INCS_Release := \
96
- -I/Users/zufferey/.node-gyp/9.1.0/include/node \
97
- -I/Users/zufferey/.node-gyp/9.1.0/src \
98
- -I/Users/zufferey/.node-gyp/9.1.0/deps/uv/include \
99
- -I/Users/zufferey/.node-gyp/9.1.0/deps/v8/include \
100
- -I/usr/local/include
101
-
102
- OBJS := \
103
- $(obj).target/$(TARGET)/src/tinkerCalib.o \
104
- $(obj).target/$(TARGET)/src/calibration.o \
105
- $(obj).target/$(TARGET)/src/posConverter.o
106
-
107
- # Add to the list of files we specially track dependencies for.
108
- all_deps += $(OBJS)
109
-
110
- # CFLAGS et al overrides must be target-local.
111
- # See "Target-specific Variable Values" in the GNU Make manual.
112
- $(OBJS): TOOLSET := $(TOOLSET)
113
- $(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
114
- $(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
115
- $(OBJS): GYP_OBJCFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))
116
- $(OBJS): GYP_OBJCXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))
117
-
118
- # Suffix rules, putting all outputs into $(obj).
119
-
120
- $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
121
- @$(call do_cmd,cxx,1)
122
-
123
- $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cpp FORCE_DO_CMD
124
- @$(call do_cmd,cxx,1)
125
-
126
- # Try building from generated source, too.
127
-
128
- $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
129
- @$(call do_cmd,cxx,1)
130
-
131
- $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cpp FORCE_DO_CMD
132
- @$(call do_cmd,cxx,1)
133
-
134
- $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
135
- @$(call do_cmd,cxx,1)
136
-
137
- $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cpp FORCE_DO_CMD
138
- @$(call do_cmd,cxx,1)
139
-
140
- # End of this set of suffix rules
141
- ### Rules for final target.
142
- LDFLAGS_Debug := \
143
- -undefined dynamic_lookup \
144
- -Wl,-no_pie \
145
- -Wl,-search_paths_first \
146
- -mmacosx-version-min=10.7 \
147
- -arch x86_64 \
148
- -L$(builddir) \
149
- -stdlib=libc++
150
-
151
- LIBTOOLFLAGS_Debug := \
152
- -undefined dynamic_lookup \
153
- -Wl,-no_pie \
154
- -Wl,-search_paths_first
155
-
156
- LDFLAGS_Release := \
157
- -undefined dynamic_lookup \
158
- -Wl,-no_pie \
159
- -Wl,-search_paths_first \
160
- -mmacosx-version-min=10.7 \
161
- -arch x86_64 \
162
- -L$(builddir) \
163
- -stdlib=libc++
164
-
165
- LIBTOOLFLAGS_Release := \
166
- -undefined dynamic_lookup \
167
- -Wl,-no_pie \
168
- -Wl,-search_paths_first
169
-
170
- LIBS := \
171
- -L/usr/local/Cellar/opencv@2/2.4.13.5/lib \
172
- -lopencv_calib3d \
173
- -lopencv_contrib \
174
- -lopencv_core \
175
- -lopencv_features2d \
176
- -lopencv_flann \
177
- -lopencv_gpu \
178
- -lopencv_highgui \
179
- -lopencv_imgproc \
180
- -lopencv_legacy \
181
- -lopencv_ml \
182
- -lopencv_nonfree \
183
- -lopencv_objdetect \
184
- -lopencv_ocl \
185
- -lopencv_photo \
186
- -lopencv_stitching \
187
- -lopencv_superres \
188
- -lopencv_ts \
189
- -lopencv_video \
190
- -lopencv_videostab
191
-
192
- $(builddir)/tinkercalib.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
193
- $(builddir)/tinkercalib.node: LIBS := $(LIBS)
194
- $(builddir)/tinkercalib.node: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))
195
- $(builddir)/tinkercalib.node: TOOLSET := $(TOOLSET)
196
- $(builddir)/tinkercalib.node: $(OBJS) FORCE_DO_CMD
197
- $(call do_cmd,solink_module)
198
-
199
- all_deps += $(builddir)/tinkercalib.node
200
- # Add target alias
201
- .PHONY: tinkercalib
202
- tinkercalib: $(builddir)/tinkercalib.node
203
-
204
- # Short alias for building this executable.
205
- .PHONY: tinkercalib.node
206
- tinkercalib.node: $(builddir)/tinkercalib.node
207
-
208
- # Add executable to "all" target.
209
- .PHONY: all
210
- all: $(builddir)/tinkercalib.node
211
-
package/build.sh DELETED
@@ -1,9 +0,0 @@
1
- #!/bin/sh
2
-
3
- node-gyp configure
4
- node-gyp build
5
-
6
- node src/test.js
7
- #cp -R ../simpliCalib ../../meteor/.meteor/local/build/programs/server/node_modules/
8
-
9
- echo "done."
package/src/test.js DELETED
@@ -1,57 +0,0 @@
1
- var addon = require('../build/Release/tinkercalib');
2
-
3
- var result = addon.calibrate({
4
- nearPlane: 100,
5
- farPlane: 1200,
6
- chessboardSize: [10, 6],
7
- chessboardCellSize: 25,
8
- filename: 'testData/calib.png',
9
- intrinsic: [1061.64, 0.0, 449.264, 0.0, 1061.64, 361.303, 0.0, 0.0, 1.0],
10
- distortion: [0.00436111, 1.4013e-45, 0.0, 7.54728e-34, 2.8026e-45]
11
- });
12
-
13
- console.log("Success: ", result.success);
14
- if (result.success) {
15
- console.log("Projection: ", result.projection);
16
- console.log("Modelview: ", result.modelview);
17
- }
18
-
19
- result = addon.calibrateFromPoints({
20
- frameSize: [ 640, 480 ],
21
- imagePoints: [
22
- 489.51717499999995,
23
- 59.588125,
24
- 327.63941666666665,
25
- 57.302975,
26
- 165.40420833333337,
27
- 53.272125,
28
- 481.890575,
29
- 162.326525,
30
- 325.59499166666666,
31
- 159.64954999999998,
32
- 169.28835833333338,
33
- 156.7088,
34
- 475.0754,
35
- 258.10405000000003,
36
- 323.73726666666664,
37
- 255.4805,
38
- 172.2098333333334,
39
- 253.03025
40
- ],
41
- objectPoints: [
42
- -125, -80, 0, -80, 125, -80, -125, 0, 0, 0, 125, 0, -125, 80, 0, 80, 125, 80
43
- ],
44
- intrinsic: [ 846.538, 0, 331.012, 0, 846.538, 228.192, 0, 0, 1 ],
45
- distortion: [ 0, 0, 0, 0, 0 ],
46
- nearPlane: 1,
47
- farPlane: 12000,
48
- chessboardSize: [ 10, 6 ],
49
- chessboardCellSize: 25
50
- });
51
-
52
- console.log("Success points: ", result.success);
53
- if (result.success) {
54
- console.log("Projection: ", result.camera);
55
- console.log("Modelview: ", result.renderer);
56
- }
57
-