1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
|
// Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the BSD.
// This source file is licensed as described in the file LICENSE, which
// you should have received as part of this distribution. The terms
// are also available at
// https://opensource.org/licenses/BSD-3-Clause
// Author: Shamika Mohanan
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
//mode(-1)
//lines(0)
//toolbox_title = "FOSSEE_Image_Processing_Toolbox";
//Build_64Bits = %t;
//path_builder = get_absolute_file_path('builder_gateway_cpp.sce');
Function_Names = [
"opencv_imread","opencv_imread";
// //"blur","opencv_blur";
// //"arrowedline","opencv_arrowedline";
// //"canny","opencv_canny";
// //"circle","opencv_circle";
// //"clipline","opencv_clipline";
// //"convexhull","opencv_convexhull";
// //"cornerEigenValsAndVecs","opencv_cornerEigenValsAndVecs";
// //"cornerHarris","opencv_cornerHarris";
// //"cornerMinEigenVal","opencv_cornerMinEigenVal";
// //"dilate","opencv_dilate";
// //"ellipse2poly","opencv_ellipse2poly";
// //"erode","opencv_erode";
// //"fillconvexpoly","opencv_fillconvexpoly";
// //"filter2D","opencv_filter2D";
// //"findContours","opencv_findContours";
// //"gaussianblur","opencv_gaussianblur";
// //"getStructuringElement","opencv_getStructuringElement";
// //"getTextSize","opencv_getTextSize";
// //"goodfeaturestotrack","opencv_goodfeaturestotrack";
// //"houghcircles","opencv_houghcircles";
// //"houghlines","opencv_houghlines";
// //"im2double","opencv_im2double";
// //"imcontrast","opencv_imcontrast";
"imcrop","opencv_imcrop";
"imresize","opencv_imresize";
"imsharpen","opencv_imsharpen";
"imwrite","opencv_imwrite";
// //"laplacian","opencv_laplacian";
// //"line","opencv_line";
// //"medianblur","opencv_medianblur";
// //"puttext","opencv_puttext";
// //"scharr","opencv_scharr";
// //"sobel","opencv_sobel";
// //"threshold","opencv_threshold";
// //"undistort","opencv_undistort";
// //"boundingRect","opencv_boundingRect";
// //"ellipse","opencv_ellipse";
// //"montage","opencv_montage";
// //"morphologyEx","opencv_morphologyEx";
// //"pyrDown","opencv_pyrDown";
// //"pyrUp","opencv_pyrUp";
// //"rectangle","opencv_rectangle";
// //"sepFilter2D","opencv_sepFilter2D";
// //"copymakeborder","opencv_copymakeborder";
// //"cvtColor","opencv_cvtColor";
// //"getgaussiankernel","opencv_getgaussiankernel";
// //"getrectsubpix","opencv_getrectsubpix";
// //"getrotationmatrix2D","opencv_getrotationmatrix2D";
// //"houghlinesp","opencv_houghlinesp";
// //"demosaic", "opencv_demosaic";
// //"imfindcircles", "opencv_imfindcircles";
// "opencv_detectHarrisFeatures", "opencv_detectHarrisFeatures";
// "opencv_detectMinEigenFeatures", "opencv_detectMinEigenFeatures";
// "opencv_corner","opencv_corner";
// "opencv_ocr","opencv_ocr";
// "opencv_imageSet","opencv_imageSet";
// "opencv_partition","opencv_partition";
// "opencv_trainImageCategoryClassifier","opencv_trainImageCategoryClassifier";
// "opencv_bagOfFeatures","opencv_bagOfFeatures";
// "opencv_predict","opencv_predict";
// "opencv_evaluate","opencv_evaluate";
// "opencv_detectCheckerboardPoints","opencv_detectCheckerboardPoints";
// //"opencv_TemplateMatcher", "opencv_TemplateMatcher";
// //"opencv_peopleDetector", "opencv_peopleDetector";
// //"opencv_IDCT", "opencv_IDCT";
// //"opencv_isEpipoleInImage", "opencv_isEpipoleInImage";
// //"opencv_undistortImage", "opencv_undistortImage";
// //"opencv_bundleAdjustment", "opencv_bundleAdjustment";
// "opencv_projectPoints","opencv_projectPoints";
// "opencv_estimateFundamentalMatrix","opencv_estimateFundamentalMatrix";
// "opencv_estimateUncalibratedRectification","opencv_estimateUncalibratedRectification";
// "opencv_FFT","opecv_FFT";
// "IFFT","opencv_IFFT";
// "GeometricShearer","opencv_GeometricShearer";
// "pyramid","opencv_pyramid";
// "insertObjectAnnotation","opencv_CascadeObjectDetector";
// "rectifyStereoImages","opencv_rectifyStereoImages";
// "bbox2points","opencv_bbox2points";
// "bboxOverlapRatio","opencv_bboxOverlapRatio";
// "BlockMatcher","opencv_BlockMatcher";
// "cameraMatrix","opencv_cameraMatrix";
// "extractLBPFeatures","opencv_extractLBPFeatures";
// "genCheckerboardPoints","opencv_generateCheckerboardPoints";
// "HistogramBasedTracker","opencv_HistogramBasedTracker";
// "integralFilter","opencv_integralFilter";
// "integralImage","opencv_integralImage";
// "integralKernel","opencv_integralKernel";
// "rotationVectorToMatrix","opencv_rotationVectorToMatrix";
// "VideoPlayer","opencv_VideoPlayer";
// "detectFASTFeatures","opencv_detectFASTFeatures";
// "detectMSERFeatures","opencv_detectMSERFeatures";
// "evaluateImageRetieval","opencv_evaluateImageRetrieval";
// "extractFeatures","opencv_extractFeatures";
// "matchFeatures","opencv_matchFeatures";
// "retrieveImages","opencv_retrieveImages";
// "indexImages","opencv_indexImages";
// "ocv_detectSURFFeatures", "opencv_detectSURFFeatures";
// "KalmanFilter","opencv_KalmanFilter";
// "isfilter", "opencv_isfilter";
// "convolver","opencv_convolver";
// "opticalFlowFarneback","opencv_opticalFlowFarneback";
// "extractHOGFeatures","opencv_extractHOGFeatures";
// "showMatchedFeatures","opencv_showMatchedFeatures";
// "estimateGeometricTransform","opencv_estimateGeometricTransform";
// "epipolarlines","opencv_epipolarlines";
// "ocv_SURFPoints", "opencv_SURFPoints";
// "ocv_detectBRISKFeatures", "opencv_detectBRISKFeatures";
// "ocv_BRISKPoints", "opencv_BRISKPoints";
// "ocv_VideoReader", "opencv_VideoReader";
// "ocv_hasFrame", "has_frame";
// "ocv_readFrame", "read_frame";
// "rotationMatrixToVector", "rotationMTV";
// "ocv_ForegroundDetector", "opencv_ForegroundDetector";
// "ocv_readForegroundMask", "opencv_readForegroundMask";
// "rotationMatrixtoVector", "rotationMTV";
// "opencv_blobAnalysis", "opencv_blobAnalysis";
// "opencv_DCT", "opencv_DCT"
// "opencv_Deinterlacer", "opencv_Deinterlacer";
// "opencv_triangulatePoints", "opencv_triangulatePoints";
// "opencv_undistortPoints", "opencv_undistortPoints";
];
files = [
// "common.cpp",
"opencv_imread.cpp",
// //"opencv_blur.cpp",
// //"opencv_arrowedline.cpp",
// //"opencv_canny.cpp",
// //"opencv_circle.cpp",
// //"opencv_clipline.cpp",
// //"opencv_convexhull.cpp",
// //"opencv_cornerEigenValsAndVecs.cpp"
// //"opencv_cornerHarris.cpp",
// //"opencv_cornerMinEigenVal.cpp",
// //"opencv_dilate.cpp",
// //"opencv_ellipse2poly.cpp",
// //"opencv_erode.cpp",
// //"opencv_fillconvexpoly.cpp",
// //"opencv_filter2D.cpp",
// //"opencv_findContours.cpp",
// //"opencv_gaussianblur.cpp",
// //"opencv_getStructuringElement.cpp",
// //"opencv_getTextSize.cpp",
// //"opencv_goodfeaturestotrack.cpp",
// //"opencv_houghcircles.cpp",
// //"opencv_houghlines.cpp",
// //"opencv_im2double.cpp",
// //"opencv_imcontrast.cpp",
"opencv_imcrop.cpp",
"opencv_imresize.cpp",
"opencv_imsharpen.cpp",
"opencv_imwrite.cpp",
// //"opencv_laplacian.cpp",
// //"opencv_line.cpp",
// //"opencv_medianblur.cpp",
// //"opencv_puttext.cpp",
// //"opencv_scharr.cpp",
// //"opencv_sobel.cpp",
// //"opencv_threshold.cpp",
// //"opencv_undistort.cpp",
// //"opencv_boundingRect.cpp",
// //"opencv_ellipse.cpp",
// //"opencv_montage.cpp",
// //"opencv_morphologyEx.cpp",
// //"opencv_pyrDown.cpp",
// //"opencv_pyrUp.cpp",
// //"opencv_rectangle.cpp",
// //"opencv_sepFilter2D.cpp",
// //"opencv_copymakeborder.cpp",
// //"opencv_cvtColor.cpp",
// //"opencv_getgaussiankernel.cpp",
// //"opencv_getrectsubpix.cpp",
// //"opencv_getrotationmatrix2D.cpp",
// //"opencv_houghlinesp.cpp",
// //"opencv_demosaic.cpp",
// //"opencv_imfindcircles.cpp",
// "opencv_detectHarrisFeatures.cpp",
// "opencv_detectMinEigenFeatures.cpp",
// "opencv_corner.cpp",
// "opencv_ocr.cpp",
// "opencv_imageSet.cpp",
// "opencv_partition.cpp",
// "opencv_trainImageCategoryClassifier.cpp",
// "opencv_bagOfFeatures.cpp",
// "opencv_predict.cpp",
// "opencv_evaluate.cpp",
// "opencv_detectCheckerboardPoints.cpp",
// //"opencv_TemplateMatcher.cpp",
// //"opencv_peopleDetector.cpp",
// //"opencv_IDCT.cpp",
// //"opencv_isEpipoleInImage.cpp",
// //"opencv_undistortImage.cpp",
// //"opencv_bundleAdjustment.cpp",
// "opencv_projectPoints.cpp",
// "opencv_estimateFundamentalMatrix.cpp",
// "opencv_estimateUncalibratedRectification.cpp",
// "opencv_FFT.cpp"
// "opencv_IFFT.cpp",
// "opencv_GeometricShearer.cpp",
// "opencv_pyramid.cpp",
// "opencv_CascadeObjectDetector.cpp",
// "opencv_rectifyStereoImages.cpp",
// "opencv_bbox2points.cpp",
// "opencv_bboxOverlapRatio.cpp",
// "opencv_BlockMatcher.cpp",
// "opencv_cameraMatrix.cpp",
// "opencv_extractLBPFeatures.cpp",
// "opencv_generateCheckerboardPoints.cpp",
// "opencv_HistogramBasedTracker.cpp",
// "opencv_integralFilter.cpp",
// "opencv_integralImage.cpp",
// "opencv_integralKernel.cpp",
// "opencv_rotationVectorToMatrix.cpp",
// "opencv_VideoPlayer.cpp",
// "opencv_detectFASTFeatures.cpp",
// "opencv_detectMSERFeatures.cpp",
// "opencv_evaluateImageRetrieval.cpp",
// "opencv_extractFeatures.cpp",
// "opencv_matchFeatures.cpp",
// "opencv_retrieveImages.cpp",
// "opencv_indexImages.cpp",
// "opencv_KalmanFilter.cpp",
// "opencv_isfilter.cpp",
// "opencv_convolver.cpp",
// "opencv_opticalFlowFarneback.cpp",
// "opencv_extractHOGFeatures.cpp",
// "opencv_showMatchedFeatures.cpp",
// "opencv_estimateGeometricTransform.cpp",
// "opencv_epipolarlines.cpp",
// "opencv_detectSURFFeatures.cpp",
// "opencv_SURFPoints.cpp",
// "opencv_detectBRISKFeatures.cpp",
// "opencv_BRISKPoints.cpp",
// "opencv_VideoReader.cpp",
// "rotationMatrixToVector.cpp",
// "opencv_ForegroundDetector.cpp",
// "opencv_blobAnalysis.cpp",
// "opencv_DCT.cpp",
// "opencv_Deinterlacer.cpp",
// "opencv_triangulatePoints.cpp",
// "opencv_undistortPoints.cpp"
];
//[a, opt] = getversion();
//Version = opt(2);
////Build_64Bits = %f;
//if getos()=="Windows" then
//// third_dir = path_builder+filesep()+'..'+filesep()+'..'+filesep()+'thirdparty';
//// lib_base_dir = third_dir + filesep() + 'windows' + filesep() + 'lib' + filesep() + Version + filesep();
//// inc_base_dir = third_dir + filesep() + 'windows' + filesep() + 'include' + filesep() + 'coin';
//// C_Flags=['-D__USE_DEPRECATED_STACK_FUNCTIONS__ -w -I '+path_builder+' '+ '-I '+inc_base_dir+' ']
//// Linker_Flag = [lib_base_dir+"libClp.lib "+lib_base_dir+"libCgl.lib "+lib_base_dir+"libOsi.lib "+lib_base_dir+"libOsiClp.lib "+lib_base_dir+"libCoinUtils.lib "+lib_base_dir+"libSymphony.lib "+lib_base_dir+"IpOptFSS.lib "+lib_base_dir+"IpOpt-vc10.lib "]
//else
// third_dir = path_builder+filesep()+'..'+filesep()+'..'+filesep()+'thirdparty';
// lib_base_dir = third_dir + filesep() + 'linux' + filesep() + 'lib' + filesep() + Version + filesep();
// inc_base_dir = third_dir + filesep() + 'linux' + filesep() + 'include' + filesep() + 'opencv';
// incl_base_dir = third_dir + filesep() + 'linux' + filesep() + 'include' + filesep() + 'opencv2';
//
//// C_Flags=[" -I"+inc_base_dir+" "+"- I"+incl_base_dir]
// C_Flags=[" -I/usr/include/scilab -I/home/fossee/Desktop/FOSSEE_Image_Processing_Toolbox/thirdparty/linux/include/opencvopencv -I/home/fossee/Desktop/FOSSEE_Image_Processing_Toolbox/thirdparty/linux/include/opencvopencv2"]
//
//
//// Linker_Flag = ["-L"+lib_base_dir+"libopencv_core"+" "+"-L"+lib_base_dir+"libopencv_highgui"+" "+"-L"+lib_base_dir+"libopencv_imgproc"]
// Linker_Flag = ["-L/usr/lib -lopencv_core -L/usr/lib -lopencv_highgui -L/usr/lib -lopencv_imgproc"]
//
//end
//copyfile("sci_gateway/cpp/common.h",TMPDIR);
//copyfile("sci_gateway/cpp/common.cpp",TMPDIR);
//tbx_build_gateway(toolbox_title,Function_Names,files,get_absolute_file_path("builder_gateway_cpp.sce"), [], Linker_Flag, C_Flags,[]);
//clear toolbox_title Function_Names files Linker_Flag C_Flags;
function builder_gw_cpp()
WITHOUT_AUTO_PUTLHSVAR = %t;
copyfile("/home/fossee/Desktop/FOSSEE_Image_Processing_Toolbox/sci_gateway/cpp/common.h",TMPDIR);
copyfile("/home/fossee/Desktop/FOSSEE_Image_Processing_Toolbox/sci_gateway/cpp/common.cpp",TMPDIR);
tbx_build_gateway("skeleton_imageprocessing", ..
Function_Names, ..
files, ..
get_absolute_file_path("builder_gateway_cpp.sce"),[],["-L/usr/local/lib -lopencv_core -L/usr/local/lib -lopencv_highgui -L/usr/local/lib -lopencv_imgproc -L/usr/local/lib -lopencv_calib3d -L/usr/local/lib -lopencv_video -L/usr/local/lib -lopencv_nonfree -L/usr/local/lib -lopencv_ml -L/usr/local/lib -lopencv_objdetect"],["-I/usr/include/scilab -I/usr/include/opencv -I/usr/include/opencv2 "],"g++ ");
// get_absolute_file_path("builder_gateway_cpp.sce"),[],["-L/usr/local/lib -lopencv_core -L/usr/local/lib -lopencv_highgui -L/usr/local/lib -lopencv_imgproc -L/usr/local/lib -lopencv_calib3d -L/usr/local/lib -lopencv_video -L/usr/local/lib -ltesseract -L/usr/local/lib -llept -L/usr/local/lib -lopencv_nonfree -L/usr/local/lib -lopencv_ml -L/usr/local/lib -lopencv_objdetect"],["-I/usr/include/scilab -I/usr/include/opencv -I/usr/include/opencv2 -I/usr/include/tesseract"],"g++ ");
endfunction
builder_gw_cpp();
clear builder_gw_cpp; // remove builder_gw_cpp on stack
|