Visual Servoing Platform version 3.6.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: Vp::reconstruct(marker, mask, I)\n",
11 "public static void reconstruct(VpImageUChar marker, VpImageUChar mask, 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 " vp::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: Vp::floodFill(I, seedPoint, oldValue, newValue)\n",
52 "public static void floodFill(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 " vp::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: Vp::fillHoles(I)",
92 "\n",
93 "public static void fillHoles(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 " vp::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 }
129 },
130 "type_dict" : {
131 "vpContour": {
132 "j_type": "VpContour",
133 "jn_args": [
134 [
135 "__int64",
136 ".nativeObj"
137 ]
138 ],
139 "jn_type": "long",
140 "jni_type": "jlong",
141 "jni_var": "vpContour& %(n)s = *((vpContour*)%(n)s_nativeObj)",
142 "suffix": "J",
143 "j_import": "org.visp.core.VpContour"
144 }
145 }
146}