Path: blob/master/modules/imgproc/misc/java/gen_dict.json
16358 views
{1"const_ignore_list": [2"CV_TM_.+",3"CV_COLORCVT_MAX",4"CV_.*Bayer.*",5"CV_YUV420(i|sp|p)2.+",6"CV_L?(BGRA?|RGBA?|GRAY|XYZ|YCrCb|Luv|Lab|HLS|YUV|HSV)\\d*2L?(BGRA?|RGBA?|GRAY|XYZ|YCrCb|Luv|Lab|HLS|YUV|HSV).*",7"CV_FLOODFILL_.+",8"CV_ADAPTIVE_THRESH_.+"9],10"const_private_list" : [11"CV_MOP_.+",12"CV_INTER_.+",13"CV_THRESH_.+",14"CV_INPAINT_.+",15"CV_RETR_.+",16"CV_CHAIN_APPROX_.+"17],18"missing_consts" : {19"Imgproc" : {20"private" : [21["IPL_BORDER_CONSTANT", 0 ],22["IPL_BORDER_REPLICATE", 1 ],23["IPL_BORDER_REFLECT", 2 ],24["IPL_BORDER_WRAP", 3 ],25["IPL_BORDER_REFLECT_101", 4 ],26["IPL_BORDER_TRANSPARENT", 5 ]27]28}29},30"ManualFuncs" : {31"Imgproc" : {32"getTextSize" : {33"j_code" : [34"\n",35"// C++: Size getTextSize(const String& text, int fontFace, double fontScale, int thickness, int* baseLine);",36"//javadoc:getTextSize(text, fontFace, fontScale, thickness, baseLine)",37"public static Size getTextSize(String text, int fontFace, double fontScale, int thickness, int[] baseLine) {",38" if(baseLine != null && baseLine.length != 1)",39" throw new java.lang.IllegalArgumentException(\"'baseLine' must be 'int[1]' or 'null'.\");",40" Size retVal = new Size(n_getTextSize(text, fontFace, fontScale, thickness, baseLine));",41" return retVal;",42"}",43"\n"44],45"jn_code" : [46"private static native double[] n_getTextSize(String text, int fontFace, double fontScale, int thickness, int[] baseLine);\n"47],48"cpp_code" : [49"\n",50" // C++: Size getTextSize(const String& text, int fontFace, double fontScale, int thickness, int* baseLine);",51" JNIEXPORT jdoubleArray JNICALL Java_org_opencv_imgproc_Imgproc_n_1getTextSize (JNIEnv*, jclass, jstring, jint, jdouble, jint, jintArray);",52"\n",53" JNIEXPORT jdoubleArray JNICALL Java_org_opencv_imgproc_Imgproc_n_1getTextSize",54" (JNIEnv* env, jclass, jstring text, jint fontFace, jdouble fontScale, jint thickness, jintArray baseLine)",55" {",56" try {",57" LOGD(\"Core::n_1getTextSize()\");",58" jdoubleArray result;",59" result = env->NewDoubleArray(2);",60" if (result == NULL) {",61" return NULL; /* out of memory error thrown */",62" }",63"\n",64" const char* utf_text = env->GetStringUTFChars(text, 0);",65" String n_text( utf_text ? utf_text : \"\" );",66" env->ReleaseStringUTFChars(text, utf_text);",67"\n",68" int _baseLine;",69" int* pbaseLine = 0;",70"\n",71" if (baseLine != NULL)",72" pbaseLine = &_baseLine;",73"\n",74" cv::Size rsize = cv::getTextSize(n_text, (int)fontFace, (double)fontScale, (int)thickness, pbaseLine);",75"\n",76" jdouble fill[2];",77" fill[0]=rsize.width;",78" fill[1]=rsize.height;",79"\n",80" env->SetDoubleArrayRegion(result, 0, 2, fill);",81"\n",82" if (baseLine != NULL) {",83" jint jbaseLine = (jint)(*pbaseLine);",84" env->SetIntArrayRegion(baseLine, 0, 1, &jbaseLine);",85" }",86"\n",87" return result;",88"\n",89" } catch(const cv::Exception& e) {",90" LOGD(\"Imgproc::n_1getTextSize() caught cv::Exception: %s\", e.what());",91" jclass je = env->FindClass(\"org/opencv/core/CvException\");",92" if(!je) je = env->FindClass(\"java/lang/Exception\");",93" env->ThrowNew(je, e.what());",94" return NULL;",95" } catch (...) {",96" LOGD(\"Imgproc::n_1getTextSize() caught unknown exception (...)\");",97" jclass je = env->FindClass(\"java/lang/Exception\");",98" env->ThrowNew(je, \"Unknown exception in JNI code {core::getTextSize()}\");",99" return NULL;",100" }",101" }"102]103}104}105},106"func_arg_fix" : {107"goodFeaturesToTrack" : { "corners" : {"ctype" : "vector_Point"} },108"minEnclosingCircle" : { "points" : {"ctype" : "vector_Point2f"} },109"fitEllipse" : { "points" : {"ctype" : "vector_Point2f"} },110"fillPoly" : { "pts" : {"ctype" : "vector_vector_Point"} },111"polylines" : { "pts" : {"ctype" : "vector_vector_Point"} },112"fillConvexPoly" : { "points" : {"ctype" : "vector_Point"} },113"approxPolyDP" : { "curve" : {"ctype" : "vector_Point2f"},114"approxCurve" : {"ctype" : "vector_Point2f"} },115"arcLength" : { "curve" : {"ctype" : "vector_Point2f"} },116"pointPolygonTest" : { "contour" : {"ctype" : "vector_Point2f"} },117"minAreaRect" : { "points" : {"ctype" : "vector_Point2f"} },118"getAffineTransform" : { "src" : {"ctype" : "vector_Point2f"},119"dst" : {"ctype" : "vector_Point2f"} },120"drawContours" : {"contours" : {"ctype" : "vector_vector_Point"} },121"findContours" : {"contours" : {"ctype" : "vector_vector_Point"} },122"convexityDefects" : { "contour" : {"ctype" : "vector_Point"},123"convexhull" : {"ctype" : "vector_int"},124"convexityDefects" : {"ctype" : "vector_Vec4i"} },125"isContourConvex" : { "contour" : {"ctype" : "vector_Point"} },126"convexHull" : { "points" : {"ctype" : "vector_Point"},127"hull" : {"ctype" : "vector_int"},128"returnPoints" : {"ctype" : ""} }129}130}131132133