Ximgproc.cs 119 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625
  1. 
  2. using OpenCVForUnity.Calib3dModule;
  3. using OpenCVForUnity.CoreModule;
  4. using OpenCVForUnity.UtilsModule;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Runtime.InteropServices;
  8. namespace OpenCVForUnity.XimgprocModule
  9. {
  10. // C++: class Ximgproc
  11. //javadoc: Ximgproc
  12. public class Ximgproc
  13. {
  14. // C++: enum WMFWeightType
  15. public const int WMF_EXP = 1;
  16. public const int WMF_IV1 = 1 << 1;
  17. public const int WMF_IV2 = 1 << 2;
  18. public const int WMF_COS = 1 << 3;
  19. public const int WMF_JAC = 1 << 4;
  20. public const int WMF_OFF = 1 << 5;
  21. // C++: enum HoughDeskewOption
  22. public const int HDO_RAW = 0;
  23. public const int HDO_DESKEW = 1;
  24. // C++: enum AngleRangeOption
  25. public const int ARO_0_45 = 0;
  26. public const int ARO_45_90 = 1;
  27. public const int ARO_90_135 = 2;
  28. public const int ARO_315_0 = 3;
  29. public const int ARO_315_45 = 4;
  30. public const int ARO_45_135 = 5;
  31. public const int ARO_315_135 = 6;
  32. public const int ARO_CTR_HOR = 7;
  33. public const int ARO_CTR_VER = 8;
  34. // C++: enum SLICType
  35. public const int SLIC = 100;
  36. public const int SLICO = 101;
  37. public const int MSLIC = 102;
  38. // C++: enum ThinningTypes
  39. public const int THINNING_ZHANGSUEN = 0;
  40. public const int THINNING_GUOHALL = 1;
  41. // C++: enum LocalBinarizationMethods
  42. public const int BINARIZATION_NIBLACK = 0;
  43. public const int BINARIZATION_SAUVOLA = 1;
  44. public const int BINARIZATION_WOLF = 2;
  45. public const int BINARIZATION_NICK = 3;
  46. // C++: enum EdgeAwareFiltersList
  47. public const int DTF_NC = 0;
  48. public const int DTF_IC = 1;
  49. public const int DTF_RF = 2;
  50. public const int GUIDED_FILTER = 3;
  51. public const int AM_FILTER = 4;
  52. // C++: enum HoughOp
  53. public const int FHT_MIN = 0;
  54. public const int FHT_MAX = 1;
  55. public const int FHT_ADD = 2;
  56. public const int FHT_AVE = 3;
  57. //
  58. // C++: Ptr_AdaptiveManifoldFilter cv::ximgproc::createAMFilter(double sigma_s, double sigma_r, bool adjust_outliers = false)
  59. //
  60. //javadoc: createAMFilter(sigma_s, sigma_r, adjust_outliers)
  61. public static AdaptiveManifoldFilter createAMFilter (double sigma_s, double sigma_r, bool adjust_outliers)
  62. {
  63. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  64. AdaptiveManifoldFilter retVal = AdaptiveManifoldFilter.__fromPtr__(ximgproc_Ximgproc_createAMFilter_10(sigma_s, sigma_r, adjust_outliers));
  65. return retVal;
  66. #else
  67. return null;
  68. #endif
  69. }
  70. //javadoc: createAMFilter(sigma_s, sigma_r)
  71. public static AdaptiveManifoldFilter createAMFilter (double sigma_s, double sigma_r)
  72. {
  73. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  74. AdaptiveManifoldFilter retVal = AdaptiveManifoldFilter.__fromPtr__(ximgproc_Ximgproc_createAMFilter_11(sigma_s, sigma_r));
  75. return retVal;
  76. #else
  77. return null;
  78. #endif
  79. }
  80. //
  81. // C++: Ptr_ContourFitting cv::ximgproc::createContourFitting(int ctr = 1024, int fd = 16)
  82. //
  83. //javadoc: createContourFitting(ctr, fd)
  84. public static ContourFitting createContourFitting (int ctr, int fd)
  85. {
  86. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  87. ContourFitting retVal = ContourFitting.__fromPtr__(ximgproc_Ximgproc_createContourFitting_10(ctr, fd));
  88. return retVal;
  89. #else
  90. return null;
  91. #endif
  92. }
  93. //javadoc: createContourFitting(ctr)
  94. public static ContourFitting createContourFitting (int ctr)
  95. {
  96. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  97. ContourFitting retVal = ContourFitting.__fromPtr__(ximgproc_Ximgproc_createContourFitting_11(ctr));
  98. return retVal;
  99. #else
  100. return null;
  101. #endif
  102. }
  103. //javadoc: createContourFitting()
  104. public static ContourFitting createContourFitting ()
  105. {
  106. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  107. ContourFitting retVal = ContourFitting.__fromPtr__(ximgproc_Ximgproc_createContourFitting_12());
  108. return retVal;
  109. #else
  110. return null;
  111. #endif
  112. }
  113. //
  114. // C++: Ptr_DTFilter cv::ximgproc::createDTFilter(Mat guide, double sigmaSpatial, double sigmaColor, int mode = DTF_NC, int numIters = 3)
  115. //
  116. //javadoc: createDTFilter(guide, sigmaSpatial, sigmaColor, mode, numIters)
  117. public static DTFilter createDTFilter (Mat guide, double sigmaSpatial, double sigmaColor, int mode, int numIters)
  118. {
  119. if (guide != null) guide.ThrowIfDisposed ();
  120. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  121. DTFilter retVal = DTFilter.__fromPtr__(ximgproc_Ximgproc_createDTFilter_10(guide.nativeObj, sigmaSpatial, sigmaColor, mode, numIters));
  122. return retVal;
  123. #else
  124. return null;
  125. #endif
  126. }
  127. //javadoc: createDTFilter(guide, sigmaSpatial, sigmaColor, mode)
  128. public static DTFilter createDTFilter (Mat guide, double sigmaSpatial, double sigmaColor, int mode)
  129. {
  130. if (guide != null) guide.ThrowIfDisposed ();
  131. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  132. DTFilter retVal = DTFilter.__fromPtr__(ximgproc_Ximgproc_createDTFilter_11(guide.nativeObj, sigmaSpatial, sigmaColor, mode));
  133. return retVal;
  134. #else
  135. return null;
  136. #endif
  137. }
  138. //javadoc: createDTFilter(guide, sigmaSpatial, sigmaColor)
  139. public static DTFilter createDTFilter (Mat guide, double sigmaSpatial, double sigmaColor)
  140. {
  141. if (guide != null) guide.ThrowIfDisposed ();
  142. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  143. DTFilter retVal = DTFilter.__fromPtr__(ximgproc_Ximgproc_createDTFilter_12(guide.nativeObj, sigmaSpatial, sigmaColor));
  144. return retVal;
  145. #else
  146. return null;
  147. #endif
  148. }
  149. //
  150. // C++: Ptr_DisparityWLSFilter cv::ximgproc::createDisparityWLSFilter(Ptr_StereoMatcher matcher_left)
  151. //
  152. //javadoc: createDisparityWLSFilter(matcher_left)
  153. public static DisparityWLSFilter createDisparityWLSFilter (StereoMatcher matcher_left)
  154. {
  155. if (matcher_left != null) matcher_left.ThrowIfDisposed ();
  156. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  157. DisparityWLSFilter retVal = DisparityWLSFilter.__fromPtr__(ximgproc_Ximgproc_createDisparityWLSFilter_10(matcher_left.getNativeObjAddr()));
  158. return retVal;
  159. #else
  160. return null;
  161. #endif
  162. }
  163. //
  164. // C++: Ptr_DisparityWLSFilter cv::ximgproc::createDisparityWLSFilterGeneric(bool use_confidence)
  165. //
  166. //javadoc: createDisparityWLSFilterGeneric(use_confidence)
  167. public static DisparityWLSFilter createDisparityWLSFilterGeneric (bool use_confidence)
  168. {
  169. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  170. DisparityWLSFilter retVal = DisparityWLSFilter.__fromPtr__(ximgproc_Ximgproc_createDisparityWLSFilterGeneric_10(use_confidence));
  171. return retVal;
  172. #else
  173. return null;
  174. #endif
  175. }
  176. //
  177. // C++: Ptr_EdgeAwareInterpolator cv::ximgproc::createEdgeAwareInterpolator()
  178. //
  179. //javadoc: createEdgeAwareInterpolator()
  180. public static EdgeAwareInterpolator createEdgeAwareInterpolator ()
  181. {
  182. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  183. EdgeAwareInterpolator retVal = EdgeAwareInterpolator.__fromPtr__(ximgproc_Ximgproc_createEdgeAwareInterpolator_10());
  184. return retVal;
  185. #else
  186. return null;
  187. #endif
  188. }
  189. //
  190. // C++: Ptr_EdgeBoxes cv::ximgproc::createEdgeBoxes(float alpha = 0.65f, float beta = 0.75f, float eta = 1, float minScore = 0.01f, int maxBoxes = 10000, float edgeMinMag = 0.1f, float edgeMergeThr = 0.5f, float clusterMinMag = 0.5f, float maxAspectRatio = 3, float minBoxArea = 1000, float gamma = 2, float kappa = 1.5f)
  191. //
  192. //javadoc: createEdgeBoxes(alpha, beta, eta, minScore, maxBoxes, edgeMinMag, edgeMergeThr, clusterMinMag, maxAspectRatio, minBoxArea, gamma, kappa)
  193. public static EdgeBoxes createEdgeBoxes (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag, float edgeMergeThr, float clusterMinMag, float maxAspectRatio, float minBoxArea, float gamma, float kappa)
  194. {
  195. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  196. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_10(alpha, beta, eta, minScore, maxBoxes, edgeMinMag, edgeMergeThr, clusterMinMag, maxAspectRatio, minBoxArea, gamma, kappa));
  197. return retVal;
  198. #else
  199. return null;
  200. #endif
  201. }
  202. //javadoc: createEdgeBoxes(alpha, beta, eta, minScore, maxBoxes, edgeMinMag, edgeMergeThr, clusterMinMag, maxAspectRatio, minBoxArea, gamma)
  203. public static EdgeBoxes createEdgeBoxes (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag, float edgeMergeThr, float clusterMinMag, float maxAspectRatio, float minBoxArea, float gamma)
  204. {
  205. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  206. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_11(alpha, beta, eta, minScore, maxBoxes, edgeMinMag, edgeMergeThr, clusterMinMag, maxAspectRatio, minBoxArea, gamma));
  207. return retVal;
  208. #else
  209. return null;
  210. #endif
  211. }
  212. //javadoc: createEdgeBoxes(alpha, beta, eta, minScore, maxBoxes, edgeMinMag, edgeMergeThr, clusterMinMag, maxAspectRatio, minBoxArea)
  213. public static EdgeBoxes createEdgeBoxes (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag, float edgeMergeThr, float clusterMinMag, float maxAspectRatio, float minBoxArea)
  214. {
  215. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  216. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_12(alpha, beta, eta, minScore, maxBoxes, edgeMinMag, edgeMergeThr, clusterMinMag, maxAspectRatio, minBoxArea));
  217. return retVal;
  218. #else
  219. return null;
  220. #endif
  221. }
  222. //javadoc: createEdgeBoxes(alpha, beta, eta, minScore, maxBoxes, edgeMinMag, edgeMergeThr, clusterMinMag, maxAspectRatio)
  223. public static EdgeBoxes createEdgeBoxes (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag, float edgeMergeThr, float clusterMinMag, float maxAspectRatio)
  224. {
  225. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  226. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_13(alpha, beta, eta, minScore, maxBoxes, edgeMinMag, edgeMergeThr, clusterMinMag, maxAspectRatio));
  227. return retVal;
  228. #else
  229. return null;
  230. #endif
  231. }
  232. //javadoc: createEdgeBoxes(alpha, beta, eta, minScore, maxBoxes, edgeMinMag, edgeMergeThr, clusterMinMag)
  233. public static EdgeBoxes createEdgeBoxes (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag, float edgeMergeThr, float clusterMinMag)
  234. {
  235. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  236. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_14(alpha, beta, eta, minScore, maxBoxes, edgeMinMag, edgeMergeThr, clusterMinMag));
  237. return retVal;
  238. #else
  239. return null;
  240. #endif
  241. }
  242. //javadoc: createEdgeBoxes(alpha, beta, eta, minScore, maxBoxes, edgeMinMag, edgeMergeThr)
  243. public static EdgeBoxes createEdgeBoxes (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag, float edgeMergeThr)
  244. {
  245. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  246. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_15(alpha, beta, eta, minScore, maxBoxes, edgeMinMag, edgeMergeThr));
  247. return retVal;
  248. #else
  249. return null;
  250. #endif
  251. }
  252. //javadoc: createEdgeBoxes(alpha, beta, eta, minScore, maxBoxes, edgeMinMag)
  253. public static EdgeBoxes createEdgeBoxes (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag)
  254. {
  255. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  256. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_16(alpha, beta, eta, minScore, maxBoxes, edgeMinMag));
  257. return retVal;
  258. #else
  259. return null;
  260. #endif
  261. }
  262. //javadoc: createEdgeBoxes(alpha, beta, eta, minScore, maxBoxes)
  263. public static EdgeBoxes createEdgeBoxes (float alpha, float beta, float eta, float minScore, int maxBoxes)
  264. {
  265. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  266. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_17(alpha, beta, eta, minScore, maxBoxes));
  267. return retVal;
  268. #else
  269. return null;
  270. #endif
  271. }
  272. //javadoc: createEdgeBoxes(alpha, beta, eta, minScore)
  273. public static EdgeBoxes createEdgeBoxes (float alpha, float beta, float eta, float minScore)
  274. {
  275. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  276. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_18(alpha, beta, eta, minScore));
  277. return retVal;
  278. #else
  279. return null;
  280. #endif
  281. }
  282. //javadoc: createEdgeBoxes(alpha, beta, eta)
  283. public static EdgeBoxes createEdgeBoxes (float alpha, float beta, float eta)
  284. {
  285. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  286. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_19(alpha, beta, eta));
  287. return retVal;
  288. #else
  289. return null;
  290. #endif
  291. }
  292. //javadoc: createEdgeBoxes(alpha, beta)
  293. public static EdgeBoxes createEdgeBoxes (float alpha, float beta)
  294. {
  295. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  296. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_110(alpha, beta));
  297. return retVal;
  298. #else
  299. return null;
  300. #endif
  301. }
  302. //javadoc: createEdgeBoxes(alpha)
  303. public static EdgeBoxes createEdgeBoxes (float alpha)
  304. {
  305. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  306. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_111(alpha));
  307. return retVal;
  308. #else
  309. return null;
  310. #endif
  311. }
  312. //javadoc: createEdgeBoxes()
  313. public static EdgeBoxes createEdgeBoxes ()
  314. {
  315. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  316. EdgeBoxes retVal = EdgeBoxes.__fromPtr__(ximgproc_Ximgproc_createEdgeBoxes_112());
  317. return retVal;
  318. #else
  319. return null;
  320. #endif
  321. }
  322. //
  323. // C++: Ptr_FastBilateralSolverFilter cv::ximgproc::createFastBilateralSolverFilter(Mat guide, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda = 128.0, int num_iter = 25, double max_tol = 1e-5)
  324. //
  325. //javadoc: createFastBilateralSolverFilter(guide, sigma_spatial, sigma_luma, sigma_chroma, lambda, num_iter, max_tol)
  326. public static FastBilateralSolverFilter createFastBilateralSolverFilter (Mat guide, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda, int num_iter, double max_tol)
  327. {
  328. if (guide != null) guide.ThrowIfDisposed ();
  329. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  330. FastBilateralSolverFilter retVal = FastBilateralSolverFilter.__fromPtr__(ximgproc_Ximgproc_createFastBilateralSolverFilter_10(guide.nativeObj, sigma_spatial, sigma_luma, sigma_chroma, lambda, num_iter, max_tol));
  331. return retVal;
  332. #else
  333. return null;
  334. #endif
  335. }
  336. //javadoc: createFastBilateralSolverFilter(guide, sigma_spatial, sigma_luma, sigma_chroma, lambda, num_iter)
  337. public static FastBilateralSolverFilter createFastBilateralSolverFilter (Mat guide, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda, int num_iter)
  338. {
  339. if (guide != null) guide.ThrowIfDisposed ();
  340. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  341. FastBilateralSolverFilter retVal = FastBilateralSolverFilter.__fromPtr__(ximgproc_Ximgproc_createFastBilateralSolverFilter_11(guide.nativeObj, sigma_spatial, sigma_luma, sigma_chroma, lambda, num_iter));
  342. return retVal;
  343. #else
  344. return null;
  345. #endif
  346. }
  347. //javadoc: createFastBilateralSolverFilter(guide, sigma_spatial, sigma_luma, sigma_chroma, lambda)
  348. public static FastBilateralSolverFilter createFastBilateralSolverFilter (Mat guide, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda)
  349. {
  350. if (guide != null) guide.ThrowIfDisposed ();
  351. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  352. FastBilateralSolverFilter retVal = FastBilateralSolverFilter.__fromPtr__(ximgproc_Ximgproc_createFastBilateralSolverFilter_12(guide.nativeObj, sigma_spatial, sigma_luma, sigma_chroma, lambda));
  353. return retVal;
  354. #else
  355. return null;
  356. #endif
  357. }
  358. //javadoc: createFastBilateralSolverFilter(guide, sigma_spatial, sigma_luma, sigma_chroma)
  359. public static FastBilateralSolverFilter createFastBilateralSolverFilter (Mat guide, double sigma_spatial, double sigma_luma, double sigma_chroma)
  360. {
  361. if (guide != null) guide.ThrowIfDisposed ();
  362. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  363. FastBilateralSolverFilter retVal = FastBilateralSolverFilter.__fromPtr__(ximgproc_Ximgproc_createFastBilateralSolverFilter_13(guide.nativeObj, sigma_spatial, sigma_luma, sigma_chroma));
  364. return retVal;
  365. #else
  366. return null;
  367. #endif
  368. }
  369. //
  370. // C++: Ptr_FastGlobalSmootherFilter cv::ximgproc::createFastGlobalSmootherFilter(Mat guide, double lambda, double sigma_color, double lambda_attenuation = 0.25, int num_iter = 3)
  371. //
  372. //javadoc: createFastGlobalSmootherFilter(guide, lambda, sigma_color, lambda_attenuation, num_iter)
  373. public static FastGlobalSmootherFilter createFastGlobalSmootherFilter (Mat guide, double lambda, double sigma_color, double lambda_attenuation, int num_iter)
  374. {
  375. if (guide != null) guide.ThrowIfDisposed ();
  376. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  377. FastGlobalSmootherFilter retVal = FastGlobalSmootherFilter.__fromPtr__(ximgproc_Ximgproc_createFastGlobalSmootherFilter_10(guide.nativeObj, lambda, sigma_color, lambda_attenuation, num_iter));
  378. return retVal;
  379. #else
  380. return null;
  381. #endif
  382. }
  383. //javadoc: createFastGlobalSmootherFilter(guide, lambda, sigma_color, lambda_attenuation)
  384. public static FastGlobalSmootherFilter createFastGlobalSmootherFilter (Mat guide, double lambda, double sigma_color, double lambda_attenuation)
  385. {
  386. if (guide != null) guide.ThrowIfDisposed ();
  387. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  388. FastGlobalSmootherFilter retVal = FastGlobalSmootherFilter.__fromPtr__(ximgproc_Ximgproc_createFastGlobalSmootherFilter_11(guide.nativeObj, lambda, sigma_color, lambda_attenuation));
  389. return retVal;
  390. #else
  391. return null;
  392. #endif
  393. }
  394. //javadoc: createFastGlobalSmootherFilter(guide, lambda, sigma_color)
  395. public static FastGlobalSmootherFilter createFastGlobalSmootherFilter (Mat guide, double lambda, double sigma_color)
  396. {
  397. if (guide != null) guide.ThrowIfDisposed ();
  398. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  399. FastGlobalSmootherFilter retVal = FastGlobalSmootherFilter.__fromPtr__(ximgproc_Ximgproc_createFastGlobalSmootherFilter_12(guide.nativeObj, lambda, sigma_color));
  400. return retVal;
  401. #else
  402. return null;
  403. #endif
  404. }
  405. //
  406. // C++: Ptr_FastLineDetector cv::ximgproc::createFastLineDetector(int _length_threshold = 10, float _distance_threshold = 1.414213562f, double _canny_th1 = 50.0, double _canny_th2 = 50.0, int _canny_aperture_size = 3, bool _do_merge = false)
  407. //
  408. //javadoc: createFastLineDetector(_length_threshold, _distance_threshold, _canny_th1, _canny_th2, _canny_aperture_size, _do_merge)
  409. public static FastLineDetector createFastLineDetector (int _length_threshold, float _distance_threshold, double _canny_th1, double _canny_th2, int _canny_aperture_size, bool _do_merge)
  410. {
  411. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  412. FastLineDetector retVal = FastLineDetector.__fromPtr__(ximgproc_Ximgproc_createFastLineDetector_10(_length_threshold, _distance_threshold, _canny_th1, _canny_th2, _canny_aperture_size, _do_merge));
  413. return retVal;
  414. #else
  415. return null;
  416. #endif
  417. }
  418. //javadoc: createFastLineDetector(_length_threshold, _distance_threshold, _canny_th1, _canny_th2, _canny_aperture_size)
  419. public static FastLineDetector createFastLineDetector (int _length_threshold, float _distance_threshold, double _canny_th1, double _canny_th2, int _canny_aperture_size)
  420. {
  421. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  422. FastLineDetector retVal = FastLineDetector.__fromPtr__(ximgproc_Ximgproc_createFastLineDetector_11(_length_threshold, _distance_threshold, _canny_th1, _canny_th2, _canny_aperture_size));
  423. return retVal;
  424. #else
  425. return null;
  426. #endif
  427. }
  428. //javadoc: createFastLineDetector(_length_threshold, _distance_threshold, _canny_th1, _canny_th2)
  429. public static FastLineDetector createFastLineDetector (int _length_threshold, float _distance_threshold, double _canny_th1, double _canny_th2)
  430. {
  431. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  432. FastLineDetector retVal = FastLineDetector.__fromPtr__(ximgproc_Ximgproc_createFastLineDetector_12(_length_threshold, _distance_threshold, _canny_th1, _canny_th2));
  433. return retVal;
  434. #else
  435. return null;
  436. #endif
  437. }
  438. //javadoc: createFastLineDetector(_length_threshold, _distance_threshold, _canny_th1)
  439. public static FastLineDetector createFastLineDetector (int _length_threshold, float _distance_threshold, double _canny_th1)
  440. {
  441. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  442. FastLineDetector retVal = FastLineDetector.__fromPtr__(ximgproc_Ximgproc_createFastLineDetector_13(_length_threshold, _distance_threshold, _canny_th1));
  443. return retVal;
  444. #else
  445. return null;
  446. #endif
  447. }
  448. //javadoc: createFastLineDetector(_length_threshold, _distance_threshold)
  449. public static FastLineDetector createFastLineDetector (int _length_threshold, float _distance_threshold)
  450. {
  451. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  452. FastLineDetector retVal = FastLineDetector.__fromPtr__(ximgproc_Ximgproc_createFastLineDetector_14(_length_threshold, _distance_threshold));
  453. return retVal;
  454. #else
  455. return null;
  456. #endif
  457. }
  458. //javadoc: createFastLineDetector(_length_threshold)
  459. public static FastLineDetector createFastLineDetector (int _length_threshold)
  460. {
  461. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  462. FastLineDetector retVal = FastLineDetector.__fromPtr__(ximgproc_Ximgproc_createFastLineDetector_15(_length_threshold));
  463. return retVal;
  464. #else
  465. return null;
  466. #endif
  467. }
  468. //javadoc: createFastLineDetector()
  469. public static FastLineDetector createFastLineDetector ()
  470. {
  471. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  472. FastLineDetector retVal = FastLineDetector.__fromPtr__(ximgproc_Ximgproc_createFastLineDetector_16());
  473. return retVal;
  474. #else
  475. return null;
  476. #endif
  477. }
  478. //
  479. // C++: Ptr_GraphSegmentation cv::ximgproc::segmentation::createGraphSegmentation(double sigma = 0.5, float k = 300, int min_size = 100)
  480. //
  481. //javadoc: createGraphSegmentation(sigma, k, min_size)
  482. public static GraphSegmentation createGraphSegmentation (double sigma, float k, int min_size)
  483. {
  484. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  485. GraphSegmentation retVal = GraphSegmentation.__fromPtr__(ximgproc_Ximgproc_createGraphSegmentation_10(sigma, k, min_size));
  486. return retVal;
  487. #else
  488. return null;
  489. #endif
  490. }
  491. //javadoc: createGraphSegmentation(sigma, k)
  492. public static GraphSegmentation createGraphSegmentation (double sigma, float k)
  493. {
  494. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  495. GraphSegmentation retVal = GraphSegmentation.__fromPtr__(ximgproc_Ximgproc_createGraphSegmentation_11(sigma, k));
  496. return retVal;
  497. #else
  498. return null;
  499. #endif
  500. }
  501. //javadoc: createGraphSegmentation(sigma)
  502. public static GraphSegmentation createGraphSegmentation (double sigma)
  503. {
  504. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  505. GraphSegmentation retVal = GraphSegmentation.__fromPtr__(ximgproc_Ximgproc_createGraphSegmentation_12(sigma));
  506. return retVal;
  507. #else
  508. return null;
  509. #endif
  510. }
  511. //javadoc: createGraphSegmentation()
  512. public static GraphSegmentation createGraphSegmentation ()
  513. {
  514. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  515. GraphSegmentation retVal = GraphSegmentation.__fromPtr__(ximgproc_Ximgproc_createGraphSegmentation_13());
  516. return retVal;
  517. #else
  518. return null;
  519. #endif
  520. }
  521. //
  522. // C++: Ptr_GuidedFilter cv::ximgproc::createGuidedFilter(Mat guide, int radius, double eps)
  523. //
  524. //javadoc: createGuidedFilter(guide, radius, eps)
  525. public static GuidedFilter createGuidedFilter (Mat guide, int radius, double eps)
  526. {
  527. if (guide != null) guide.ThrowIfDisposed ();
  528. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  529. GuidedFilter retVal = GuidedFilter.__fromPtr__(ximgproc_Ximgproc_createGuidedFilter_10(guide.nativeObj, radius, eps));
  530. return retVal;
  531. #else
  532. return null;
  533. #endif
  534. }
  535. //
  536. // C++: Ptr_RFFeatureGetter cv::ximgproc::createRFFeatureGetter()
  537. //
  538. //javadoc: createRFFeatureGetter()
  539. public static RFFeatureGetter createRFFeatureGetter ()
  540. {
  541. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  542. RFFeatureGetter retVal = RFFeatureGetter.__fromPtr__(ximgproc_Ximgproc_createRFFeatureGetter_10());
  543. return retVal;
  544. #else
  545. return null;
  546. #endif
  547. }
  548. //
  549. // C++: Ptr_SelectiveSearchSegmentation cv::ximgproc::segmentation::createSelectiveSearchSegmentation()
  550. //
  551. //javadoc: createSelectiveSearchSegmentation()
  552. public static SelectiveSearchSegmentation createSelectiveSearchSegmentation ()
  553. {
  554. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  555. SelectiveSearchSegmentation retVal = SelectiveSearchSegmentation.__fromPtr__(ximgproc_Ximgproc_createSelectiveSearchSegmentation_10());
  556. return retVal;
  557. #else
  558. return null;
  559. #endif
  560. }
  561. //
  562. // C++: Ptr_SelectiveSearchSegmentationStrategyColor cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyColor()
  563. //
  564. //javadoc: createSelectiveSearchSegmentationStrategyColor()
  565. public static SelectiveSearchSegmentationStrategyColor createSelectiveSearchSegmentationStrategyColor ()
  566. {
  567. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  568. SelectiveSearchSegmentationStrategyColor retVal = SelectiveSearchSegmentationStrategyColor.__fromPtr__(ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyColor_10());
  569. return retVal;
  570. #else
  571. return null;
  572. #endif
  573. }
  574. //
  575. // C++: Ptr_SelectiveSearchSegmentationStrategyFill cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyFill()
  576. //
  577. //javadoc: createSelectiveSearchSegmentationStrategyFill()
  578. public static SelectiveSearchSegmentationStrategyFill createSelectiveSearchSegmentationStrategyFill ()
  579. {
  580. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  581. SelectiveSearchSegmentationStrategyFill retVal = SelectiveSearchSegmentationStrategyFill.__fromPtr__(ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyFill_10());
  582. return retVal;
  583. #else
  584. return null;
  585. #endif
  586. }
  587. //
  588. // C++: Ptr_SelectiveSearchSegmentationStrategyMultiple cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple(Ptr_SelectiveSearchSegmentationStrategy s1, Ptr_SelectiveSearchSegmentationStrategy s2, Ptr_SelectiveSearchSegmentationStrategy s3, Ptr_SelectiveSearchSegmentationStrategy s4)
  589. //
  590. //javadoc: createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3, s4)
  591. public static SelectiveSearchSegmentationStrategyMultiple createSelectiveSearchSegmentationStrategyMultiple (SelectiveSearchSegmentationStrategy s1, SelectiveSearchSegmentationStrategy s2, SelectiveSearchSegmentationStrategy s3, SelectiveSearchSegmentationStrategy s4)
  592. {
  593. if (s1 != null) s1.ThrowIfDisposed ();
  594. if (s2 != null) s2.ThrowIfDisposed ();
  595. if (s3 != null) s3.ThrowIfDisposed ();
  596. if (s4 != null) s4.ThrowIfDisposed ();
  597. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  598. SelectiveSearchSegmentationStrategyMultiple retVal = SelectiveSearchSegmentationStrategyMultiple.__fromPtr__(ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyMultiple_10(s1.getNativeObjAddr(), s2.getNativeObjAddr(), s3.getNativeObjAddr(), s4.getNativeObjAddr()));
  599. return retVal;
  600. #else
  601. return null;
  602. #endif
  603. }
  604. //
  605. // C++: Ptr_SelectiveSearchSegmentationStrategyMultiple cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple(Ptr_SelectiveSearchSegmentationStrategy s1, Ptr_SelectiveSearchSegmentationStrategy s2, Ptr_SelectiveSearchSegmentationStrategy s3)
  606. //
  607. //javadoc: createSelectiveSearchSegmentationStrategyMultiple(s1, s2, s3)
  608. public static SelectiveSearchSegmentationStrategyMultiple createSelectiveSearchSegmentationStrategyMultiple (SelectiveSearchSegmentationStrategy s1, SelectiveSearchSegmentationStrategy s2, SelectiveSearchSegmentationStrategy s3)
  609. {
  610. if (s1 != null) s1.ThrowIfDisposed ();
  611. if (s2 != null) s2.ThrowIfDisposed ();
  612. if (s3 != null) s3.ThrowIfDisposed ();
  613. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  614. SelectiveSearchSegmentationStrategyMultiple retVal = SelectiveSearchSegmentationStrategyMultiple.__fromPtr__(ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyMultiple_11(s1.getNativeObjAddr(), s2.getNativeObjAddr(), s3.getNativeObjAddr()));
  615. return retVal;
  616. #else
  617. return null;
  618. #endif
  619. }
  620. //
  621. // C++: Ptr_SelectiveSearchSegmentationStrategyMultiple cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple(Ptr_SelectiveSearchSegmentationStrategy s1, Ptr_SelectiveSearchSegmentationStrategy s2)
  622. //
  623. //javadoc: createSelectiveSearchSegmentationStrategyMultiple(s1, s2)
  624. public static SelectiveSearchSegmentationStrategyMultiple createSelectiveSearchSegmentationStrategyMultiple (SelectiveSearchSegmentationStrategy s1, SelectiveSearchSegmentationStrategy s2)
  625. {
  626. if (s1 != null) s1.ThrowIfDisposed ();
  627. if (s2 != null) s2.ThrowIfDisposed ();
  628. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  629. SelectiveSearchSegmentationStrategyMultiple retVal = SelectiveSearchSegmentationStrategyMultiple.__fromPtr__(ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyMultiple_12(s1.getNativeObjAddr(), s2.getNativeObjAddr()));
  630. return retVal;
  631. #else
  632. return null;
  633. #endif
  634. }
  635. //
  636. // C++: Ptr_SelectiveSearchSegmentationStrategyMultiple cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple(Ptr_SelectiveSearchSegmentationStrategy s1)
  637. //
  638. //javadoc: createSelectiveSearchSegmentationStrategyMultiple(s1)
  639. public static SelectiveSearchSegmentationStrategyMultiple createSelectiveSearchSegmentationStrategyMultiple (SelectiveSearchSegmentationStrategy s1)
  640. {
  641. if (s1 != null) s1.ThrowIfDisposed ();
  642. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  643. SelectiveSearchSegmentationStrategyMultiple retVal = SelectiveSearchSegmentationStrategyMultiple.__fromPtr__(ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyMultiple_13(s1.getNativeObjAddr()));
  644. return retVal;
  645. #else
  646. return null;
  647. #endif
  648. }
  649. //
  650. // C++: Ptr_SelectiveSearchSegmentationStrategyMultiple cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple()
  651. //
  652. //javadoc: createSelectiveSearchSegmentationStrategyMultiple()
  653. public static SelectiveSearchSegmentationStrategyMultiple createSelectiveSearchSegmentationStrategyMultiple ()
  654. {
  655. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  656. SelectiveSearchSegmentationStrategyMultiple retVal = SelectiveSearchSegmentationStrategyMultiple.__fromPtr__(ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyMultiple_14());
  657. return retVal;
  658. #else
  659. return null;
  660. #endif
  661. }
  662. //
  663. // C++: Ptr_SelectiveSearchSegmentationStrategySize cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategySize()
  664. //
  665. //javadoc: createSelectiveSearchSegmentationStrategySize()
  666. public static SelectiveSearchSegmentationStrategySize createSelectiveSearchSegmentationStrategySize ()
  667. {
  668. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  669. SelectiveSearchSegmentationStrategySize retVal = SelectiveSearchSegmentationStrategySize.__fromPtr__(ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategySize_10());
  670. return retVal;
  671. #else
  672. return null;
  673. #endif
  674. }
  675. //
  676. // C++: Ptr_SelectiveSearchSegmentationStrategyTexture cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyTexture()
  677. //
  678. //javadoc: createSelectiveSearchSegmentationStrategyTexture()
  679. public static SelectiveSearchSegmentationStrategyTexture createSelectiveSearchSegmentationStrategyTexture ()
  680. {
  681. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  682. SelectiveSearchSegmentationStrategyTexture retVal = SelectiveSearchSegmentationStrategyTexture.__fromPtr__(ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyTexture_10());
  683. return retVal;
  684. #else
  685. return null;
  686. #endif
  687. }
  688. //
  689. // C++: Ptr_StereoMatcher cv::ximgproc::createRightMatcher(Ptr_StereoMatcher matcher_left)
  690. //
  691. //javadoc: createRightMatcher(matcher_left)
  692. public static StereoMatcher createRightMatcher (StereoMatcher matcher_left)
  693. {
  694. if (matcher_left != null) matcher_left.ThrowIfDisposed ();
  695. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  696. StereoMatcher retVal = StereoMatcher.__fromPtr__(ximgproc_Ximgproc_createRightMatcher_10(matcher_left.getNativeObjAddr()));
  697. return retVal;
  698. #else
  699. return null;
  700. #endif
  701. }
  702. //
  703. // C++: Ptr_StructuredEdgeDetection cv::ximgproc::createStructuredEdgeDetection(String model, Ptr_RFFeatureGetter howToGetFeatures = Ptr<RFFeatureGetter>())
  704. //
  705. //javadoc: createStructuredEdgeDetection(model, howToGetFeatures)
  706. public static StructuredEdgeDetection createStructuredEdgeDetection (string model, RFFeatureGetter howToGetFeatures)
  707. {
  708. if (howToGetFeatures != null) howToGetFeatures.ThrowIfDisposed ();
  709. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  710. StructuredEdgeDetection retVal = StructuredEdgeDetection.__fromPtr__(ximgproc_Ximgproc_createStructuredEdgeDetection_10(model, howToGetFeatures.getNativeObjAddr()));
  711. return retVal;
  712. #else
  713. return null;
  714. #endif
  715. }
  716. //javadoc: createStructuredEdgeDetection(model)
  717. public static StructuredEdgeDetection createStructuredEdgeDetection (string model)
  718. {
  719. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  720. StructuredEdgeDetection retVal = StructuredEdgeDetection.__fromPtr__(ximgproc_Ximgproc_createStructuredEdgeDetection_11(model));
  721. return retVal;
  722. #else
  723. return null;
  724. #endif
  725. }
  726. //
  727. // C++: Ptr_SuperpixelLSC cv::ximgproc::createSuperpixelLSC(Mat image, int region_size = 10, float ratio = 0.075f)
  728. //
  729. //javadoc: createSuperpixelLSC(image, region_size, ratio)
  730. public static SuperpixelLSC createSuperpixelLSC (Mat image, int region_size, float ratio)
  731. {
  732. if (image != null) image.ThrowIfDisposed ();
  733. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  734. SuperpixelLSC retVal = SuperpixelLSC.__fromPtr__(ximgproc_Ximgproc_createSuperpixelLSC_10(image.nativeObj, region_size, ratio));
  735. return retVal;
  736. #else
  737. return null;
  738. #endif
  739. }
  740. //javadoc: createSuperpixelLSC(image, region_size)
  741. public static SuperpixelLSC createSuperpixelLSC (Mat image, int region_size)
  742. {
  743. if (image != null) image.ThrowIfDisposed ();
  744. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  745. SuperpixelLSC retVal = SuperpixelLSC.__fromPtr__(ximgproc_Ximgproc_createSuperpixelLSC_11(image.nativeObj, region_size));
  746. return retVal;
  747. #else
  748. return null;
  749. #endif
  750. }
  751. //javadoc: createSuperpixelLSC(image)
  752. public static SuperpixelLSC createSuperpixelLSC (Mat image)
  753. {
  754. if (image != null) image.ThrowIfDisposed ();
  755. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  756. SuperpixelLSC retVal = SuperpixelLSC.__fromPtr__(ximgproc_Ximgproc_createSuperpixelLSC_12(image.nativeObj));
  757. return retVal;
  758. #else
  759. return null;
  760. #endif
  761. }
  762. //
  763. // C++: Ptr_SuperpixelSEEDS cv::ximgproc::createSuperpixelSEEDS(int image_width, int image_height, int image_channels, int num_superpixels, int num_levels, int prior = 2, int histogram_bins = 5, bool double_step = false)
  764. //
  765. //javadoc: createSuperpixelSEEDS(image_width, image_height, image_channels, num_superpixels, num_levels, prior, histogram_bins, double_step)
  766. public static SuperpixelSEEDS createSuperpixelSEEDS (int image_width, int image_height, int image_channels, int num_superpixels, int num_levels, int prior, int histogram_bins, bool double_step)
  767. {
  768. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  769. SuperpixelSEEDS retVal = SuperpixelSEEDS.__fromPtr__(ximgproc_Ximgproc_createSuperpixelSEEDS_10(image_width, image_height, image_channels, num_superpixels, num_levels, prior, histogram_bins, double_step));
  770. return retVal;
  771. #else
  772. return null;
  773. #endif
  774. }
  775. //javadoc: createSuperpixelSEEDS(image_width, image_height, image_channels, num_superpixels, num_levels, prior, histogram_bins)
  776. public static SuperpixelSEEDS createSuperpixelSEEDS (int image_width, int image_height, int image_channels, int num_superpixels, int num_levels, int prior, int histogram_bins)
  777. {
  778. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  779. SuperpixelSEEDS retVal = SuperpixelSEEDS.__fromPtr__(ximgproc_Ximgproc_createSuperpixelSEEDS_11(image_width, image_height, image_channels, num_superpixels, num_levels, prior, histogram_bins));
  780. return retVal;
  781. #else
  782. return null;
  783. #endif
  784. }
  785. //javadoc: createSuperpixelSEEDS(image_width, image_height, image_channels, num_superpixels, num_levels, prior)
  786. public static SuperpixelSEEDS createSuperpixelSEEDS (int image_width, int image_height, int image_channels, int num_superpixels, int num_levels, int prior)
  787. {
  788. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  789. SuperpixelSEEDS retVal = SuperpixelSEEDS.__fromPtr__(ximgproc_Ximgproc_createSuperpixelSEEDS_12(image_width, image_height, image_channels, num_superpixels, num_levels, prior));
  790. return retVal;
  791. #else
  792. return null;
  793. #endif
  794. }
  795. //javadoc: createSuperpixelSEEDS(image_width, image_height, image_channels, num_superpixels, num_levels)
  796. public static SuperpixelSEEDS createSuperpixelSEEDS (int image_width, int image_height, int image_channels, int num_superpixels, int num_levels)
  797. {
  798. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  799. SuperpixelSEEDS retVal = SuperpixelSEEDS.__fromPtr__(ximgproc_Ximgproc_createSuperpixelSEEDS_13(image_width, image_height, image_channels, num_superpixels, num_levels));
  800. return retVal;
  801. #else
  802. return null;
  803. #endif
  804. }
  805. //
  806. // C++: Ptr_SuperpixelSLIC cv::ximgproc::createSuperpixelSLIC(Mat image, int algorithm = SLICO, int region_size = 10, float ruler = 10.0f)
  807. //
  808. //javadoc: createSuperpixelSLIC(image, algorithm, region_size, ruler)
  809. public static SuperpixelSLIC createSuperpixelSLIC (Mat image, int algorithm, int region_size, float ruler)
  810. {
  811. if (image != null) image.ThrowIfDisposed ();
  812. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  813. SuperpixelSLIC retVal = SuperpixelSLIC.__fromPtr__(ximgproc_Ximgproc_createSuperpixelSLIC_10(image.nativeObj, algorithm, region_size, ruler));
  814. return retVal;
  815. #else
  816. return null;
  817. #endif
  818. }
  819. //javadoc: createSuperpixelSLIC(image, algorithm, region_size)
  820. public static SuperpixelSLIC createSuperpixelSLIC (Mat image, int algorithm, int region_size)
  821. {
  822. if (image != null) image.ThrowIfDisposed ();
  823. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  824. SuperpixelSLIC retVal = SuperpixelSLIC.__fromPtr__(ximgproc_Ximgproc_createSuperpixelSLIC_11(image.nativeObj, algorithm, region_size));
  825. return retVal;
  826. #else
  827. return null;
  828. #endif
  829. }
  830. //javadoc: createSuperpixelSLIC(image, algorithm)
  831. public static SuperpixelSLIC createSuperpixelSLIC (Mat image, int algorithm)
  832. {
  833. if (image != null) image.ThrowIfDisposed ();
  834. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  835. SuperpixelSLIC retVal = SuperpixelSLIC.__fromPtr__(ximgproc_Ximgproc_createSuperpixelSLIC_12(image.nativeObj, algorithm));
  836. return retVal;
  837. #else
  838. return null;
  839. #endif
  840. }
  841. //javadoc: createSuperpixelSLIC(image)
  842. public static SuperpixelSLIC createSuperpixelSLIC (Mat image)
  843. {
  844. if (image != null) image.ThrowIfDisposed ();
  845. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  846. SuperpixelSLIC retVal = SuperpixelSLIC.__fromPtr__(ximgproc_Ximgproc_createSuperpixelSLIC_13(image.nativeObj));
  847. return retVal;
  848. #else
  849. return null;
  850. #endif
  851. }
  852. //
  853. // C++: Vec4i cv::ximgproc::HoughPoint2Line(Point houghPoint, Mat srcImgInfo, int angleRange = ARO_315_135, int makeSkew = HDO_DESKEW, int rules = RO_IGNORE_BORDERS)
  854. //
  855. // Return type 'Vec4i' is not supported, skipping the function
  856. //
  857. // C++: void cv::ximgproc::FastHoughTransform(Mat src, Mat& dst, int dstMatDepth, int angleRange = ARO_315_135, int op = FHT_ADD, int makeSkew = HDO_DESKEW)
  858. //
  859. //javadoc: FastHoughTransform(src, dst, dstMatDepth, angleRange, op, makeSkew)
  860. public static void FastHoughTransform (Mat src, Mat dst, int dstMatDepth, int angleRange, int op, int makeSkew)
  861. {
  862. if (src != null) src.ThrowIfDisposed ();
  863. if (dst != null) dst.ThrowIfDisposed ();
  864. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  865. ximgproc_Ximgproc_FastHoughTransform_10(src.nativeObj, dst.nativeObj, dstMatDepth, angleRange, op, makeSkew);
  866. return;
  867. #else
  868. return;
  869. #endif
  870. }
  871. //javadoc: FastHoughTransform(src, dst, dstMatDepth, angleRange, op)
  872. public static void FastHoughTransform (Mat src, Mat dst, int dstMatDepth, int angleRange, int op)
  873. {
  874. if (src != null) src.ThrowIfDisposed ();
  875. if (dst != null) dst.ThrowIfDisposed ();
  876. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  877. ximgproc_Ximgproc_FastHoughTransform_11(src.nativeObj, dst.nativeObj, dstMatDepth, angleRange, op);
  878. return;
  879. #else
  880. return;
  881. #endif
  882. }
  883. //javadoc: FastHoughTransform(src, dst, dstMatDepth, angleRange)
  884. public static void FastHoughTransform (Mat src, Mat dst, int dstMatDepth, int angleRange)
  885. {
  886. if (src != null) src.ThrowIfDisposed ();
  887. if (dst != null) dst.ThrowIfDisposed ();
  888. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  889. ximgproc_Ximgproc_FastHoughTransform_12(src.nativeObj, dst.nativeObj, dstMatDepth, angleRange);
  890. return;
  891. #else
  892. return;
  893. #endif
  894. }
  895. //javadoc: FastHoughTransform(src, dst, dstMatDepth)
  896. public static void FastHoughTransform (Mat src, Mat dst, int dstMatDepth)
  897. {
  898. if (src != null) src.ThrowIfDisposed ();
  899. if (dst != null) dst.ThrowIfDisposed ();
  900. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  901. ximgproc_Ximgproc_FastHoughTransform_13(src.nativeObj, dst.nativeObj, dstMatDepth);
  902. return;
  903. #else
  904. return;
  905. #endif
  906. }
  907. //
  908. // C++: void cv::ximgproc::GradientDericheX(Mat op, Mat& dst, double alpha, double omega)
  909. //
  910. //javadoc: GradientDericheX(op, dst, alpha, omega)
  911. public static void GradientDericheX (Mat op, Mat dst, double alpha, double omega)
  912. {
  913. if (op != null) op.ThrowIfDisposed ();
  914. if (dst != null) dst.ThrowIfDisposed ();
  915. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  916. ximgproc_Ximgproc_GradientDericheX_10(op.nativeObj, dst.nativeObj, alpha, omega);
  917. return;
  918. #else
  919. return;
  920. #endif
  921. }
  922. //
  923. // C++: void cv::ximgproc::GradientDericheY(Mat op, Mat& dst, double alpha, double omega)
  924. //
  925. //javadoc: GradientDericheY(op, dst, alpha, omega)
  926. public static void GradientDericheY (Mat op, Mat dst, double alpha, double omega)
  927. {
  928. if (op != null) op.ThrowIfDisposed ();
  929. if (dst != null) dst.ThrowIfDisposed ();
  930. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  931. ximgproc_Ximgproc_GradientDericheY_10(op.nativeObj, dst.nativeObj, alpha, omega);
  932. return;
  933. #else
  934. return;
  935. #endif
  936. }
  937. //
  938. // C++: void cv::ximgproc::PeiLinNormalization(Mat I, Mat& T)
  939. //
  940. //javadoc: PeiLinNormalization(I, T)
  941. public static void PeiLinNormalization (Mat I, Mat T)
  942. {
  943. if (I != null) I.ThrowIfDisposed ();
  944. if (T != null) T.ThrowIfDisposed ();
  945. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  946. ximgproc_Ximgproc_PeiLinNormalization_10(I.nativeObj, T.nativeObj);
  947. return;
  948. #else
  949. return;
  950. #endif
  951. }
  952. //
  953. // C++: void cv::ximgproc::amFilter(Mat joint, Mat src, Mat& dst, double sigma_s, double sigma_r, bool adjust_outliers = false)
  954. //
  955. //javadoc: amFilter(joint, src, dst, sigma_s, sigma_r, adjust_outliers)
  956. public static void amFilter (Mat joint, Mat src, Mat dst, double sigma_s, double sigma_r, bool adjust_outliers)
  957. {
  958. if (joint != null) joint.ThrowIfDisposed ();
  959. if (src != null) src.ThrowIfDisposed ();
  960. if (dst != null) dst.ThrowIfDisposed ();
  961. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  962. ximgproc_Ximgproc_amFilter_10(joint.nativeObj, src.nativeObj, dst.nativeObj, sigma_s, sigma_r, adjust_outliers);
  963. return;
  964. #else
  965. return;
  966. #endif
  967. }
  968. //javadoc: amFilter(joint, src, dst, sigma_s, sigma_r)
  969. public static void amFilter (Mat joint, Mat src, Mat dst, double sigma_s, double sigma_r)
  970. {
  971. if (joint != null) joint.ThrowIfDisposed ();
  972. if (src != null) src.ThrowIfDisposed ();
  973. if (dst != null) dst.ThrowIfDisposed ();
  974. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  975. ximgproc_Ximgproc_amFilter_11(joint.nativeObj, src.nativeObj, dst.nativeObj, sigma_s, sigma_r);
  976. return;
  977. #else
  978. return;
  979. #endif
  980. }
  981. //
  982. // C++: void cv::ximgproc::anisotropicDiffusion(Mat src, Mat& dst, float alpha, float K, int niters)
  983. //
  984. //javadoc: anisotropicDiffusion(src, dst, alpha, K, niters)
  985. public static void anisotropicDiffusion (Mat src, Mat dst, float alpha, float K, int niters)
  986. {
  987. if (src != null) src.ThrowIfDisposed ();
  988. if (dst != null) dst.ThrowIfDisposed ();
  989. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  990. ximgproc_Ximgproc_anisotropicDiffusion_10(src.nativeObj, dst.nativeObj, alpha, K, niters);
  991. return;
  992. #else
  993. return;
  994. #endif
  995. }
  996. //
  997. // C++: void cv::ximgproc::bilateralTextureFilter(Mat src, Mat& dst, int fr = 3, int numIter = 1, double sigmaAlpha = -1., double sigmaAvg = -1.)
  998. //
  999. //javadoc: bilateralTextureFilter(src, dst, fr, numIter, sigmaAlpha, sigmaAvg)
  1000. public static void bilateralTextureFilter (Mat src, Mat dst, int fr, int numIter, double sigmaAlpha, double sigmaAvg)
  1001. {
  1002. if (src != null) src.ThrowIfDisposed ();
  1003. if (dst != null) dst.ThrowIfDisposed ();
  1004. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1005. ximgproc_Ximgproc_bilateralTextureFilter_10(src.nativeObj, dst.nativeObj, fr, numIter, sigmaAlpha, sigmaAvg);
  1006. return;
  1007. #else
  1008. return;
  1009. #endif
  1010. }
  1011. //javadoc: bilateralTextureFilter(src, dst, fr, numIter, sigmaAlpha)
  1012. public static void bilateralTextureFilter (Mat src, Mat dst, int fr, int numIter, double sigmaAlpha)
  1013. {
  1014. if (src != null) src.ThrowIfDisposed ();
  1015. if (dst != null) dst.ThrowIfDisposed ();
  1016. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1017. ximgproc_Ximgproc_bilateralTextureFilter_11(src.nativeObj, dst.nativeObj, fr, numIter, sigmaAlpha);
  1018. return;
  1019. #else
  1020. return;
  1021. #endif
  1022. }
  1023. //javadoc: bilateralTextureFilter(src, dst, fr, numIter)
  1024. public static void bilateralTextureFilter (Mat src, Mat dst, int fr, int numIter)
  1025. {
  1026. if (src != null) src.ThrowIfDisposed ();
  1027. if (dst != null) dst.ThrowIfDisposed ();
  1028. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1029. ximgproc_Ximgproc_bilateralTextureFilter_12(src.nativeObj, dst.nativeObj, fr, numIter);
  1030. return;
  1031. #else
  1032. return;
  1033. #endif
  1034. }
  1035. //javadoc: bilateralTextureFilter(src, dst, fr)
  1036. public static void bilateralTextureFilter (Mat src, Mat dst, int fr)
  1037. {
  1038. if (src != null) src.ThrowIfDisposed ();
  1039. if (dst != null) dst.ThrowIfDisposed ();
  1040. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1041. ximgproc_Ximgproc_bilateralTextureFilter_13(src.nativeObj, dst.nativeObj, fr);
  1042. return;
  1043. #else
  1044. return;
  1045. #endif
  1046. }
  1047. //javadoc: bilateralTextureFilter(src, dst)
  1048. public static void bilateralTextureFilter (Mat src, Mat dst)
  1049. {
  1050. if (src != null) src.ThrowIfDisposed ();
  1051. if (dst != null) dst.ThrowIfDisposed ();
  1052. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1053. ximgproc_Ximgproc_bilateralTextureFilter_14(src.nativeObj, dst.nativeObj);
  1054. return;
  1055. #else
  1056. return;
  1057. #endif
  1058. }
  1059. //
  1060. // C++: void cv::ximgproc::colorMatchTemplate(Mat img, Mat templ, Mat& result)
  1061. //
  1062. //javadoc: colorMatchTemplate(img, templ, result)
  1063. public static void colorMatchTemplate (Mat img, Mat templ, Mat result)
  1064. {
  1065. if (img != null) img.ThrowIfDisposed ();
  1066. if (templ != null) templ.ThrowIfDisposed ();
  1067. if (result != null) result.ThrowIfDisposed ();
  1068. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1069. ximgproc_Ximgproc_colorMatchTemplate_10(img.nativeObj, templ.nativeObj, result.nativeObj);
  1070. return;
  1071. #else
  1072. return;
  1073. #endif
  1074. }
  1075. //
  1076. // C++: void cv::ximgproc::contourSampling(Mat src, Mat& _out, int nbElt)
  1077. //
  1078. //javadoc: contourSampling(src, _out, nbElt)
  1079. public static void contourSampling (Mat src, Mat _out, int nbElt)
  1080. {
  1081. if (src != null) src.ThrowIfDisposed ();
  1082. if (_out != null) _out.ThrowIfDisposed ();
  1083. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1084. ximgproc_Ximgproc_contourSampling_10(src.nativeObj, _out.nativeObj, nbElt);
  1085. return;
  1086. #else
  1087. return;
  1088. #endif
  1089. }
  1090. //
  1091. // C++: void cv::ximgproc::covarianceEstimation(Mat src, Mat& dst, int windowRows, int windowCols)
  1092. //
  1093. //javadoc: covarianceEstimation(src, dst, windowRows, windowCols)
  1094. public static void covarianceEstimation (Mat src, Mat dst, int windowRows, int windowCols)
  1095. {
  1096. if (src != null) src.ThrowIfDisposed ();
  1097. if (dst != null) dst.ThrowIfDisposed ();
  1098. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1099. ximgproc_Ximgproc_covarianceEstimation_10(src.nativeObj, dst.nativeObj, windowRows, windowCols);
  1100. return;
  1101. #else
  1102. return;
  1103. #endif
  1104. }
  1105. //
  1106. // C++: void cv::ximgproc::createQuaternionImage(Mat img, Mat& qimg)
  1107. //
  1108. //javadoc: createQuaternionImage(img, qimg)
  1109. public static void createQuaternionImage (Mat img, Mat qimg)
  1110. {
  1111. if (img != null) img.ThrowIfDisposed ();
  1112. if (qimg != null) qimg.ThrowIfDisposed ();
  1113. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1114. ximgproc_Ximgproc_createQuaternionImage_10(img.nativeObj, qimg.nativeObj);
  1115. return;
  1116. #else
  1117. return;
  1118. #endif
  1119. }
  1120. //
  1121. // C++: void cv::ximgproc::dtFilter(Mat guide, Mat src, Mat& dst, double sigmaSpatial, double sigmaColor, int mode = DTF_NC, int numIters = 3)
  1122. //
  1123. //javadoc: dtFilter(guide, src, dst, sigmaSpatial, sigmaColor, mode, numIters)
  1124. public static void dtFilter (Mat guide, Mat src, Mat dst, double sigmaSpatial, double sigmaColor, int mode, int numIters)
  1125. {
  1126. if (guide != null) guide.ThrowIfDisposed ();
  1127. if (src != null) src.ThrowIfDisposed ();
  1128. if (dst != null) dst.ThrowIfDisposed ();
  1129. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1130. ximgproc_Ximgproc_dtFilter_10(guide.nativeObj, src.nativeObj, dst.nativeObj, sigmaSpatial, sigmaColor, mode, numIters);
  1131. return;
  1132. #else
  1133. return;
  1134. #endif
  1135. }
  1136. //javadoc: dtFilter(guide, src, dst, sigmaSpatial, sigmaColor, mode)
  1137. public static void dtFilter (Mat guide, Mat src, Mat dst, double sigmaSpatial, double sigmaColor, int mode)
  1138. {
  1139. if (guide != null) guide.ThrowIfDisposed ();
  1140. if (src != null) src.ThrowIfDisposed ();
  1141. if (dst != null) dst.ThrowIfDisposed ();
  1142. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1143. ximgproc_Ximgproc_dtFilter_11(guide.nativeObj, src.nativeObj, dst.nativeObj, sigmaSpatial, sigmaColor, mode);
  1144. return;
  1145. #else
  1146. return;
  1147. #endif
  1148. }
  1149. //javadoc: dtFilter(guide, src, dst, sigmaSpatial, sigmaColor)
  1150. public static void dtFilter (Mat guide, Mat src, Mat dst, double sigmaSpatial, double sigmaColor)
  1151. {
  1152. if (guide != null) guide.ThrowIfDisposed ();
  1153. if (src != null) src.ThrowIfDisposed ();
  1154. if (dst != null) dst.ThrowIfDisposed ();
  1155. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1156. ximgproc_Ximgproc_dtFilter_12(guide.nativeObj, src.nativeObj, dst.nativeObj, sigmaSpatial, sigmaColor);
  1157. return;
  1158. #else
  1159. return;
  1160. #endif
  1161. }
  1162. //
  1163. // C++: void cv::ximgproc::edgePreservingFilter(Mat src, Mat& dst, int d, double threshold)
  1164. //
  1165. //javadoc: edgePreservingFilter(src, dst, d, threshold)
  1166. public static void edgePreservingFilter (Mat src, Mat dst, int d, double threshold)
  1167. {
  1168. if (src != null) src.ThrowIfDisposed ();
  1169. if (dst != null) dst.ThrowIfDisposed ();
  1170. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1171. ximgproc_Ximgproc_edgePreservingFilter_10(src.nativeObj, dst.nativeObj, d, threshold);
  1172. return;
  1173. #else
  1174. return;
  1175. #endif
  1176. }
  1177. //
  1178. // C++: void cv::ximgproc::fastBilateralSolverFilter(Mat guide, Mat src, Mat confidence, Mat& dst, double sigma_spatial = 8, double sigma_luma = 8, double sigma_chroma = 8, double lambda = 128.0, int num_iter = 25, double max_tol = 1e-5)
  1179. //
  1180. //javadoc: fastBilateralSolverFilter(guide, src, confidence, dst, sigma_spatial, sigma_luma, sigma_chroma, lambda, num_iter, max_tol)
  1181. public static void fastBilateralSolverFilter (Mat guide, Mat src, Mat confidence, Mat dst, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda, int num_iter, double max_tol)
  1182. {
  1183. if (guide != null) guide.ThrowIfDisposed ();
  1184. if (src != null) src.ThrowIfDisposed ();
  1185. if (confidence != null) confidence.ThrowIfDisposed ();
  1186. if (dst != null) dst.ThrowIfDisposed ();
  1187. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1188. ximgproc_Ximgproc_fastBilateralSolverFilter_10(guide.nativeObj, src.nativeObj, confidence.nativeObj, dst.nativeObj, sigma_spatial, sigma_luma, sigma_chroma, lambda, num_iter, max_tol);
  1189. return;
  1190. #else
  1191. return;
  1192. #endif
  1193. }
  1194. //javadoc: fastBilateralSolverFilter(guide, src, confidence, dst, sigma_spatial, sigma_luma, sigma_chroma, lambda, num_iter)
  1195. public static void fastBilateralSolverFilter (Mat guide, Mat src, Mat confidence, Mat dst, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda, int num_iter)
  1196. {
  1197. if (guide != null) guide.ThrowIfDisposed ();
  1198. if (src != null) src.ThrowIfDisposed ();
  1199. if (confidence != null) confidence.ThrowIfDisposed ();
  1200. if (dst != null) dst.ThrowIfDisposed ();
  1201. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1202. ximgproc_Ximgproc_fastBilateralSolverFilter_11(guide.nativeObj, src.nativeObj, confidence.nativeObj, dst.nativeObj, sigma_spatial, sigma_luma, sigma_chroma, lambda, num_iter);
  1203. return;
  1204. #else
  1205. return;
  1206. #endif
  1207. }
  1208. //javadoc: fastBilateralSolverFilter(guide, src, confidence, dst, sigma_spatial, sigma_luma, sigma_chroma, lambda)
  1209. public static void fastBilateralSolverFilter (Mat guide, Mat src, Mat confidence, Mat dst, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda)
  1210. {
  1211. if (guide != null) guide.ThrowIfDisposed ();
  1212. if (src != null) src.ThrowIfDisposed ();
  1213. if (confidence != null) confidence.ThrowIfDisposed ();
  1214. if (dst != null) dst.ThrowIfDisposed ();
  1215. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1216. ximgproc_Ximgproc_fastBilateralSolverFilter_12(guide.nativeObj, src.nativeObj, confidence.nativeObj, dst.nativeObj, sigma_spatial, sigma_luma, sigma_chroma, lambda);
  1217. return;
  1218. #else
  1219. return;
  1220. #endif
  1221. }
  1222. //javadoc: fastBilateralSolverFilter(guide, src, confidence, dst, sigma_spatial, sigma_luma, sigma_chroma)
  1223. public static void fastBilateralSolverFilter (Mat guide, Mat src, Mat confidence, Mat dst, double sigma_spatial, double sigma_luma, double sigma_chroma)
  1224. {
  1225. if (guide != null) guide.ThrowIfDisposed ();
  1226. if (src != null) src.ThrowIfDisposed ();
  1227. if (confidence != null) confidence.ThrowIfDisposed ();
  1228. if (dst != null) dst.ThrowIfDisposed ();
  1229. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1230. ximgproc_Ximgproc_fastBilateralSolverFilter_13(guide.nativeObj, src.nativeObj, confidence.nativeObj, dst.nativeObj, sigma_spatial, sigma_luma, sigma_chroma);
  1231. return;
  1232. #else
  1233. return;
  1234. #endif
  1235. }
  1236. //javadoc: fastBilateralSolverFilter(guide, src, confidence, dst, sigma_spatial, sigma_luma)
  1237. public static void fastBilateralSolverFilter (Mat guide, Mat src, Mat confidence, Mat dst, double sigma_spatial, double sigma_luma)
  1238. {
  1239. if (guide != null) guide.ThrowIfDisposed ();
  1240. if (src != null) src.ThrowIfDisposed ();
  1241. if (confidence != null) confidence.ThrowIfDisposed ();
  1242. if (dst != null) dst.ThrowIfDisposed ();
  1243. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1244. ximgproc_Ximgproc_fastBilateralSolverFilter_14(guide.nativeObj, src.nativeObj, confidence.nativeObj, dst.nativeObj, sigma_spatial, sigma_luma);
  1245. return;
  1246. #else
  1247. return;
  1248. #endif
  1249. }
  1250. //javadoc: fastBilateralSolverFilter(guide, src, confidence, dst, sigma_spatial)
  1251. public static void fastBilateralSolverFilter (Mat guide, Mat src, Mat confidence, Mat dst, double sigma_spatial)
  1252. {
  1253. if (guide != null) guide.ThrowIfDisposed ();
  1254. if (src != null) src.ThrowIfDisposed ();
  1255. if (confidence != null) confidence.ThrowIfDisposed ();
  1256. if (dst != null) dst.ThrowIfDisposed ();
  1257. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1258. ximgproc_Ximgproc_fastBilateralSolverFilter_15(guide.nativeObj, src.nativeObj, confidence.nativeObj, dst.nativeObj, sigma_spatial);
  1259. return;
  1260. #else
  1261. return;
  1262. #endif
  1263. }
  1264. //javadoc: fastBilateralSolverFilter(guide, src, confidence, dst)
  1265. public static void fastBilateralSolverFilter (Mat guide, Mat src, Mat confidence, Mat dst)
  1266. {
  1267. if (guide != null) guide.ThrowIfDisposed ();
  1268. if (src != null) src.ThrowIfDisposed ();
  1269. if (confidence != null) confidence.ThrowIfDisposed ();
  1270. if (dst != null) dst.ThrowIfDisposed ();
  1271. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1272. ximgproc_Ximgproc_fastBilateralSolverFilter_16(guide.nativeObj, src.nativeObj, confidence.nativeObj, dst.nativeObj);
  1273. return;
  1274. #else
  1275. return;
  1276. #endif
  1277. }
  1278. //
  1279. // C++: void cv::ximgproc::fastGlobalSmootherFilter(Mat guide, Mat src, Mat& dst, double lambda, double sigma_color, double lambda_attenuation = 0.25, int num_iter = 3)
  1280. //
  1281. //javadoc: fastGlobalSmootherFilter(guide, src, dst, lambda, sigma_color, lambda_attenuation, num_iter)
  1282. public static void fastGlobalSmootherFilter (Mat guide, Mat src, Mat dst, double lambda, double sigma_color, double lambda_attenuation, int num_iter)
  1283. {
  1284. if (guide != null) guide.ThrowIfDisposed ();
  1285. if (src != null) src.ThrowIfDisposed ();
  1286. if (dst != null) dst.ThrowIfDisposed ();
  1287. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1288. ximgproc_Ximgproc_fastGlobalSmootherFilter_10(guide.nativeObj, src.nativeObj, dst.nativeObj, lambda, sigma_color, lambda_attenuation, num_iter);
  1289. return;
  1290. #else
  1291. return;
  1292. #endif
  1293. }
  1294. //javadoc: fastGlobalSmootherFilter(guide, src, dst, lambda, sigma_color, lambda_attenuation)
  1295. public static void fastGlobalSmootherFilter (Mat guide, Mat src, Mat dst, double lambda, double sigma_color, double lambda_attenuation)
  1296. {
  1297. if (guide != null) guide.ThrowIfDisposed ();
  1298. if (src != null) src.ThrowIfDisposed ();
  1299. if (dst != null) dst.ThrowIfDisposed ();
  1300. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1301. ximgproc_Ximgproc_fastGlobalSmootherFilter_11(guide.nativeObj, src.nativeObj, dst.nativeObj, lambda, sigma_color, lambda_attenuation);
  1302. return;
  1303. #else
  1304. return;
  1305. #endif
  1306. }
  1307. //javadoc: fastGlobalSmootherFilter(guide, src, dst, lambda, sigma_color)
  1308. public static void fastGlobalSmootherFilter (Mat guide, Mat src, Mat dst, double lambda, double sigma_color)
  1309. {
  1310. if (guide != null) guide.ThrowIfDisposed ();
  1311. if (src != null) src.ThrowIfDisposed ();
  1312. if (dst != null) dst.ThrowIfDisposed ();
  1313. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1314. ximgproc_Ximgproc_fastGlobalSmootherFilter_12(guide.nativeObj, src.nativeObj, dst.nativeObj, lambda, sigma_color);
  1315. return;
  1316. #else
  1317. return;
  1318. #endif
  1319. }
  1320. //
  1321. // C++: void cv::ximgproc::fourierDescriptor(Mat src, Mat& dst, int nbElt = -1, int nbFD = -1)
  1322. //
  1323. //javadoc: fourierDescriptor(src, dst, nbElt, nbFD)
  1324. public static void fourierDescriptor (Mat src, Mat dst, int nbElt, int nbFD)
  1325. {
  1326. if (src != null) src.ThrowIfDisposed ();
  1327. if (dst != null) dst.ThrowIfDisposed ();
  1328. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1329. ximgproc_Ximgproc_fourierDescriptor_10(src.nativeObj, dst.nativeObj, nbElt, nbFD);
  1330. return;
  1331. #else
  1332. return;
  1333. #endif
  1334. }
  1335. //javadoc: fourierDescriptor(src, dst, nbElt)
  1336. public static void fourierDescriptor (Mat src, Mat dst, int nbElt)
  1337. {
  1338. if (src != null) src.ThrowIfDisposed ();
  1339. if (dst != null) dst.ThrowIfDisposed ();
  1340. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1341. ximgproc_Ximgproc_fourierDescriptor_11(src.nativeObj, dst.nativeObj, nbElt);
  1342. return;
  1343. #else
  1344. return;
  1345. #endif
  1346. }
  1347. //javadoc: fourierDescriptor(src, dst)
  1348. public static void fourierDescriptor (Mat src, Mat dst)
  1349. {
  1350. if (src != null) src.ThrowIfDisposed ();
  1351. if (dst != null) dst.ThrowIfDisposed ();
  1352. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1353. ximgproc_Ximgproc_fourierDescriptor_12(src.nativeObj, dst.nativeObj);
  1354. return;
  1355. #else
  1356. return;
  1357. #endif
  1358. }
  1359. //
  1360. // C++: void cv::ximgproc::guidedFilter(Mat guide, Mat src, Mat& dst, int radius, double eps, int dDepth = -1)
  1361. //
  1362. //javadoc: guidedFilter(guide, src, dst, radius, eps, dDepth)
  1363. public static void guidedFilter (Mat guide, Mat src, Mat dst, int radius, double eps, int dDepth)
  1364. {
  1365. if (guide != null) guide.ThrowIfDisposed ();
  1366. if (src != null) src.ThrowIfDisposed ();
  1367. if (dst != null) dst.ThrowIfDisposed ();
  1368. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1369. ximgproc_Ximgproc_guidedFilter_10(guide.nativeObj, src.nativeObj, dst.nativeObj, radius, eps, dDepth);
  1370. return;
  1371. #else
  1372. return;
  1373. #endif
  1374. }
  1375. //javadoc: guidedFilter(guide, src, dst, radius, eps)
  1376. public static void guidedFilter (Mat guide, Mat src, Mat dst, int radius, double eps)
  1377. {
  1378. if (guide != null) guide.ThrowIfDisposed ();
  1379. if (src != null) src.ThrowIfDisposed ();
  1380. if (dst != null) dst.ThrowIfDisposed ();
  1381. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1382. ximgproc_Ximgproc_guidedFilter_11(guide.nativeObj, src.nativeObj, dst.nativeObj, radius, eps);
  1383. return;
  1384. #else
  1385. return;
  1386. #endif
  1387. }
  1388. //
  1389. // C++: void cv::ximgproc::jointBilateralFilter(Mat joint, Mat src, Mat& dst, int d, double sigmaColor, double sigmaSpace, int borderType = BORDER_DEFAULT)
  1390. //
  1391. //javadoc: jointBilateralFilter(joint, src, dst, d, sigmaColor, sigmaSpace, borderType)
  1392. public static void jointBilateralFilter (Mat joint, Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace, int borderType)
  1393. {
  1394. if (joint != null) joint.ThrowIfDisposed ();
  1395. if (src != null) src.ThrowIfDisposed ();
  1396. if (dst != null) dst.ThrowIfDisposed ();
  1397. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1398. ximgproc_Ximgproc_jointBilateralFilter_10(joint.nativeObj, src.nativeObj, dst.nativeObj, d, sigmaColor, sigmaSpace, borderType);
  1399. return;
  1400. #else
  1401. return;
  1402. #endif
  1403. }
  1404. //javadoc: jointBilateralFilter(joint, src, dst, d, sigmaColor, sigmaSpace)
  1405. public static void jointBilateralFilter (Mat joint, Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace)
  1406. {
  1407. if (joint != null) joint.ThrowIfDisposed ();
  1408. if (src != null) src.ThrowIfDisposed ();
  1409. if (dst != null) dst.ThrowIfDisposed ();
  1410. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1411. ximgproc_Ximgproc_jointBilateralFilter_11(joint.nativeObj, src.nativeObj, dst.nativeObj, d, sigmaColor, sigmaSpace);
  1412. return;
  1413. #else
  1414. return;
  1415. #endif
  1416. }
  1417. //
  1418. // C++: void cv::ximgproc::l0Smooth(Mat src, Mat& dst, double lambda = 0.02, double kappa = 2.0)
  1419. //
  1420. //javadoc: l0Smooth(src, dst, lambda, kappa)
  1421. public static void l0Smooth (Mat src, Mat dst, double lambda, double kappa)
  1422. {
  1423. if (src != null) src.ThrowIfDisposed ();
  1424. if (dst != null) dst.ThrowIfDisposed ();
  1425. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1426. ximgproc_Ximgproc_l0Smooth_10(src.nativeObj, dst.nativeObj, lambda, kappa);
  1427. return;
  1428. #else
  1429. return;
  1430. #endif
  1431. }
  1432. //javadoc: l0Smooth(src, dst, lambda)
  1433. public static void l0Smooth (Mat src, Mat dst, double lambda)
  1434. {
  1435. if (src != null) src.ThrowIfDisposed ();
  1436. if (dst != null) dst.ThrowIfDisposed ();
  1437. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1438. ximgproc_Ximgproc_l0Smooth_11(src.nativeObj, dst.nativeObj, lambda);
  1439. return;
  1440. #else
  1441. return;
  1442. #endif
  1443. }
  1444. //javadoc: l0Smooth(src, dst)
  1445. public static void l0Smooth (Mat src, Mat dst)
  1446. {
  1447. if (src != null) src.ThrowIfDisposed ();
  1448. if (dst != null) dst.ThrowIfDisposed ();
  1449. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1450. ximgproc_Ximgproc_l0Smooth_12(src.nativeObj, dst.nativeObj);
  1451. return;
  1452. #else
  1453. return;
  1454. #endif
  1455. }
  1456. //
  1457. // C++: void cv::ximgproc::niBlackThreshold(Mat _src, Mat& _dst, double maxValue, int type, int blockSize, double k, int binarizationMethod = BINARIZATION_NIBLACK)
  1458. //
  1459. //javadoc: niBlackThreshold(_src, _dst, maxValue, type, blockSize, k, binarizationMethod)
  1460. public static void niBlackThreshold (Mat _src, Mat _dst, double maxValue, int type, int blockSize, double k, int binarizationMethod)
  1461. {
  1462. if (_src != null) _src.ThrowIfDisposed ();
  1463. if (_dst != null) _dst.ThrowIfDisposed ();
  1464. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1465. ximgproc_Ximgproc_niBlackThreshold_10(_src.nativeObj, _dst.nativeObj, maxValue, type, blockSize, k, binarizationMethod);
  1466. return;
  1467. #else
  1468. return;
  1469. #endif
  1470. }
  1471. //javadoc: niBlackThreshold(_src, _dst, maxValue, type, blockSize, k)
  1472. public static void niBlackThreshold (Mat _src, Mat _dst, double maxValue, int type, int blockSize, double k)
  1473. {
  1474. if (_src != null) _src.ThrowIfDisposed ();
  1475. if (_dst != null) _dst.ThrowIfDisposed ();
  1476. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1477. ximgproc_Ximgproc_niBlackThreshold_11(_src.nativeObj, _dst.nativeObj, maxValue, type, blockSize, k);
  1478. return;
  1479. #else
  1480. return;
  1481. #endif
  1482. }
  1483. //
  1484. // C++: void cv::ximgproc::qconj(Mat qimg, Mat& qcimg)
  1485. //
  1486. //javadoc: qconj(qimg, qcimg)
  1487. public static void qconj (Mat qimg, Mat qcimg)
  1488. {
  1489. if (qimg != null) qimg.ThrowIfDisposed ();
  1490. if (qcimg != null) qcimg.ThrowIfDisposed ();
  1491. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1492. ximgproc_Ximgproc_qconj_10(qimg.nativeObj, qcimg.nativeObj);
  1493. return;
  1494. #else
  1495. return;
  1496. #endif
  1497. }
  1498. //
  1499. // C++: void cv::ximgproc::qdft(Mat img, Mat& qimg, int flags, bool sideLeft)
  1500. //
  1501. //javadoc: qdft(img, qimg, flags, sideLeft)
  1502. public static void qdft (Mat img, Mat qimg, int flags, bool sideLeft)
  1503. {
  1504. if (img != null) img.ThrowIfDisposed ();
  1505. if (qimg != null) qimg.ThrowIfDisposed ();
  1506. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1507. ximgproc_Ximgproc_qdft_10(img.nativeObj, qimg.nativeObj, flags, sideLeft);
  1508. return;
  1509. #else
  1510. return;
  1511. #endif
  1512. }
  1513. //
  1514. // C++: void cv::ximgproc::qmultiply(Mat src1, Mat src2, Mat& dst)
  1515. //
  1516. //javadoc: qmultiply(src1, src2, dst)
  1517. public static void qmultiply (Mat src1, Mat src2, Mat dst)
  1518. {
  1519. if (src1 != null) src1.ThrowIfDisposed ();
  1520. if (src2 != null) src2.ThrowIfDisposed ();
  1521. if (dst != null) dst.ThrowIfDisposed ();
  1522. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1523. ximgproc_Ximgproc_qmultiply_10(src1.nativeObj, src2.nativeObj, dst.nativeObj);
  1524. return;
  1525. #else
  1526. return;
  1527. #endif
  1528. }
  1529. //
  1530. // C++: void cv::ximgproc::qunitary(Mat qimg, Mat& qnimg)
  1531. //
  1532. //javadoc: qunitary(qimg, qnimg)
  1533. public static void qunitary (Mat qimg, Mat qnimg)
  1534. {
  1535. if (qimg != null) qimg.ThrowIfDisposed ();
  1536. if (qnimg != null) qnimg.ThrowIfDisposed ();
  1537. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1538. ximgproc_Ximgproc_qunitary_10(qimg.nativeObj, qnimg.nativeObj);
  1539. return;
  1540. #else
  1541. return;
  1542. #endif
  1543. }
  1544. //
  1545. // C++: void cv::ximgproc::rollingGuidanceFilter(Mat src, Mat& dst, int d = -1, double sigmaColor = 25, double sigmaSpace = 3, int numOfIter = 4, int borderType = BORDER_DEFAULT)
  1546. //
  1547. //javadoc: rollingGuidanceFilter(src, dst, d, sigmaColor, sigmaSpace, numOfIter, borderType)
  1548. public static void rollingGuidanceFilter (Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace, int numOfIter, int borderType)
  1549. {
  1550. if (src != null) src.ThrowIfDisposed ();
  1551. if (dst != null) dst.ThrowIfDisposed ();
  1552. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1553. ximgproc_Ximgproc_rollingGuidanceFilter_10(src.nativeObj, dst.nativeObj, d, sigmaColor, sigmaSpace, numOfIter, borderType);
  1554. return;
  1555. #else
  1556. return;
  1557. #endif
  1558. }
  1559. //javadoc: rollingGuidanceFilter(src, dst, d, sigmaColor, sigmaSpace, numOfIter)
  1560. public static void rollingGuidanceFilter (Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace, int numOfIter)
  1561. {
  1562. if (src != null) src.ThrowIfDisposed ();
  1563. if (dst != null) dst.ThrowIfDisposed ();
  1564. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1565. ximgproc_Ximgproc_rollingGuidanceFilter_11(src.nativeObj, dst.nativeObj, d, sigmaColor, sigmaSpace, numOfIter);
  1566. return;
  1567. #else
  1568. return;
  1569. #endif
  1570. }
  1571. //javadoc: rollingGuidanceFilter(src, dst, d, sigmaColor, sigmaSpace)
  1572. public static void rollingGuidanceFilter (Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace)
  1573. {
  1574. if (src != null) src.ThrowIfDisposed ();
  1575. if (dst != null) dst.ThrowIfDisposed ();
  1576. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1577. ximgproc_Ximgproc_rollingGuidanceFilter_12(src.nativeObj, dst.nativeObj, d, sigmaColor, sigmaSpace);
  1578. return;
  1579. #else
  1580. return;
  1581. #endif
  1582. }
  1583. //javadoc: rollingGuidanceFilter(src, dst, d, sigmaColor)
  1584. public static void rollingGuidanceFilter (Mat src, Mat dst, int d, double sigmaColor)
  1585. {
  1586. if (src != null) src.ThrowIfDisposed ();
  1587. if (dst != null) dst.ThrowIfDisposed ();
  1588. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1589. ximgproc_Ximgproc_rollingGuidanceFilter_13(src.nativeObj, dst.nativeObj, d, sigmaColor);
  1590. return;
  1591. #else
  1592. return;
  1593. #endif
  1594. }
  1595. //javadoc: rollingGuidanceFilter(src, dst, d)
  1596. public static void rollingGuidanceFilter (Mat src, Mat dst, int d)
  1597. {
  1598. if (src != null) src.ThrowIfDisposed ();
  1599. if (dst != null) dst.ThrowIfDisposed ();
  1600. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1601. ximgproc_Ximgproc_rollingGuidanceFilter_14(src.nativeObj, dst.nativeObj, d);
  1602. return;
  1603. #else
  1604. return;
  1605. #endif
  1606. }
  1607. //javadoc: rollingGuidanceFilter(src, dst)
  1608. public static void rollingGuidanceFilter (Mat src, Mat dst)
  1609. {
  1610. if (src != null) src.ThrowIfDisposed ();
  1611. if (dst != null) dst.ThrowIfDisposed ();
  1612. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1613. ximgproc_Ximgproc_rollingGuidanceFilter_15(src.nativeObj, dst.nativeObj);
  1614. return;
  1615. #else
  1616. return;
  1617. #endif
  1618. }
  1619. //
  1620. // C++: void cv::ximgproc::thinning(Mat src, Mat& dst, int thinningType = THINNING_ZHANGSUEN)
  1621. //
  1622. //javadoc: thinning(src, dst, thinningType)
  1623. public static void thinning (Mat src, Mat dst, int thinningType)
  1624. {
  1625. if (src != null) src.ThrowIfDisposed ();
  1626. if (dst != null) dst.ThrowIfDisposed ();
  1627. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1628. ximgproc_Ximgproc_thinning_10(src.nativeObj, dst.nativeObj, thinningType);
  1629. return;
  1630. #else
  1631. return;
  1632. #endif
  1633. }
  1634. //javadoc: thinning(src, dst)
  1635. public static void thinning (Mat src, Mat dst)
  1636. {
  1637. if (src != null) src.ThrowIfDisposed ();
  1638. if (dst != null) dst.ThrowIfDisposed ();
  1639. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1640. ximgproc_Ximgproc_thinning_11(src.nativeObj, dst.nativeObj);
  1641. return;
  1642. #else
  1643. return;
  1644. #endif
  1645. }
  1646. //
  1647. // C++: void cv::ximgproc::transformFD(Mat src, Mat t, Mat& dst, bool fdContour = true)
  1648. //
  1649. //javadoc: transformFD(src, t, dst, fdContour)
  1650. public static void transformFD (Mat src, Mat t, Mat dst, bool fdContour)
  1651. {
  1652. if (src != null) src.ThrowIfDisposed ();
  1653. if (t != null) t.ThrowIfDisposed ();
  1654. if (dst != null) dst.ThrowIfDisposed ();
  1655. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1656. ximgproc_Ximgproc_transformFD_10(src.nativeObj, t.nativeObj, dst.nativeObj, fdContour);
  1657. return;
  1658. #else
  1659. return;
  1660. #endif
  1661. }
  1662. //javadoc: transformFD(src, t, dst)
  1663. public static void transformFD (Mat src, Mat t, Mat dst)
  1664. {
  1665. if (src != null) src.ThrowIfDisposed ();
  1666. if (t != null) t.ThrowIfDisposed ();
  1667. if (dst != null) dst.ThrowIfDisposed ();
  1668. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1669. ximgproc_Ximgproc_transformFD_11(src.nativeObj, t.nativeObj, dst.nativeObj);
  1670. return;
  1671. #else
  1672. return;
  1673. #endif
  1674. }
  1675. //
  1676. // C++: void cv::ximgproc::weightedMedianFilter(Mat joint, Mat src, Mat& dst, int r, double sigma = 25.5, int weightType = WMF_EXP, Mat mask = Mat())
  1677. //
  1678. //javadoc: weightedMedianFilter(joint, src, dst, r, sigma, weightType, mask)
  1679. public static void weightedMedianFilter (Mat joint, Mat src, Mat dst, int r, double sigma, int weightType, Mat mask)
  1680. {
  1681. if (joint != null) joint.ThrowIfDisposed ();
  1682. if (src != null) src.ThrowIfDisposed ();
  1683. if (dst != null) dst.ThrowIfDisposed ();
  1684. if (mask != null) mask.ThrowIfDisposed ();
  1685. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1686. ximgproc_Ximgproc_weightedMedianFilter_10(joint.nativeObj, src.nativeObj, dst.nativeObj, r, sigma, weightType, mask.nativeObj);
  1687. return;
  1688. #else
  1689. return;
  1690. #endif
  1691. }
  1692. //javadoc: weightedMedianFilter(joint, src, dst, r, sigma, weightType)
  1693. public static void weightedMedianFilter (Mat joint, Mat src, Mat dst, int r, double sigma, int weightType)
  1694. {
  1695. if (joint != null) joint.ThrowIfDisposed ();
  1696. if (src != null) src.ThrowIfDisposed ();
  1697. if (dst != null) dst.ThrowIfDisposed ();
  1698. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1699. ximgproc_Ximgproc_weightedMedianFilter_11(joint.nativeObj, src.nativeObj, dst.nativeObj, r, sigma, weightType);
  1700. return;
  1701. #else
  1702. return;
  1703. #endif
  1704. }
  1705. //javadoc: weightedMedianFilter(joint, src, dst, r, sigma)
  1706. public static void weightedMedianFilter (Mat joint, Mat src, Mat dst, int r, double sigma)
  1707. {
  1708. if (joint != null) joint.ThrowIfDisposed ();
  1709. if (src != null) src.ThrowIfDisposed ();
  1710. if (dst != null) dst.ThrowIfDisposed ();
  1711. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1712. ximgproc_Ximgproc_weightedMedianFilter_12(joint.nativeObj, src.nativeObj, dst.nativeObj, r, sigma);
  1713. return;
  1714. #else
  1715. return;
  1716. #endif
  1717. }
  1718. //javadoc: weightedMedianFilter(joint, src, dst, r)
  1719. public static void weightedMedianFilter (Mat joint, Mat src, Mat dst, int r)
  1720. {
  1721. if (joint != null) joint.ThrowIfDisposed ();
  1722. if (src != null) src.ThrowIfDisposed ();
  1723. if (dst != null) dst.ThrowIfDisposed ();
  1724. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1725. ximgproc_Ximgproc_weightedMedianFilter_13(joint.nativeObj, src.nativeObj, dst.nativeObj, r);
  1726. return;
  1727. #else
  1728. return;
  1729. #endif
  1730. }
  1731. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  1732. const string LIBNAME = "__Internal";
  1733. #else
  1734. const string LIBNAME = "opencvforunity";
  1735. #endif
  1736. // C++: Ptr_AdaptiveManifoldFilter cv::ximgproc::createAMFilter(double sigma_s, double sigma_r, bool adjust_outliers = false)
  1737. [DllImport (LIBNAME)]
  1738. private static extern IntPtr ximgproc_Ximgproc_createAMFilter_10 (double sigma_s, double sigma_r, bool adjust_outliers);
  1739. [DllImport (LIBNAME)]
  1740. private static extern IntPtr ximgproc_Ximgproc_createAMFilter_11 (double sigma_s, double sigma_r);
  1741. // C++: Ptr_ContourFitting cv::ximgproc::createContourFitting(int ctr = 1024, int fd = 16)
  1742. [DllImport (LIBNAME)]
  1743. private static extern IntPtr ximgproc_Ximgproc_createContourFitting_10 (int ctr, int fd);
  1744. [DllImport (LIBNAME)]
  1745. private static extern IntPtr ximgproc_Ximgproc_createContourFitting_11 (int ctr);
  1746. [DllImport (LIBNAME)]
  1747. private static extern IntPtr ximgproc_Ximgproc_createContourFitting_12 ();
  1748. // C++: Ptr_DTFilter cv::ximgproc::createDTFilter(Mat guide, double sigmaSpatial, double sigmaColor, int mode = DTF_NC, int numIters = 3)
  1749. [DllImport (LIBNAME)]
  1750. private static extern IntPtr ximgproc_Ximgproc_createDTFilter_10 (IntPtr guide_nativeObj, double sigmaSpatial, double sigmaColor, int mode, int numIters);
  1751. [DllImport (LIBNAME)]
  1752. private static extern IntPtr ximgproc_Ximgproc_createDTFilter_11 (IntPtr guide_nativeObj, double sigmaSpatial, double sigmaColor, int mode);
  1753. [DllImport (LIBNAME)]
  1754. private static extern IntPtr ximgproc_Ximgproc_createDTFilter_12 (IntPtr guide_nativeObj, double sigmaSpatial, double sigmaColor);
  1755. // C++: Ptr_DisparityWLSFilter cv::ximgproc::createDisparityWLSFilter(Ptr_StereoMatcher matcher_left)
  1756. [DllImport (LIBNAME)]
  1757. private static extern IntPtr ximgproc_Ximgproc_createDisparityWLSFilter_10 (IntPtr matcher_left_nativeObj);
  1758. // C++: Ptr_DisparityWLSFilter cv::ximgproc::createDisparityWLSFilterGeneric(bool use_confidence)
  1759. [DllImport (LIBNAME)]
  1760. private static extern IntPtr ximgproc_Ximgproc_createDisparityWLSFilterGeneric_10 (bool use_confidence);
  1761. // C++: Ptr_EdgeAwareInterpolator cv::ximgproc::createEdgeAwareInterpolator()
  1762. [DllImport (LIBNAME)]
  1763. private static extern IntPtr ximgproc_Ximgproc_createEdgeAwareInterpolator_10 ();
  1764. // C++: Ptr_EdgeBoxes cv::ximgproc::createEdgeBoxes(float alpha = 0.65f, float beta = 0.75f, float eta = 1, float minScore = 0.01f, int maxBoxes = 10000, float edgeMinMag = 0.1f, float edgeMergeThr = 0.5f, float clusterMinMag = 0.5f, float maxAspectRatio = 3, float minBoxArea = 1000, float gamma = 2, float kappa = 1.5f)
  1765. [DllImport (LIBNAME)]
  1766. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_10 (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag, float edgeMergeThr, float clusterMinMag, float maxAspectRatio, float minBoxArea, float gamma, float kappa);
  1767. [DllImport (LIBNAME)]
  1768. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_11 (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag, float edgeMergeThr, float clusterMinMag, float maxAspectRatio, float minBoxArea, float gamma);
  1769. [DllImport (LIBNAME)]
  1770. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_12 (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag, float edgeMergeThr, float clusterMinMag, float maxAspectRatio, float minBoxArea);
  1771. [DllImport (LIBNAME)]
  1772. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_13 (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag, float edgeMergeThr, float clusterMinMag, float maxAspectRatio);
  1773. [DllImport (LIBNAME)]
  1774. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_14 (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag, float edgeMergeThr, float clusterMinMag);
  1775. [DllImport (LIBNAME)]
  1776. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_15 (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag, float edgeMergeThr);
  1777. [DllImport (LIBNAME)]
  1778. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_16 (float alpha, float beta, float eta, float minScore, int maxBoxes, float edgeMinMag);
  1779. [DllImport (LIBNAME)]
  1780. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_17 (float alpha, float beta, float eta, float minScore, int maxBoxes);
  1781. [DllImport (LIBNAME)]
  1782. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_18 (float alpha, float beta, float eta, float minScore);
  1783. [DllImport (LIBNAME)]
  1784. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_19 (float alpha, float beta, float eta);
  1785. [DllImport (LIBNAME)]
  1786. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_110 (float alpha, float beta);
  1787. [DllImport (LIBNAME)]
  1788. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_111 (float alpha);
  1789. [DllImport (LIBNAME)]
  1790. private static extern IntPtr ximgproc_Ximgproc_createEdgeBoxes_112 ();
  1791. // C++: Ptr_FastBilateralSolverFilter cv::ximgproc::createFastBilateralSolverFilter(Mat guide, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda = 128.0, int num_iter = 25, double max_tol = 1e-5)
  1792. [DllImport (LIBNAME)]
  1793. private static extern IntPtr ximgproc_Ximgproc_createFastBilateralSolverFilter_10 (IntPtr guide_nativeObj, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda, int num_iter, double max_tol);
  1794. [DllImport (LIBNAME)]
  1795. private static extern IntPtr ximgproc_Ximgproc_createFastBilateralSolverFilter_11 (IntPtr guide_nativeObj, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda, int num_iter);
  1796. [DllImport (LIBNAME)]
  1797. private static extern IntPtr ximgproc_Ximgproc_createFastBilateralSolverFilter_12 (IntPtr guide_nativeObj, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda);
  1798. [DllImport (LIBNAME)]
  1799. private static extern IntPtr ximgproc_Ximgproc_createFastBilateralSolverFilter_13 (IntPtr guide_nativeObj, double sigma_spatial, double sigma_luma, double sigma_chroma);
  1800. // C++: Ptr_FastGlobalSmootherFilter cv::ximgproc::createFastGlobalSmootherFilter(Mat guide, double lambda, double sigma_color, double lambda_attenuation = 0.25, int num_iter = 3)
  1801. [DllImport (LIBNAME)]
  1802. private static extern IntPtr ximgproc_Ximgproc_createFastGlobalSmootherFilter_10 (IntPtr guide_nativeObj, double lambda, double sigma_color, double lambda_attenuation, int num_iter);
  1803. [DllImport (LIBNAME)]
  1804. private static extern IntPtr ximgproc_Ximgproc_createFastGlobalSmootherFilter_11 (IntPtr guide_nativeObj, double lambda, double sigma_color, double lambda_attenuation);
  1805. [DllImport (LIBNAME)]
  1806. private static extern IntPtr ximgproc_Ximgproc_createFastGlobalSmootherFilter_12 (IntPtr guide_nativeObj, double lambda, double sigma_color);
  1807. // C++: Ptr_FastLineDetector cv::ximgproc::createFastLineDetector(int _length_threshold = 10, float _distance_threshold = 1.414213562f, double _canny_th1 = 50.0, double _canny_th2 = 50.0, int _canny_aperture_size = 3, bool _do_merge = false)
  1808. [DllImport (LIBNAME)]
  1809. private static extern IntPtr ximgproc_Ximgproc_createFastLineDetector_10 (int _length_threshold, float _distance_threshold, double _canny_th1, double _canny_th2, int _canny_aperture_size, bool _do_merge);
  1810. [DllImport (LIBNAME)]
  1811. private static extern IntPtr ximgproc_Ximgproc_createFastLineDetector_11 (int _length_threshold, float _distance_threshold, double _canny_th1, double _canny_th2, int _canny_aperture_size);
  1812. [DllImport (LIBNAME)]
  1813. private static extern IntPtr ximgproc_Ximgproc_createFastLineDetector_12 (int _length_threshold, float _distance_threshold, double _canny_th1, double _canny_th2);
  1814. [DllImport (LIBNAME)]
  1815. private static extern IntPtr ximgproc_Ximgproc_createFastLineDetector_13 (int _length_threshold, float _distance_threshold, double _canny_th1);
  1816. [DllImport (LIBNAME)]
  1817. private static extern IntPtr ximgproc_Ximgproc_createFastLineDetector_14 (int _length_threshold, float _distance_threshold);
  1818. [DllImport (LIBNAME)]
  1819. private static extern IntPtr ximgproc_Ximgproc_createFastLineDetector_15 (int _length_threshold);
  1820. [DllImport (LIBNAME)]
  1821. private static extern IntPtr ximgproc_Ximgproc_createFastLineDetector_16 ();
  1822. // C++: Ptr_GraphSegmentation cv::ximgproc::segmentation::createGraphSegmentation(double sigma = 0.5, float k = 300, int min_size = 100)
  1823. [DllImport (LIBNAME)]
  1824. private static extern IntPtr ximgproc_Ximgproc_createGraphSegmentation_10 (double sigma, float k, int min_size);
  1825. [DllImport (LIBNAME)]
  1826. private static extern IntPtr ximgproc_Ximgproc_createGraphSegmentation_11 (double sigma, float k);
  1827. [DllImport (LIBNAME)]
  1828. private static extern IntPtr ximgproc_Ximgproc_createGraphSegmentation_12 (double sigma);
  1829. [DllImport (LIBNAME)]
  1830. private static extern IntPtr ximgproc_Ximgproc_createGraphSegmentation_13 ();
  1831. // C++: Ptr_GuidedFilter cv::ximgproc::createGuidedFilter(Mat guide, int radius, double eps)
  1832. [DllImport (LIBNAME)]
  1833. private static extern IntPtr ximgproc_Ximgproc_createGuidedFilter_10 (IntPtr guide_nativeObj, int radius, double eps);
  1834. // C++: Ptr_RFFeatureGetter cv::ximgproc::createRFFeatureGetter()
  1835. [DllImport (LIBNAME)]
  1836. private static extern IntPtr ximgproc_Ximgproc_createRFFeatureGetter_10 ();
  1837. // C++: Ptr_SelectiveSearchSegmentation cv::ximgproc::segmentation::createSelectiveSearchSegmentation()
  1838. [DllImport (LIBNAME)]
  1839. private static extern IntPtr ximgproc_Ximgproc_createSelectiveSearchSegmentation_10 ();
  1840. // C++: Ptr_SelectiveSearchSegmentationStrategyColor cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyColor()
  1841. [DllImport (LIBNAME)]
  1842. private static extern IntPtr ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyColor_10 ();
  1843. // C++: Ptr_SelectiveSearchSegmentationStrategyFill cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyFill()
  1844. [DllImport (LIBNAME)]
  1845. private static extern IntPtr ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyFill_10 ();
  1846. // C++: Ptr_SelectiveSearchSegmentationStrategyMultiple cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple(Ptr_SelectiveSearchSegmentationStrategy s1, Ptr_SelectiveSearchSegmentationStrategy s2, Ptr_SelectiveSearchSegmentationStrategy s3, Ptr_SelectiveSearchSegmentationStrategy s4)
  1847. [DllImport (LIBNAME)]
  1848. private static extern IntPtr ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyMultiple_10 (IntPtr s1_nativeObj, IntPtr s2_nativeObj, IntPtr s3_nativeObj, IntPtr s4_nativeObj);
  1849. // C++: Ptr_SelectiveSearchSegmentationStrategyMultiple cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple(Ptr_SelectiveSearchSegmentationStrategy s1, Ptr_SelectiveSearchSegmentationStrategy s2, Ptr_SelectiveSearchSegmentationStrategy s3)
  1850. [DllImport (LIBNAME)]
  1851. private static extern IntPtr ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyMultiple_11 (IntPtr s1_nativeObj, IntPtr s2_nativeObj, IntPtr s3_nativeObj);
  1852. // C++: Ptr_SelectiveSearchSegmentationStrategyMultiple cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple(Ptr_SelectiveSearchSegmentationStrategy s1, Ptr_SelectiveSearchSegmentationStrategy s2)
  1853. [DllImport (LIBNAME)]
  1854. private static extern IntPtr ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyMultiple_12 (IntPtr s1_nativeObj, IntPtr s2_nativeObj);
  1855. // C++: Ptr_SelectiveSearchSegmentationStrategyMultiple cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple(Ptr_SelectiveSearchSegmentationStrategy s1)
  1856. [DllImport (LIBNAME)]
  1857. private static extern IntPtr ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyMultiple_13 (IntPtr s1_nativeObj);
  1858. // C++: Ptr_SelectiveSearchSegmentationStrategyMultiple cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyMultiple()
  1859. [DllImport (LIBNAME)]
  1860. private static extern IntPtr ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyMultiple_14 ();
  1861. // C++: Ptr_SelectiveSearchSegmentationStrategySize cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategySize()
  1862. [DllImport (LIBNAME)]
  1863. private static extern IntPtr ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategySize_10 ();
  1864. // C++: Ptr_SelectiveSearchSegmentationStrategyTexture cv::ximgproc::segmentation::createSelectiveSearchSegmentationStrategyTexture()
  1865. [DllImport (LIBNAME)]
  1866. private static extern IntPtr ximgproc_Ximgproc_createSelectiveSearchSegmentationStrategyTexture_10 ();
  1867. // C++: Ptr_StereoMatcher cv::ximgproc::createRightMatcher(Ptr_StereoMatcher matcher_left)
  1868. [DllImport (LIBNAME)]
  1869. private static extern IntPtr ximgproc_Ximgproc_createRightMatcher_10 (IntPtr matcher_left_nativeObj);
  1870. // C++: Ptr_StructuredEdgeDetection cv::ximgproc::createStructuredEdgeDetection(String model, Ptr_RFFeatureGetter howToGetFeatures = Ptr<RFFeatureGetter>())
  1871. [DllImport (LIBNAME)]
  1872. private static extern IntPtr ximgproc_Ximgproc_createStructuredEdgeDetection_10 (string model, IntPtr howToGetFeatures_nativeObj);
  1873. [DllImport (LIBNAME)]
  1874. private static extern IntPtr ximgproc_Ximgproc_createStructuredEdgeDetection_11 (string model);
  1875. // C++: Ptr_SuperpixelLSC cv::ximgproc::createSuperpixelLSC(Mat image, int region_size = 10, float ratio = 0.075f)
  1876. [DllImport (LIBNAME)]
  1877. private static extern IntPtr ximgproc_Ximgproc_createSuperpixelLSC_10 (IntPtr image_nativeObj, int region_size, float ratio);
  1878. [DllImport (LIBNAME)]
  1879. private static extern IntPtr ximgproc_Ximgproc_createSuperpixelLSC_11 (IntPtr image_nativeObj, int region_size);
  1880. [DllImport (LIBNAME)]
  1881. private static extern IntPtr ximgproc_Ximgproc_createSuperpixelLSC_12 (IntPtr image_nativeObj);
  1882. // C++: Ptr_SuperpixelSEEDS cv::ximgproc::createSuperpixelSEEDS(int image_width, int image_height, int image_channels, int num_superpixels, int num_levels, int prior = 2, int histogram_bins = 5, bool double_step = false)
  1883. [DllImport (LIBNAME)]
  1884. private static extern IntPtr ximgproc_Ximgproc_createSuperpixelSEEDS_10 (int image_width, int image_height, int image_channels, int num_superpixels, int num_levels, int prior, int histogram_bins, bool double_step);
  1885. [DllImport (LIBNAME)]
  1886. private static extern IntPtr ximgproc_Ximgproc_createSuperpixelSEEDS_11 (int image_width, int image_height, int image_channels, int num_superpixels, int num_levels, int prior, int histogram_bins);
  1887. [DllImport (LIBNAME)]
  1888. private static extern IntPtr ximgproc_Ximgproc_createSuperpixelSEEDS_12 (int image_width, int image_height, int image_channels, int num_superpixels, int num_levels, int prior);
  1889. [DllImport (LIBNAME)]
  1890. private static extern IntPtr ximgproc_Ximgproc_createSuperpixelSEEDS_13 (int image_width, int image_height, int image_channels, int num_superpixels, int num_levels);
  1891. // C++: Ptr_SuperpixelSLIC cv::ximgproc::createSuperpixelSLIC(Mat image, int algorithm = SLICO, int region_size = 10, float ruler = 10.0f)
  1892. [DllImport (LIBNAME)]
  1893. private static extern IntPtr ximgproc_Ximgproc_createSuperpixelSLIC_10 (IntPtr image_nativeObj, int algorithm, int region_size, float ruler);
  1894. [DllImport (LIBNAME)]
  1895. private static extern IntPtr ximgproc_Ximgproc_createSuperpixelSLIC_11 (IntPtr image_nativeObj, int algorithm, int region_size);
  1896. [DllImport (LIBNAME)]
  1897. private static extern IntPtr ximgproc_Ximgproc_createSuperpixelSLIC_12 (IntPtr image_nativeObj, int algorithm);
  1898. [DllImport (LIBNAME)]
  1899. private static extern IntPtr ximgproc_Ximgproc_createSuperpixelSLIC_13 (IntPtr image_nativeObj);
  1900. // C++: void cv::ximgproc::FastHoughTransform(Mat src, Mat& dst, int dstMatDepth, int angleRange = ARO_315_135, int op = FHT_ADD, int makeSkew = HDO_DESKEW)
  1901. [DllImport (LIBNAME)]
  1902. private static extern void ximgproc_Ximgproc_FastHoughTransform_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int dstMatDepth, int angleRange, int op, int makeSkew);
  1903. [DllImport (LIBNAME)]
  1904. private static extern void ximgproc_Ximgproc_FastHoughTransform_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int dstMatDepth, int angleRange, int op);
  1905. [DllImport (LIBNAME)]
  1906. private static extern void ximgproc_Ximgproc_FastHoughTransform_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int dstMatDepth, int angleRange);
  1907. [DllImport (LIBNAME)]
  1908. private static extern void ximgproc_Ximgproc_FastHoughTransform_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int dstMatDepth);
  1909. // C++: void cv::ximgproc::GradientDericheX(Mat op, Mat& dst, double alpha, double omega)
  1910. [DllImport (LIBNAME)]
  1911. private static extern void ximgproc_Ximgproc_GradientDericheX_10 (IntPtr op_nativeObj, IntPtr dst_nativeObj, double alpha, double omega);
  1912. // C++: void cv::ximgproc::GradientDericheY(Mat op, Mat& dst, double alpha, double omega)
  1913. [DllImport (LIBNAME)]
  1914. private static extern void ximgproc_Ximgproc_GradientDericheY_10 (IntPtr op_nativeObj, IntPtr dst_nativeObj, double alpha, double omega);
  1915. // C++: void cv::ximgproc::PeiLinNormalization(Mat I, Mat& T)
  1916. [DllImport (LIBNAME)]
  1917. private static extern void ximgproc_Ximgproc_PeiLinNormalization_10 (IntPtr I_nativeObj, IntPtr T_nativeObj);
  1918. // C++: void cv::ximgproc::amFilter(Mat joint, Mat src, Mat& dst, double sigma_s, double sigma_r, bool adjust_outliers = false)
  1919. [DllImport (LIBNAME)]
  1920. private static extern void ximgproc_Ximgproc_amFilter_10 (IntPtr joint_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, double sigma_s, double sigma_r, bool adjust_outliers);
  1921. [DllImport (LIBNAME)]
  1922. private static extern void ximgproc_Ximgproc_amFilter_11 (IntPtr joint_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, double sigma_s, double sigma_r);
  1923. // C++: void cv::ximgproc::anisotropicDiffusion(Mat src, Mat& dst, float alpha, float K, int niters)
  1924. [DllImport (LIBNAME)]
  1925. private static extern void ximgproc_Ximgproc_anisotropicDiffusion_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, float alpha, float K, int niters);
  1926. // C++: void cv::ximgproc::bilateralTextureFilter(Mat src, Mat& dst, int fr = 3, int numIter = 1, double sigmaAlpha = -1., double sigmaAvg = -1.)
  1927. [DllImport (LIBNAME)]
  1928. private static extern void ximgproc_Ximgproc_bilateralTextureFilter_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int fr, int numIter, double sigmaAlpha, double sigmaAvg);
  1929. [DllImport (LIBNAME)]
  1930. private static extern void ximgproc_Ximgproc_bilateralTextureFilter_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int fr, int numIter, double sigmaAlpha);
  1931. [DllImport (LIBNAME)]
  1932. private static extern void ximgproc_Ximgproc_bilateralTextureFilter_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int fr, int numIter);
  1933. [DllImport (LIBNAME)]
  1934. private static extern void ximgproc_Ximgproc_bilateralTextureFilter_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int fr);
  1935. [DllImport (LIBNAME)]
  1936. private static extern void ximgproc_Ximgproc_bilateralTextureFilter_14 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  1937. // C++: void cv::ximgproc::colorMatchTemplate(Mat img, Mat templ, Mat& result)
  1938. [DllImport (LIBNAME)]
  1939. private static extern void ximgproc_Ximgproc_colorMatchTemplate_10 (IntPtr img_nativeObj, IntPtr templ_nativeObj, IntPtr result_nativeObj);
  1940. // C++: void cv::ximgproc::contourSampling(Mat src, Mat& _out, int nbElt)
  1941. [DllImport (LIBNAME)]
  1942. private static extern void ximgproc_Ximgproc_contourSampling_10 (IntPtr src_nativeObj, IntPtr _out_nativeObj, int nbElt);
  1943. // C++: void cv::ximgproc::covarianceEstimation(Mat src, Mat& dst, int windowRows, int windowCols)
  1944. [DllImport (LIBNAME)]
  1945. private static extern void ximgproc_Ximgproc_covarianceEstimation_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int windowRows, int windowCols);
  1946. // C++: void cv::ximgproc::createQuaternionImage(Mat img, Mat& qimg)
  1947. [DllImport (LIBNAME)]
  1948. private static extern void ximgproc_Ximgproc_createQuaternionImage_10 (IntPtr img_nativeObj, IntPtr qimg_nativeObj);
  1949. // C++: void cv::ximgproc::dtFilter(Mat guide, Mat src, Mat& dst, double sigmaSpatial, double sigmaColor, int mode = DTF_NC, int numIters = 3)
  1950. [DllImport (LIBNAME)]
  1951. private static extern void ximgproc_Ximgproc_dtFilter_10 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, double sigmaSpatial, double sigmaColor, int mode, int numIters);
  1952. [DllImport (LIBNAME)]
  1953. private static extern void ximgproc_Ximgproc_dtFilter_11 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, double sigmaSpatial, double sigmaColor, int mode);
  1954. [DllImport (LIBNAME)]
  1955. private static extern void ximgproc_Ximgproc_dtFilter_12 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, double sigmaSpatial, double sigmaColor);
  1956. // C++: void cv::ximgproc::edgePreservingFilter(Mat src, Mat& dst, int d, double threshold)
  1957. [DllImport (LIBNAME)]
  1958. private static extern void ximgproc_Ximgproc_edgePreservingFilter_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int d, double threshold);
  1959. // C++: void cv::ximgproc::fastBilateralSolverFilter(Mat guide, Mat src, Mat confidence, Mat& dst, double sigma_spatial = 8, double sigma_luma = 8, double sigma_chroma = 8, double lambda = 128.0, int num_iter = 25, double max_tol = 1e-5)
  1960. [DllImport (LIBNAME)]
  1961. private static extern void ximgproc_Ximgproc_fastBilateralSolverFilter_10 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr confidence_nativeObj, IntPtr dst_nativeObj, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda, int num_iter, double max_tol);
  1962. [DllImport (LIBNAME)]
  1963. private static extern void ximgproc_Ximgproc_fastBilateralSolverFilter_11 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr confidence_nativeObj, IntPtr dst_nativeObj, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda, int num_iter);
  1964. [DllImport (LIBNAME)]
  1965. private static extern void ximgproc_Ximgproc_fastBilateralSolverFilter_12 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr confidence_nativeObj, IntPtr dst_nativeObj, double sigma_spatial, double sigma_luma, double sigma_chroma, double lambda);
  1966. [DllImport (LIBNAME)]
  1967. private static extern void ximgproc_Ximgproc_fastBilateralSolverFilter_13 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr confidence_nativeObj, IntPtr dst_nativeObj, double sigma_spatial, double sigma_luma, double sigma_chroma);
  1968. [DllImport (LIBNAME)]
  1969. private static extern void ximgproc_Ximgproc_fastBilateralSolverFilter_14 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr confidence_nativeObj, IntPtr dst_nativeObj, double sigma_spatial, double sigma_luma);
  1970. [DllImport (LIBNAME)]
  1971. private static extern void ximgproc_Ximgproc_fastBilateralSolverFilter_15 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr confidence_nativeObj, IntPtr dst_nativeObj, double sigma_spatial);
  1972. [DllImport (LIBNAME)]
  1973. private static extern void ximgproc_Ximgproc_fastBilateralSolverFilter_16 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr confidence_nativeObj, IntPtr dst_nativeObj);
  1974. // C++: void cv::ximgproc::fastGlobalSmootherFilter(Mat guide, Mat src, Mat& dst, double lambda, double sigma_color, double lambda_attenuation = 0.25, int num_iter = 3)
  1975. [DllImport (LIBNAME)]
  1976. private static extern void ximgproc_Ximgproc_fastGlobalSmootherFilter_10 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, double lambda, double sigma_color, double lambda_attenuation, int num_iter);
  1977. [DllImport (LIBNAME)]
  1978. private static extern void ximgproc_Ximgproc_fastGlobalSmootherFilter_11 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, double lambda, double sigma_color, double lambda_attenuation);
  1979. [DllImport (LIBNAME)]
  1980. private static extern void ximgproc_Ximgproc_fastGlobalSmootherFilter_12 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, double lambda, double sigma_color);
  1981. // C++: void cv::ximgproc::fourierDescriptor(Mat src, Mat& dst, int nbElt = -1, int nbFD = -1)
  1982. [DllImport (LIBNAME)]
  1983. private static extern void ximgproc_Ximgproc_fourierDescriptor_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int nbElt, int nbFD);
  1984. [DllImport (LIBNAME)]
  1985. private static extern void ximgproc_Ximgproc_fourierDescriptor_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int nbElt);
  1986. [DllImport (LIBNAME)]
  1987. private static extern void ximgproc_Ximgproc_fourierDescriptor_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  1988. // C++: void cv::ximgproc::guidedFilter(Mat guide, Mat src, Mat& dst, int radius, double eps, int dDepth = -1)
  1989. [DllImport (LIBNAME)]
  1990. private static extern void ximgproc_Ximgproc_guidedFilter_10 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, int radius, double eps, int dDepth);
  1991. [DllImport (LIBNAME)]
  1992. private static extern void ximgproc_Ximgproc_guidedFilter_11 (IntPtr guide_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, int radius, double eps);
  1993. // C++: void cv::ximgproc::jointBilateralFilter(Mat joint, Mat src, Mat& dst, int d, double sigmaColor, double sigmaSpace, int borderType = BORDER_DEFAULT)
  1994. [DllImport (LIBNAME)]
  1995. private static extern void ximgproc_Ximgproc_jointBilateralFilter_10 (IntPtr joint_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, int d, double sigmaColor, double sigmaSpace, int borderType);
  1996. [DllImport (LIBNAME)]
  1997. private static extern void ximgproc_Ximgproc_jointBilateralFilter_11 (IntPtr joint_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, int d, double sigmaColor, double sigmaSpace);
  1998. // C++: void cv::ximgproc::l0Smooth(Mat src, Mat& dst, double lambda = 0.02, double kappa = 2.0)
  1999. [DllImport (LIBNAME)]
  2000. private static extern void ximgproc_Ximgproc_l0Smooth_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double lambda, double kappa);
  2001. [DllImport (LIBNAME)]
  2002. private static extern void ximgproc_Ximgproc_l0Smooth_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double lambda);
  2003. [DllImport (LIBNAME)]
  2004. private static extern void ximgproc_Ximgproc_l0Smooth_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  2005. // C++: void cv::ximgproc::niBlackThreshold(Mat _src, Mat& _dst, double maxValue, int type, int blockSize, double k, int binarizationMethod = BINARIZATION_NIBLACK)
  2006. [DllImport (LIBNAME)]
  2007. private static extern void ximgproc_Ximgproc_niBlackThreshold_10 (IntPtr _src_nativeObj, IntPtr _dst_nativeObj, double maxValue, int type, int blockSize, double k, int binarizationMethod);
  2008. [DllImport (LIBNAME)]
  2009. private static extern void ximgproc_Ximgproc_niBlackThreshold_11 (IntPtr _src_nativeObj, IntPtr _dst_nativeObj, double maxValue, int type, int blockSize, double k);
  2010. // C++: void cv::ximgproc::qconj(Mat qimg, Mat& qcimg)
  2011. [DllImport (LIBNAME)]
  2012. private static extern void ximgproc_Ximgproc_qconj_10 (IntPtr qimg_nativeObj, IntPtr qcimg_nativeObj);
  2013. // C++: void cv::ximgproc::qdft(Mat img, Mat& qimg, int flags, bool sideLeft)
  2014. [DllImport (LIBNAME)]
  2015. private static extern void ximgproc_Ximgproc_qdft_10 (IntPtr img_nativeObj, IntPtr qimg_nativeObj, int flags, bool sideLeft);
  2016. // C++: void cv::ximgproc::qmultiply(Mat src1, Mat src2, Mat& dst)
  2017. [DllImport (LIBNAME)]
  2018. private static extern void ximgproc_Ximgproc_qmultiply_10 (IntPtr src1_nativeObj, IntPtr src2_nativeObj, IntPtr dst_nativeObj);
  2019. // C++: void cv::ximgproc::qunitary(Mat qimg, Mat& qnimg)
  2020. [DllImport (LIBNAME)]
  2021. private static extern void ximgproc_Ximgproc_qunitary_10 (IntPtr qimg_nativeObj, IntPtr qnimg_nativeObj);
  2022. // C++: void cv::ximgproc::rollingGuidanceFilter(Mat src, Mat& dst, int d = -1, double sigmaColor = 25, double sigmaSpace = 3, int numOfIter = 4, int borderType = BORDER_DEFAULT)
  2023. [DllImport (LIBNAME)]
  2024. private static extern void ximgproc_Ximgproc_rollingGuidanceFilter_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int d, double sigmaColor, double sigmaSpace, int numOfIter, int borderType);
  2025. [DllImport (LIBNAME)]
  2026. private static extern void ximgproc_Ximgproc_rollingGuidanceFilter_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int d, double sigmaColor, double sigmaSpace, int numOfIter);
  2027. [DllImport (LIBNAME)]
  2028. private static extern void ximgproc_Ximgproc_rollingGuidanceFilter_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int d, double sigmaColor, double sigmaSpace);
  2029. [DllImport (LIBNAME)]
  2030. private static extern void ximgproc_Ximgproc_rollingGuidanceFilter_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int d, double sigmaColor);
  2031. [DllImport (LIBNAME)]
  2032. private static extern void ximgproc_Ximgproc_rollingGuidanceFilter_14 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int d);
  2033. [DllImport (LIBNAME)]
  2034. private static extern void ximgproc_Ximgproc_rollingGuidanceFilter_15 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  2035. // C++: void cv::ximgproc::thinning(Mat src, Mat& dst, int thinningType = THINNING_ZHANGSUEN)
  2036. [DllImport (LIBNAME)]
  2037. private static extern void ximgproc_Ximgproc_thinning_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int thinningType);
  2038. [DllImport (LIBNAME)]
  2039. private static extern void ximgproc_Ximgproc_thinning_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  2040. // C++: void cv::ximgproc::transformFD(Mat src, Mat t, Mat& dst, bool fdContour = true)
  2041. [DllImport (LIBNAME)]
  2042. private static extern void ximgproc_Ximgproc_transformFD_10 (IntPtr src_nativeObj, IntPtr t_nativeObj, IntPtr dst_nativeObj, bool fdContour);
  2043. [DllImport (LIBNAME)]
  2044. private static extern void ximgproc_Ximgproc_transformFD_11 (IntPtr src_nativeObj, IntPtr t_nativeObj, IntPtr dst_nativeObj);
  2045. // C++: void cv::ximgproc::weightedMedianFilter(Mat joint, Mat src, Mat& dst, int r, double sigma = 25.5, int weightType = WMF_EXP, Mat mask = Mat())
  2046. [DllImport (LIBNAME)]
  2047. private static extern void ximgproc_Ximgproc_weightedMedianFilter_10 (IntPtr joint_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, int r, double sigma, int weightType, IntPtr mask_nativeObj);
  2048. [DllImport (LIBNAME)]
  2049. private static extern void ximgproc_Ximgproc_weightedMedianFilter_11 (IntPtr joint_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, int r, double sigma, int weightType);
  2050. [DllImport (LIBNAME)]
  2051. private static extern void ximgproc_Ximgproc_weightedMedianFilter_12 (IntPtr joint_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, int r, double sigma);
  2052. [DllImport (LIBNAME)]
  2053. private static extern void ximgproc_Ximgproc_weightedMedianFilter_13 (IntPtr joint_nativeObj, IntPtr src_nativeObj, IntPtr dst_nativeObj, int r);
  2054. }
  2055. }