gen_dict.json 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  1. {
  2. "module_imports": [ "java.lang.String" ],
  3. "module_j_code": "src/java/core+Core.jcode.in",
  4. "class_ignore_list" : [
  5. "FileNode",
  6. "FileStorage",
  7. "KDTree",
  8. "KeyPoint",
  9. "DMatch"
  10. ],
  11. "missing_consts" : {
  12. "Core" : {
  13. "private" : [
  14. ["CV_8U", 0 ], ["CV_8S", 1 ],
  15. ["CV_16U", 2 ], ["CV_16S", 3 ],
  16. ["CV_32S", 4 ],
  17. ["CV_32F", 5 ], ["CV_64F", 6 ],
  18. ["CV_USRTYPE1", 7 ]
  19. ],
  20. "public" : [
  21. ["SVD_MODIFY_A", 1], ["SVD_NO_UV", 2], ["SVD_FULL_UV", 4],
  22. ["FILLED", -1],
  23. ["REDUCE_SUM", 0], ["REDUCE_AVG", 1], ["REDUCE_MAX", 2], ["REDUCE_MIN", 3]
  24. ]
  25. }
  26. },
  27. "ManualFuncs" : {
  28. "Core" : {
  29. "minMaxLoc" : {
  30. "j_code" : [
  31. "// manual port",
  32. "public static class MinMaxLocResult {",
  33. " public double minVal;",
  34. " public double maxVal;",
  35. " public Point minLoc;",
  36. " public Point maxLoc;",
  37. "\n",
  38. " public MinMaxLocResult() {",
  39. " minVal=0; maxVal=0;",
  40. " minLoc=new Point();",
  41. " maxLoc=new Point();",
  42. " }",
  43. "}",
  44. "\n",
  45. "// C++: minMaxLoc(Mat src, double* minVal, double* maxVal=0, Point* minLoc=0, Point* maxLoc=0, InputArray mask=noArray())",
  46. "\n",
  47. "//javadoc: minMaxLoc(src, mask)",
  48. "public static MinMaxLocResult minMaxLoc(Mat src, Mat mask) {",
  49. " MinMaxLocResult res = new MinMaxLocResult();",
  50. " long maskNativeObj=0;",
  51. " if (mask != null) {",
  52. " maskNativeObj=mask.nativeObj;",
  53. " }",
  54. " double resarr[] = n_minMaxLocManual(src.nativeObj, maskNativeObj);",
  55. " res.minVal=resarr[0];",
  56. " res.maxVal=resarr[1];",
  57. " res.minLoc.x=resarr[2];",
  58. " res.minLoc.y=resarr[3];",
  59. " res.maxLoc.x=resarr[4];",
  60. " res.maxLoc.y=resarr[5];",
  61. " return res;",
  62. "}",
  63. "\n",
  64. "//javadoc: minMaxLoc(src)",
  65. "public static MinMaxLocResult minMaxLoc(Mat src) {",
  66. " return minMaxLoc(src, null);",
  67. "}"
  68. ],
  69. "jn_code" : [
  70. "private static native double[] n_minMaxLocManual(long src_nativeObj, long mask_nativeObj);\n"
  71. ],
  72. "cpp_code" : [
  73. "// C++: minMaxLoc(Mat src, double* minVal, double* maxVal=0, Point* minLoc=0, Point* maxLoc=0, InputArray mask=noArray())",
  74. "JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Core_n_1minMaxLocManual (JNIEnv*, jclass, jlong, jlong);",
  75. "\n",
  76. "JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Core_n_1minMaxLocManual",
  77. " (JNIEnv* env, jclass, jlong src_nativeObj, jlong mask_nativeObj)",
  78. "{",
  79. " try {",
  80. " LOGD(\"Core::n_1minMaxLoc()\");",
  81. " jdoubleArray result;",
  82. " result = env->NewDoubleArray(6);",
  83. " if (result == NULL) {",
  84. " return NULL; /* out of memory error thrown */",
  85. " }",
  86. "\n",
  87. " Mat& src = *((Mat*)src_nativeObj);",
  88. "\n",
  89. " double minVal, maxVal;",
  90. " Point minLoc, maxLoc;",
  91. " if (mask_nativeObj != 0) {",
  92. " Mat& mask = *((Mat*)mask_nativeObj);",
  93. " minMaxLoc(src, &minVal, &maxVal, &minLoc, &maxLoc, mask);",
  94. " } else {",
  95. " minMaxLoc(src, &minVal, &maxVal, &minLoc, &maxLoc);",
  96. " }",
  97. "\n",
  98. " jdouble fill[6];",
  99. " fill[0]=minVal;",
  100. " fill[1]=maxVal;",
  101. " fill[2]=minLoc.x;",
  102. " fill[3]=minLoc.y;",
  103. " fill[4]=maxLoc.x;",
  104. " fill[5]=maxLoc.y;",
  105. "\n",
  106. " env->SetDoubleArrayRegion(result, 0, 6, fill);",
  107. "\n",
  108. " return result;",
  109. "\n",
  110. " } catch(const cv::Exception& e) {",
  111. " LOGD(\"Core::n_1minMaxLoc() caught cv::Exception: %s\", e.what());",
  112. " jclass je = env->FindClass(\"org/opencv/core/CvException\");",
  113. " if(!je) je = env->FindClass(\"java/lang/Exception\");",
  114. " env->ThrowNew(je, e.what());",
  115. " return NULL;",
  116. " } catch (...) {",
  117. " LOGD(\"Core::n_1minMaxLoc() caught unknown exception (...)\");",
  118. " jclass je = env->FindClass(\"java/lang/Exception\");",
  119. " env->ThrowNew(je, \"Unknown exception in JNI code {core::minMaxLoc()}\");",
  120. " return NULL;",
  121. " }",
  122. "}",
  123. "\n"
  124. ]
  125. },
  126. "checkHardwareSupport" : {"j_code" : [""], "jn_code" : [""], "cpp_code" : [""] },
  127. "setUseOptimized" : {"j_code" : [""], "jn_code" : [""], "cpp_code" : [""] },
  128. "useOptimized" : {"j_code" : [""], "jn_code" : [""], "cpp_code" : [""] }
  129. }
  130. },
  131. "func_arg_fix" : {
  132. "randu" : { "low" : {"ctype" : "double"},
  133. "high" : {"ctype" : "double"} },
  134. "randn" : { "mean" : {"ctype" : "double"},
  135. "stddev" : {"ctype" : "double"} },
  136. "inRange" : { "lowerb" : {"ctype" : "Scalar"},
  137. "upperb" : {"ctype" : "Scalar"} },
  138. "boundingRect" : { "points" : {"ctype" : "vector_Point"} },
  139. "hconcat" : { "src" : {"ctype" : "vector_Mat"} },
  140. "vconcat" : { "src" : {"ctype" : "vector_Mat"} },
  141. "checkRange" : {"pos" : {"ctype" : "*"} },
  142. "meanStdDev" : { "mean" : {"ctype" : "vector_double"},
  143. "stddev" : {"ctype" : "vector_double"} },
  144. "mixChannels" : { "dst" : {"attrib" : []} }
  145. },
  146. "type_dict" : {
  147. "Algorithm": {
  148. "j_type": "Feature2D",
  149. "jn_type": "long",
  150. "jni_type": "jlong",
  151. "jni_var": "Feature2D %(n)s",
  152. "suffix": "J",
  153. "j_import": "org.opencv.core.Algorithm"
  154. },
  155. "CvSlice": {
  156. "j_type": "Range",
  157. "jn_args": [
  158. [
  159. "int",
  160. ".start"
  161. ],
  162. [
  163. "int",
  164. ".end"
  165. ]
  166. ],
  167. "jni_type": "jdoubleArray",
  168. "jni_var": "Range %(n)s(%(n)s_start, %(n)s_end)",
  169. "suffix": "II",
  170. "j_import": "org.opencv.core.Range"
  171. },
  172. "CvTermCriteria": {
  173. "j_type": "TermCriteria",
  174. "jn_args": [
  175. [
  176. "int",
  177. ".type"
  178. ],
  179. [
  180. "int",
  181. ".maxCount"
  182. ],
  183. [
  184. "double",
  185. ".epsilon"
  186. ]
  187. ],
  188. "jni_type": "jdoubleArray",
  189. "jni_var": "TermCriteria %(n)s(%(n)s_type, %(n)s_maxCount, %(n)s_epsilon)",
  190. "suffix": "IID",
  191. "j_import": "org.opencv.core.TermCriteria"
  192. },
  193. "DMatch": {
  194. "j_type": "DMatch",
  195. "jn_args": [
  196. [
  197. "int",
  198. "queryIdx"
  199. ],
  200. [
  201. "int",
  202. "trainIdx"
  203. ],
  204. [
  205. "int",
  206. "imgIdx"
  207. ],
  208. [
  209. "float",
  210. "distance"
  211. ]
  212. ],
  213. "jni_type": "jdoubleArray",
  214. "jni_var": "DMatch %(n)s(%(n)s_queryIdx, %(n)s_trainIdx, %(n)s_imgIdx, %(n)s_distance)",
  215. "suffix": "IIIF",
  216. "j_import": "org.opencv.core.DMatch"
  217. },
  218. "KeyPoint": {
  219. "j_type": "KeyPoint",
  220. "jn_args": [
  221. [
  222. "float",
  223. ".x"
  224. ],
  225. [
  226. "float",
  227. ".y"
  228. ],
  229. [
  230. "float",
  231. ".size"
  232. ],
  233. [
  234. "float",
  235. ".angle"
  236. ],
  237. [
  238. "float",
  239. ".response"
  240. ],
  241. [
  242. "int",
  243. ".octave"
  244. ],
  245. [
  246. "int",
  247. ".class_id"
  248. ]
  249. ],
  250. "jni_type": "jdoubleArray",
  251. "jni_var": "KeyPoint %(n)s(%(n)s_x, %(n)s_y, %(n)s_size, %(n)s_angle, %(n)s_response, %(n)s_octave, %(n)s_class_id)",
  252. "suffix": "FFFFFII",
  253. "j_import": "org.opencv.core.KeyPoint"
  254. },
  255. "Mat": {
  256. "j_type": "Mat",
  257. "jn_args": [
  258. [
  259. "__int64",
  260. ".nativeObj"
  261. ]
  262. ],
  263. "jn_type": "long",
  264. "jni_type": "jlong",
  265. "jni_var": "Mat& %(n)s = *((Mat*)%(n)s_nativeObj)",
  266. "suffix": "J",
  267. "j_import": "org.opencv.core.Mat"
  268. },
  269. "Moments": {
  270. "j_type": "Moments",
  271. "jn_args": [
  272. [
  273. "double",
  274. ".m00"
  275. ],
  276. [
  277. "double",
  278. ".m10"
  279. ],
  280. [
  281. "double",
  282. ".m01"
  283. ],
  284. [
  285. "double",
  286. ".m20"
  287. ],
  288. [
  289. "double",
  290. ".m11"
  291. ],
  292. [
  293. "double",
  294. ".m02"
  295. ],
  296. [
  297. "double",
  298. ".m30"
  299. ],
  300. [
  301. "double",
  302. ".m21"
  303. ],
  304. [
  305. "double",
  306. ".m12"
  307. ],
  308. [
  309. "double",
  310. ".m03"
  311. ]
  312. ],
  313. "jni_type": "jdoubleArray",
  314. "jni_var": "Moments %(n)s(%(n)s_m00, %(n)s_m10, %(n)s_m01, %(n)s_m20, %(n)s_m11, %(n)s_m02, %(n)s_m30, %(n)s_m21, %(n)s_m12, %(n)s_m03)",
  315. "suffix": "DDDDDDDDDD"
  316. },
  317. "Point": {
  318. "j_type": "Point",
  319. "jn_args": [
  320. [
  321. "double",
  322. ".x"
  323. ],
  324. [
  325. "double",
  326. ".y"
  327. ]
  328. ],
  329. "jni_type": "jdoubleArray",
  330. "jni_var": "Point %(n)s((int)%(n)s_x, (int)%(n)s_y)",
  331. "suffix": "DD",
  332. "j_import": "org.opencv.core.Point"
  333. },
  334. "Point2d": {
  335. "j_type": "Point",
  336. "jn_args": [
  337. [
  338. "double",
  339. ".x"
  340. ],
  341. [
  342. "double",
  343. ".y"
  344. ]
  345. ],
  346. "jni_type": "jdoubleArray",
  347. "jni_var": "Point2d %(n)s(%(n)s_x, %(n)s_y)",
  348. "suffix": "DD",
  349. "j_import": "org.opencv.core.Point"
  350. },
  351. "Point2f": {
  352. "j_type": "Point",
  353. "jn_args": [
  354. [
  355. "double",
  356. ".x"
  357. ],
  358. [
  359. "double",
  360. ".y"
  361. ]
  362. ],
  363. "jni_type": "jdoubleArray",
  364. "jni_var": "Point2f %(n)s((float)%(n)s_x, (float)%(n)s_y)",
  365. "suffix": "DD",
  366. "j_import": "org.opencv.core.Point"
  367. },
  368. "Point3d": {
  369. "j_type": "Point3",
  370. "jn_args": [
  371. [
  372. "double",
  373. ".x"
  374. ],
  375. [
  376. "double",
  377. ".y"
  378. ],
  379. [
  380. "double",
  381. ".z"
  382. ]
  383. ],
  384. "jni_type": "jdoubleArray",
  385. "jni_var": "Point3d %(n)s(%(n)s_x, %(n)s_y, %(n)s_z)",
  386. "suffix": "DDD",
  387. "j_import": "org.opencv.core.Point3"
  388. },
  389. "Point3f": {
  390. "j_type": "Point3",
  391. "jn_args": [
  392. [
  393. "double",
  394. ".x"
  395. ],
  396. [
  397. "double",
  398. ".y"
  399. ],
  400. [
  401. "double",
  402. ".z"
  403. ]
  404. ],
  405. "jni_type": "jdoubleArray",
  406. "jni_var": "Point3f %(n)s((float)%(n)s_x, (float)%(n)s_y, (float)%(n)s_z)",
  407. "suffix": "DDD",
  408. "j_import": "org.opencv.core.Point3"
  409. },
  410. "Point3i": {
  411. "j_type": "Point3",
  412. "jn_args": [
  413. [
  414. "double",
  415. ".x"
  416. ],
  417. [
  418. "double",
  419. ".y"
  420. ],
  421. [
  422. "double",
  423. ".z"
  424. ]
  425. ],
  426. "jni_type": "jdoubleArray",
  427. "jni_var": "Point3i %(n)s((int)%(n)s_x, (int)%(n)s_y, (int)%(n)s_z)",
  428. "suffix": "DDD",
  429. "j_import": "org.opencv.core.Point3"
  430. },
  431. "Range": {
  432. "j_type": "Range",
  433. "jn_args": [
  434. [
  435. "int",
  436. ".start"
  437. ],
  438. [
  439. "int",
  440. ".end"
  441. ]
  442. ],
  443. "jni_type": "jdoubleArray",
  444. "jni_var": "Range %(n)s(%(n)s_start, %(n)s_end)",
  445. "suffix": "II",
  446. "j_import": "org.opencv.core.Range"
  447. },
  448. "Rect": {
  449. "j_type": "Rect",
  450. "jn_args": [
  451. [
  452. "int",
  453. ".x"
  454. ],
  455. [
  456. "int",
  457. ".y"
  458. ],
  459. [
  460. "int",
  461. ".width"
  462. ],
  463. [
  464. "int",
  465. ".height"
  466. ]
  467. ],
  468. "jni_type": "jdoubleArray",
  469. "jni_var": "Rect %(n)s(%(n)s_x, %(n)s_y, %(n)s_width, %(n)s_height)",
  470. "suffix": "IIII",
  471. "j_import": "org.opencv.core.Rect"
  472. },
  473. "Rect2d": {
  474. "j_type": "Rect2d",
  475. "jn_args": [
  476. [
  477. "double",
  478. ".x"
  479. ],
  480. [
  481. "double",
  482. ".y"
  483. ],
  484. [
  485. "double",
  486. ".width"
  487. ],
  488. [
  489. "double",
  490. ".height"
  491. ]
  492. ],
  493. "jni_type": "jdoubleArray",
  494. "jni_var": "Rect %(n)s(%(n)s_x, %(n)s_y, %(n)s_width, %(n)s_height)",
  495. "suffix": "DDDD",
  496. "j_import": "org.opencv.core.Rect2d"
  497. },
  498. "RotatedRect": {
  499. "j_type": "RotatedRect",
  500. "jn_args": [
  501. [
  502. "double",
  503. ".center.x"
  504. ],
  505. [
  506. "double",
  507. ".center.y"
  508. ],
  509. [
  510. "double",
  511. ".size.width"
  512. ],
  513. [
  514. "double",
  515. ".size.height"
  516. ],
  517. [
  518. "double",
  519. ".angle"
  520. ]
  521. ],
  522. "jni_type": "jdoubleArray",
  523. "jni_var": "RotatedRect %(n)s(cv::Point2f(%(n)s_center_x, %(n)s_center_y), cv::Size2f(%(n)s_size_width, %(n)s_size_height), %(n)s_angle)",
  524. "suffix": "DDDDD",
  525. "j_import": "org.opencv.core.RotatedRect"
  526. },
  527. "Scalar": {
  528. "j_type": "Scalar",
  529. "jn_args": [
  530. [
  531. "double",
  532. ".val[0]"
  533. ],
  534. [
  535. "double",
  536. ".val[1]"
  537. ],
  538. [
  539. "double",
  540. ".val[2]"
  541. ],
  542. [
  543. "double",
  544. ".val[3]"
  545. ]
  546. ],
  547. "jni_type": "jdoubleArray",
  548. "jni_var": "Scalar %(n)s(%(n)s_val0, %(n)s_val1, %(n)s_val2, %(n)s_val3)",
  549. "suffix": "DDDD",
  550. "j_import": "org.opencv.core.Scalar"
  551. },
  552. "Size": {
  553. "j_type": "Size",
  554. "jn_args": [
  555. [
  556. "double",
  557. ".width"
  558. ],
  559. [
  560. "double",
  561. ".height"
  562. ]
  563. ],
  564. "jni_type": "jdoubleArray",
  565. "jni_var": "Size %(n)s((int)%(n)s_width, (int)%(n)s_height)",
  566. "suffix": "DD",
  567. "j_import": "org.opencv.core.Size"
  568. },
  569. "Size2f": {
  570. "j_type": "Size",
  571. "jn_args": [
  572. [
  573. "double",
  574. ".width"
  575. ],
  576. [
  577. "double",
  578. ".height"
  579. ]
  580. ],
  581. "jni_type": "jdoubleArray",
  582. "jni_var": "Size2f %(n)s((float)%(n)s_width, (float)%(n)s_height)",
  583. "suffix": "DD",
  584. "j_import": "org.opencv.core.Size"
  585. },
  586. "String": {
  587. "j_type": "String",
  588. "jn_type": "String",
  589. "jni_name": "n_%(n)s",
  590. "jni_type": "jstring",
  591. "jni_var": "const char* utf_%(n)s = env->GetStringUTFChars(%(n)s, 0); String n_%(n)s( utf_%(n)s ? utf_%(n)s : \"\" ); env->ReleaseStringUTFChars(%(n)s, utf_%(n)s)",
  592. "suffix": "Ljava_lang_String_2",
  593. "j_import": "java.lang.String"
  594. },
  595. "TermCriteria": {
  596. "j_type": "TermCriteria",
  597. "jn_args": [
  598. [
  599. "int",
  600. ".type"
  601. ],
  602. [
  603. "int",
  604. ".maxCount"
  605. ],
  606. [
  607. "double",
  608. ".epsilon"
  609. ]
  610. ],
  611. "jni_type": "jdoubleArray",
  612. "jni_var": "TermCriteria %(n)s(%(n)s_type, %(n)s_maxCount, %(n)s_epsilon)",
  613. "suffix": "IID",
  614. "j_import": "org.opencv.core.TermCriteria"
  615. },
  616. "Vec2d": {
  617. "j_type": "double[]",
  618. "jn_args": [
  619. [
  620. "double",
  621. ".val[0]"
  622. ],
  623. [
  624. "double",
  625. ".val[1]"
  626. ]
  627. ],
  628. "jn_type": "double[]",
  629. "jni_type": "jdoubleArray",
  630. "jni_var": "Vec2d %(n)s(%(n)s_val0, %(n)s_val1)",
  631. "suffix": "DD"
  632. },
  633. "Vec3d": {
  634. "j_type": "double[]",
  635. "jn_args": [
  636. [
  637. "double",
  638. ".val[0]"
  639. ],
  640. [
  641. "double",
  642. ".val[1]"
  643. ],
  644. [
  645. "double",
  646. ".val[2]"
  647. ]
  648. ],
  649. "jn_type": "double[]",
  650. "jni_type": "jdoubleArray",
  651. "jni_var": "Vec3d %(n)s(%(n)s_val0, %(n)s_val1, %(n)s_val2)",
  652. "suffix": "DDD"
  653. },
  654. "c_string": {
  655. "j_type": "String",
  656. "jn_type": "String",
  657. "jni_name": "n_%(n)s.c_str()",
  658. "jni_type": "jstring",
  659. "jni_var": "const char* utf_%(n)s = env->GetStringUTFChars(%(n)s, 0); String n_%(n)s( utf_%(n)s ? utf_%(n)s : \"\" ); env->ReleaseStringUTFChars(%(n)s, utf_%(n)s)",
  660. "suffix": "Ljava_lang_String_2",
  661. "j_import": "java.lang.String"
  662. },
  663. "size_t": {
  664. "j_type": "long",
  665. "jn_type": "long",
  666. "jni_type": "jlong",
  667. "suffix": "J"
  668. },
  669. "vector_DMatch": {
  670. "j_type": "MatOfDMatch",
  671. "jn_type": "long",
  672. "jni_type": "jlong",
  673. "jni_var": "std::vector<DMatch> %(n)s",
  674. "suffix": "J",
  675. "v_type": "Mat",
  676. "j_import": "org.opencv.core.MatOfDMatch"
  677. },
  678. "vector_KeyPoint": {
  679. "j_type": "MatOfKeyPoint",
  680. "jn_type": "long",
  681. "jni_type": "jlong",
  682. "jni_var": "std::vector<KeyPoint> %(n)s",
  683. "suffix": "J",
  684. "v_type": "Mat",
  685. "j_import": "org.opencv.core.MatOfKeyPoint"
  686. },
  687. "vector_Mat": {
  688. "j_type": "List<Mat>",
  689. "jn_type": "long",
  690. "jni_type": "jlong",
  691. "jni_var": "std::vector<Mat> %(n)s",
  692. "suffix": "J",
  693. "v_type": "Mat",
  694. "j_import": "org.opencv.core.Mat"
  695. },
  696. "vector_Point": {
  697. "j_type": "MatOfPoint",
  698. "jn_type": "long",
  699. "jni_type": "jlong",
  700. "jni_var": "std::vector<Point> %(n)s",
  701. "suffix": "J",
  702. "v_type": "Mat",
  703. "j_import": "org.opencv.core.MatOfPoint"
  704. },
  705. "vector_Point2f": {
  706. "j_type": "MatOfPoint2f",
  707. "jn_type": "long",
  708. "jni_type": "jlong",
  709. "jni_var": "std::vector<Point2f> %(n)s",
  710. "suffix": "J",
  711. "v_type": "Mat",
  712. "j_import": "org.opencv.core.MatOfPoint2f"
  713. },
  714. "vector_Point3f": {
  715. "j_type": "MatOfPoint3f",
  716. "jn_type": "long",
  717. "jni_type": "jlong",
  718. "jni_var": "std::vector<Point3f> %(n)s",
  719. "suffix": "J",
  720. "v_type": "Mat",
  721. "j_import": "org.opencv.core.MatOfPoint3f"
  722. },
  723. "vector_Point2d": {
  724. "j_type": "MatOfPoint2f",
  725. "jn_type": "long",
  726. "jni_type": "jlong",
  727. "jni_var": "std::vector<Point2f> %(n)s",
  728. "suffix": "J",
  729. "v_type": "Mat",
  730. "j_import": "org.opencv.core.MatOfPoint2f"
  731. },
  732. "vector_Point3d": {
  733. "j_type": "MatOfPoint3f",
  734. "jn_type": "long",
  735. "jni_type": "jlong",
  736. "jni_var": "std::vector<Point3f> %(n)s",
  737. "suffix": "J",
  738. "v_type": "Mat",
  739. "j_import": "org.opencv.core.MatOfPoint3f"
  740. },
  741. "vector_Point3i": {
  742. "j_type": "MatOfPoint3",
  743. "jn_type": "long",
  744. "jni_type": "jlong",
  745. "jni_var": "std::vector<Point3i> %(n)s",
  746. "suffix": "J",
  747. "v_type": "Mat",
  748. "j_import": "org.opencv.core.MatOfPoint3"
  749. },
  750. "vector_Rect": {
  751. "j_type": "MatOfRect",
  752. "jn_type": "long",
  753. "jni_type": "jlong",
  754. "jni_var": "std::vector<Rect> %(n)s",
  755. "suffix": "J",
  756. "v_type": "Mat",
  757. "j_import": "org.opencv.core.MatOfRect"
  758. },
  759. "vector_Rect2d": {
  760. "j_type": "MatOfRect2d",
  761. "jn_type": "long",
  762. "jni_type": "jlong",
  763. "jni_var": "std::vector<Rect2d> %(n)s",
  764. "suffix": "J",
  765. "v_type": "Mat",
  766. "j_import": "org.opencv.core.MatOfRect2d"
  767. },
  768. "vector_RotatedRect": {
  769. "j_type": "MatOfRotatedRect",
  770. "jn_type": "long",
  771. "jni_type": "jlong",
  772. "jni_var": "std::vector< RotatedRect > %(n)s",
  773. "suffix": "J",
  774. "v_type": "Mat",
  775. "j_import": "org.opencv.core.MatOfRotatedRect"
  776. },
  777. "vector_String": {
  778. "j_type": "List<String>",
  779. "jn_type": "List<String>",
  780. "jni_type": "jobject",
  781. "jni_var": "std::vector< String > %(n)s",
  782. "suffix": "Ljava_util_List",
  783. "v_type": "String",
  784. "j_import": "java.lang.String"
  785. },
  786. "vector_Vec4f": {
  787. "j_type": "MatOfFloat4",
  788. "jn_type": "long",
  789. "jni_type": "jlong",
  790. "jni_var": "std::vector<Vec4f> %(n)s",
  791. "suffix": "J",
  792. "v_type": "Mat",
  793. "j_import": "org.opencv.core.MatOfFloat4"
  794. },
  795. "vector_Vec4i": {
  796. "j_type": "MatOfInt4",
  797. "jn_type": "long",
  798. "jni_type": "jlong",
  799. "jni_var": "std::vector<Vec4i> %(n)s",
  800. "suffix": "J",
  801. "v_type": "Mat",
  802. "j_import": "org.opencv.core.MatOfInt4"
  803. },
  804. "vector_Vec6f": {
  805. "j_type": "MatOfFloat6",
  806. "jn_type": "long",
  807. "jni_type": "jlong",
  808. "jni_var": "std::vector<Vec6f> %(n)s",
  809. "suffix": "J",
  810. "v_type": "Mat",
  811. "j_import": "org.opencv.core.MatOfFloat6"
  812. },
  813. "vector_char": {
  814. "j_type": "MatOfByte",
  815. "jn_type": "long",
  816. "jni_type": "jlong",
  817. "jni_var": "std::vector<char> %(n)s",
  818. "suffix": "J",
  819. "v_type": "Mat",
  820. "j_import": "org.opencv.core.MatOfByte"
  821. },
  822. "vector_double": {
  823. "j_type": "MatOfDouble",
  824. "jn_type": "long",
  825. "jni_type": "jlong",
  826. "jni_var": "std::vector<double> %(n)s",
  827. "suffix": "J",
  828. "v_type": "Mat",
  829. "j_import": "org.opencv.core.MatOfDouble"
  830. },
  831. "vector_float": {
  832. "j_type": "MatOfFloat",
  833. "jn_type": "long",
  834. "jni_type": "jlong",
  835. "jni_var": "std::vector<float> %(n)s",
  836. "suffix": "J",
  837. "v_type": "Mat",
  838. "j_import": "org.opencv.core.MatOfFloat"
  839. },
  840. "vector_int": {
  841. "j_type": "MatOfInt",
  842. "jn_type": "long",
  843. "jni_type": "jlong",
  844. "jni_var": "std::vector<int> %(n)s",
  845. "suffix": "J",
  846. "v_type": "Mat",
  847. "j_import": "org.opencv.core.MatOfInt"
  848. },
  849. "vector_uchar": {
  850. "j_type": "MatOfByte",
  851. "jn_type": "long",
  852. "jni_type": "jlong",
  853. "jni_var": "std::vector<uchar> %(n)s",
  854. "suffix": "J",
  855. "v_type": "Mat",
  856. "j_import": "org.opencv.core.MatOfByte"
  857. },
  858. "vector_vector_DMatch": {
  859. "j_type": "List<MatOfDMatch>",
  860. "jn_type": "long",
  861. "jni_type": "jlong",
  862. "jni_var": "std::vector< std::vector<DMatch> > %(n)s",
  863. "v_type": "vector_Mat",
  864. "j_import": "org.opencv.core.MatOfDMatch"
  865. },
  866. "vector_vector_KeyPoint": {
  867. "j_type": "List<MatOfKeyPoint>",
  868. "jn_type": "long",
  869. "jni_type": "jlong",
  870. "jni_var": "std::vector< std::vector<KeyPoint> > %(n)s",
  871. "v_type": "vector_Mat",
  872. "j_import": "org.opencv.core.MatOfKeyPoint"
  873. },
  874. "vector_vector_Point": {
  875. "j_type": "List<MatOfPoint>",
  876. "jn_type": "long",
  877. "jni_type": "jlong",
  878. "jni_var": "std::vector< std::vector<Point> > %(n)s",
  879. "v_type": "vector_Mat",
  880. "j_import": "org.opencv.core.MatOfPoint"
  881. },
  882. "vector_vector_Point2f": {
  883. "j_type": "List<MatOfPoint2f>",
  884. "jn_type": "long",
  885. "jni_type": "jlong",
  886. "jni_var": "std::vector< std::vector<Point2f> > %(n)s",
  887. "v_type": "vector_Mat",
  888. "j_import": "org.opencv.core.MatOfPoint2f"
  889. },
  890. "vector_vector_Point3f": {
  891. "j_type": "List<MatOfPoint3f>",
  892. "jn_type": "long",
  893. "jni_type": "jlong",
  894. "jni_var": "std::vector< std::vector<Point3f> > %(n)s",
  895. "v_type": "vector_Mat",
  896. "j_import": "org.opencv.core.MatOfPoint3f"
  897. },
  898. "vector_vector_char": {
  899. "j_type": "List<MatOfByte>",
  900. "jn_type": "long",
  901. "jni_type": "jlong",
  902. "jni_var": "std::vector< std::vector<char> > %(n)s",
  903. "v_type": "vector_Mat",
  904. "j_import": "org.opencv.core.MatOfByte"
  905. }
  906. }
  907. }