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