Visual Servoing Platform version 3.7.0
Loading...
Searching...
No Matches
gen_dict.json
1{
2 "ManualFuncs": {
3 "VpImgproc": {
4 "reconstruct": {
5 "j_code": [
6 "\n//",
7 "// manual port",
8 "// C++: static void reconstruct(vpImage_char marker, vpImage_char mask, vpImage_char I, vpImageMorphology_vpConnexityType connexity = vpImageMorphology::CONNEXITY_4)",
9 "//",
10 "//javadoc: visp::reconstruct(marker, mask, I)\n",
11 "public static void reconstruct(org.visp.core.VpImageUChar marker, org.visp.core.VpImageUChar mask, org.visp.core.VpImageUChar I)",
12 "{",
13 " reconstruct(marker.nativeObj, mask.nativeObj, I.nativeObj);",
14 "}"
15 ],
16 "jn_code": [
17 "\n// C++: static void reconstruct(vpImage_char marker, vpImage_char mask, vpImage_char I, vpImageMorphology_vpConnexityType connexity = vpImageMorphology::CONNEXITY_4)",
18 "private static native void reconstruct(long marker_nativeObj, long mask_nativeObj, long I_nativeObj);"
19 ],
20 "cpp_code": [
21 "\n//",
22 "// manual port",
23 "// static void reconstruct(vpImage_char marker, vpImage_char mask, vpImage_char I, vpImageMorphology_vpConnexityType connexity = vpImageMorphology::CONNEXITY_4)",
24 "//\n",
25 "JNIEXPORT void JNICALL Java_org_visp_imgproc_VpImgproc_reconstruct (JNIEnv*, jclass, jlong, jlong, jlong);\n",
26 "JNIEXPORT void JNICALL Java_org_visp_imgproc_VpImgproc_reconstruct",
27 " (JNIEnv* env, jclass , jlong marker_nativeObj, jlong mask_nativeObj, jlong I_nativeObj)",
28 "{",
29 " static const char method_name[] = \"imgproc::reconstruct()\";",
30 " try {",
31 " LOGD(\"%s\", method_name);",
32 " vpImage<unsigned char>& marker = *((vpImage<unsigned char>*)marker_nativeObj);",
33 " vpImage<unsigned char>& mask = *((vpImage<unsigned char>*)mask_nativeObj);",
34 " vpImage<unsigned char>& I = *((vpImage<unsigned char>*)I_nativeObj);",
35 " visp::reconstruct( marker, mask, I, vpImageMorphology::CONNEXITY_4 );",
36 " return;",
37 " } catch(const std::exception &e) {",
38 " throwJavaException(env, &e, method_name);",
39 " } catch (...) {",
40 " throwJavaException(env, 0, method_name);",
41 " }",
42 " return;",
43 "}"
44 ]
45 },
46 "floodFill": {
47 "j_code": [
48 "\n//",
49 "// manual port",
50 "// C++: static void floodFill(vpImage_char I, vpImagePoint seedPoint, char oldValue, char newValue, vpImageMorphology_vpConnexityType connexity = vpImageMorphology::CONNEXITY_4)\n",
51 "//javadoc: visp::floodFill(I, seedPoint, oldValue, newValue)\n",
52 "public static void floodFill(org.visp.core.VpImageUChar I, org.visp.core.VpImagePoint seedPoint, char oldValue, char newValue)",
53 "{",
54 " floodFill(I.nativeObj, seedPoint.get_i(), seedPoint.get_j(), oldValue, newValue);",
55 "}"
56 ],
57 "jn_code": [
58 "\n// C++: static void floodFill(vpImage_char I, vpImagePoint seedPoint, char oldValue, char newValue, vpImageMorphology_vpConnexityType connexity = vpImageMorphology::CONNEXITY_4)",
59 "private static native void floodFill(long I_nativeObj, double seedPoint_i, double seedPoint_j, char oldValue, char newValue);\n"
60 ],
61 "cpp_code": [
62 "\n//",
63 "// static void floodFill(vpImage_char I, vpImagePoint seedPoint, char oldValue, char newValue, vpImageMorphology_vpConnexityType connexity = vpImageMorphology::CONNEXITY_4)",
64 "//\n",
65 "JNIEXPORT void JNICALL Java_org_visp_imgproc_VpImgproc_floodFill (JNIEnv*, jclass, jlong, jdouble, jdouble, jchar, jchar);",
66 "JNIEXPORT void JNICALL Java_org_visp_imgproc_VpImgproc_floodFill",
67 " (JNIEnv* env, jclass , jlong I_nativeObj, jdouble seedPoint_i, jdouble seedPoint_j, jchar oldValue, jchar newValue)",
68 "{",
69 " static const char method_name[] = \"imgproc::floodFill()\";",
70 " try {",
71 " LOGD(\"%s\", method_name);",
72 " vpImage<unsigned char>& I = *((vpImage<unsigned char>*)I_nativeObj);",
73 " vpImagePoint seedPoint((int)seedPoint_i, (int)seedPoint_j);",
74 " visp::floodFill( I, seedPoint, (char)oldValue, (char)newValue, vpImageMorphology::CONNEXITY_4 );",
75 " return;",
76 " } catch(const std::exception &e) {",
77 " throwJavaException(env, &e, method_name);",
78 " } catch (...) {",
79 " throwJavaException(env, 0, method_name);",
80 " }",
81 " return;",
82 "}"
83 ]
84 },
85 "fillHoles": {
86 "j_code": [
87 "//",
88 "// C++: static void fillHoles(vpImage_char I, vpImageMorphology_vpConnexityType connexity = vpImageMorphology::CONNEXITY_4)",
89 "//",
90 "\n",
91 "//javadoc: visp::fillHoles(I)",
92 "\n",
93 "public static void fillHoles(org.visp.core.VpImageUChar I)",
94 "{",
95 " fillHoles(I.nativeObj);",
96 " return;",
97 "}",
98 "\n"
99 ],
100 "jn_code": [
101 "// C++: static void fillHoles(vpImage_char I, vpImageMorphology_vpConnexityType connexity = vpImageMorphology::CONNEXITY_4)",
102 "private static native void fillHoles(long I_nativeObj);\n"
103 ],
104 "cpp_code": [
105 "\n\n//",
106 "// manual port",
107 "// static void fillHoles(vpImage_char I, vpImageMorphology_vpConnexityType connexity = vpImageMorphology::CONNEXITY_4)",
108 "//",
109 "\n",
110 "JNIEXPORT void JNICALL Java_org_visp_imgproc_VpImgproc_fillHoles (JNIEnv*, jclass, jlong);\n",
111 "JNIEXPORT void JNICALL Java_org_visp_imgproc_VpImgproc_fillHoles",
112 " (JNIEnv* env, jclass , jlong I_nativeObj)",
113 "{",
114 " try {",
115 " LOGD(\"imgproc::fillHoles()\");",
116 " vpImage<unsigned char>& I = *((vpImage<unsigned char>*)I_nativeObj);",
117 " visp::fillHoles(I);",
118 " return;",
119 " } catch(const std::exception &e) {",
120 " throwJavaException(env, &e, \"imgproc::fillHoles()\");",
121 " } catch (...) {",
122 " throwJavaException(env, 0, \"imgproc::fillHoles()\");",
123 " }",
124 " return;",
125 "}\n"
126 ]
127 },
128 "gammaCorrection": {
129 "j_code": [
130 "//",
131 "// C++: static void fillHoles(vpImage_char I1, vpImage_char I2, float gamma vp_vpGammaMethod method = visp::GAMMA_MANUAL, vpImage_bool * I_mask = 0)",
132 "//",
133 "\n",
134 "//javadoc: visp::gammaCorrection(I1, I2, gamma)",
135 "\n",
136 "public static void gammaCorrection(org.visp.core.VpImageUChar I1, org.visp.core.VpImageUChar I2, float gamma)",
137 "{",
138 " gammaCorrection(I1.nativeObj, I2.nativeObj, gamma);",
139 " return;",
140 "}\n",
141 "//",
142 "// C++: static void fillHoles(vpImage_char I, float gamma vp_vpGammaMethod method = visp::GAMMA_MANUAL, vpImage_bool * I_mask = 0)",
143 "//",
144 "\n",
145 "//javadoc: visp::gammaCorrection(I1, gamma)",
146 "\n",
147 "public static void gammaCorrection(org.visp.core.VpImageUChar I, float gamma)",
148 "{",
149 " gammaCorrection(I.nativeObj, gamma);",
150 " return;",
151 "}",
152 "\n"
153 ],
154 "jn_code": [
155 "// C++: static void gammaCorrection(vpImage_char I1, vpImage_char I2, float gamma, vpGammaMethod method = visp::GAMMA_MANUAL, vpImage_bool* p_mask = 0)",
156 "private static native void gammaCorrection(long I1_nativeobj, long I2_nativeobj, float gamma);\n",
157 "// C++: static void gammaCorrection(vpImage_char I, float gamma, vpGammaMethod method = visp::GAMMA_MANUAL, vpImage_bool* p_mask = 0)",
158 "private static native void gammaCorrection(long I_nativeobj, float gamma);\n"
159 ],
160 "cpp_code": [
161 "//",
162 "// manual port",
163 "// C++: static void gammaCorrection(vpImage_char I1, vpImage_char I2, float gamma, vpGammaMethod method = visp::GAMMA_MANUAL, vpImage_bool* p_mask = 0)",
164 "//",
165 "//javadoc: visp::gammaCorrection(I1, I2, gamma)",
166 "JNIEXPORT void JNICALL Java_org_visp_imgproc_VpImgproc_gammaCorrection_10 (JNIEnv*, jclass, jlong, jlong, jfloat);",
167 "JNIEXPORT void JNICALL Java_org_visp_imgproc_VpImgproc_gammaCorrection_10 (JNIEnv* env, jclass , jlong I1_nativeObj, jlong I2_nativeObj, jfloat gamma)",
168 "{",
169 " static const char method_name[] = \"imgproc::gammaCorrection_10()\";",
170 " try {",
171 " LOGD(\"%s\", method_name);",
172 " vpImage<unsigned char>& I1 = *((vpImage<unsigned char>*)I1_nativeObj);",
173 " vpImage<unsigned char>& I2 = *((vpImage<unsigned char>*)I2_nativeObj);",
174 " visp::gammaCorrection( I1, I2, (float)gamma, visp::GAMMA_MANUAL, 0 );",
175 " return;",
176 " } catch(const std::exception &e) {",
177 " throwJavaException(env, &e, method_name);",
178 " } catch (...) {",
179 " throwJavaException(env, 0, method_name);",
180 " }",
181 " return;",
182 "}\n",
183 "//",
184 "// manual port",
185 "// C++: static void gammaCorrection(vpImage_char I, float gamma, vpGammaMethod method = visp::GAMMA_MANUAL, vpImage_bool* p_mask = 0)",
186 "//",
187 "//javadoc: visp::gammaCorrection(I, gamma)\n",
188 "JNIEXPORT void JNICALL Java_org_visp_imgproc_VpImgproc_gammaCorrection_13 (JNIEnv*, jclass, jlong, jfloat);\n",
189 "JNIEXPORT void JNICALL Java_org_visp_imgproc_VpImgproc_gammaCorrection_13 (JNIEnv* env, jclass , jlong I_nativeObj, jfloat gamma)",
190 "{",
191 " static const char method_name[] = \"imgproc::gammaCorrection_13()\";",
192 " try {",
193 " LOGD(\"%s\", method_name);",
194 " vpImage<unsigned char>& I = *((vpImage<unsigned char>*)I_nativeObj);",
195 " visp::gammaCorrection( I, (float)gamma, visp::GAMMA_MANUAL, 0 );",
196 " return;",
197 " } catch(const std::exception &e) {",
198 " throwJavaException(env, &e, method_name);",
199 " } catch (...) {",
200 " throwJavaException(env, 0, method_name);",
201 " }",
202 " return;",
203 "}\n\n"
204 ]
205 },
206 "vpGammaColorHandlingList": {
207 "j_code": [
208 "\n//",
209 "// manual port",
210 "// C++: std::string vpGammaColorHandlingList(const std::string &pref = \"<\", const std::string &sep = \" , \", const std::string &suf = \">\")\n",
211 "//javadoc: visp::vpGammaColorHandlingList(pref, sep, suf)\n",
212 "public static String vpGammaColorHandlingList(String pref, String sep, String suf)",
213 "{",
214 " return vpGammaColorHandlingList(pref, sep, suf);",
215 "}"
216 ],
217 "jn_code": [
218 "\n// C++: std::string vpGammaColorHandlingList(const std::string &pref = \"<\", const std::string &sep = \" , \", const std::string &suf = \">\")\n"
219 ],
220 "cpp_code": [
221 "//",
222 "// manual port",
223 "// C++: std::string vpGammaColorHandlingList(const std::string &pref = \"<\", const std::string &sep = \" , \", const std::string &suf = \">\")\n",
224 "//",
225 "JNIEXPORT jstring JNICALL Java_org_visp_imgproc_VpImgproc_vpGammaColorHandlingList_10 (JNIEnv*, jclass, jstring);",
226 "JNIEXPORT jstring JNICALL Java_org_visp_imgproc_VpImgproc_vpGammaColorHandlingList_10 (JNIEnv* env, jclass , jstring pref)",
227 "{",
228 " static const char method_name[] = \"imgproc::vpGammaColorHandlingList_10()\";",
229 " try {",
230 " LOGD(\"%s\", method_name);",
231 " const char* utf_pref = env->GetStringUTFChars(pref, 0); string n_pref( utf_pref ? utf_pref : \"\" ); env->ReleaseStringUTFChars(pref, utf_pref);",
232 " string _retval_ = visp::vpGammaColorHandlingList( n_pref );",
233 " return env->NewStringUTF(_retval_.c_str());",
234 " } catch(const std::exception &e) {",
235 " throwJavaException(env, &e, method_name);",
236 " } catch (...) {",
237 " throwJavaException(env, 0, method_name);",
238 " }",
239 " return 0;",
240 "}\n",
241 "JNIEXPORT jstring JNICALL Java_org_visp_imgproc_VpImgproc_vpGammaColorHandlingList_11 (JNIEnv*, jclass);",
242 "JNIEXPORT jstring JNICALL Java_org_visp_imgproc_VpImgproc_vpGammaColorHandlingList_11 (JNIEnv* env, jclass )",
243 "{",
244 " static const char method_name[] = \"imgproc::vpGammaColorHandlingList_11()\";",
245 " try {",
246 " LOGD(\"%s\", method_name);",
247 " string _retval_ = visp::vpGammaColorHandlingList( );",
248 " return env->NewStringUTF(_retval_.c_str());",
249 " } catch(const std::exception &e) {",
250 " throwJavaException(env, &e, method_name);",
251 " } catch (...) {",
252 " throwJavaException(env, 0, method_name);",
253 " }",
254 " return 0;",
255 "}\n"
256 ]
257 },
258 "vpGammaMethodList": {
259 "j_code": [
260 "\n//",
261 "// manual port",
262 "// C++: std::string vpGammaMethodList(const std::string &pref = \"<\", const std::string &sep = \" , \", const std::string &suf = \">\")\n",
263 "//javadoc: visp::vpGammaMethodList(pref, sep, suf)\n",
264 "public static String vpGammaMethodList(String pref, String sep, String suf)",
265 "{",
266 " return vpGammaMethodList(pref, sep, suf);",
267 "}"
268 ],
269 "jn_code": [
270 "\n// C++: std::string vpGammaMethodList(const std::string &pref = \"<\", const std::string &sep = \" , \", const std::string &suf = \">\")\n"
271 ],
272 "cpp_code": [
273 "//",
274 "// manual port",
275 "// C++: std::string vpGammaMethodList(const std::string &pref = \"<\", const std::string &sep = \" , \", const std::string &suf = \">\")\n",
276 "//",
277 "JNIEXPORT jstring JNICALL Java_org_visp_imgproc_VpImgproc_vpGammaMethodList_10 (JNIEnv*, jclass, jstring);",
278 "JNIEXPORT jstring JNICALL Java_org_visp_imgproc_VpImgproc_vpGammaMethodList_10 (JNIEnv* env, jclass , jstring pref)",
279 "{",
280 " static const char method_name[] = \"imgproc::vpGammaMethodList_10()\";",
281 " try {",
282 " LOGD(\"%s\", method_name);",
283 " const char* utf_pref = env->GetStringUTFChars(pref, 0); string n_pref( utf_pref ? utf_pref : \"\" ); env->ReleaseStringUTFChars(pref, utf_pref);",
284 " string _retval_ = visp::vpGammaMethodList( n_pref );",
285 " return env->NewStringUTF(_retval_.c_str());",
286 " } catch(const std::exception &e) {",
287 " throwJavaException(env, &e, method_name);",
288 " } catch (...) {",
289 " throwJavaException(env, 0, method_name);",
290 " }",
291 " return 0;",
292 "}\n",
293 "JNIEXPORT jstring JNICALL Java_org_visp_imgproc_VpImgproc_vpGammaMethodList_11 (JNIEnv*, jclass);",
294 "JNIEXPORT jstring JNICALL Java_org_visp_imgproc_VpImgproc_vpGammaMethodList_11 (JNIEnv* env, jclass )",
295 "{",
296 " static const char method_name[] = \"imgproc::vpGammaMethodList_11()\";",
297 " try {",
298 " LOGD(\"%s\", method_name);",
299 " string _retval_ = visp::vpGammaMethodList( );",
300 " return env->NewStringUTF(_retval_.c_str());",
301 " } catch(const std::exception &e) {",
302 " throwJavaException(env, &e, method_name);",
303 " } catch (...) {",
304 " throwJavaException(env, 0, method_name);",
305 " }",
306 " return 0;",
307 "}\n"
308 ]
309 }
310 }
311 },
312 "type_dict": {
313 "vpContour": {
314 "j_type": "VpContour",
315 "jn_args": [
316 [
317 "__int64",
318 ".nativeObj"
319 ]
320 ],
321 "jn_type": "long",
322 "jni_type": "jlong",
323 "jni_var": "vpContour& %(n)s = *((vpContour*)%(n)s_nativeObj)",
324 "suffix": "J",
325 "j_import": "org.visp.core.VpContour"
326 }
327 }
328}