Photo.cs 76 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784
  1. 
  2. using OpenCVForUnity.CoreModule;
  3. using OpenCVForUnity.UtilsModule;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Runtime.InteropServices;
  7. namespace OpenCVForUnity.PhotoModule
  8. {
  9. // C++: class Photo
  10. //javadoc: Photo
  11. public class Photo
  12. {
  13. // C++: enum <unnamed>
  14. public const int INPAINT_NS = 0;
  15. public const int INPAINT_TELEA = 1;
  16. public const int NORMAL_CLONE = 1;
  17. public const int MIXED_CLONE = 2;
  18. public const int MONOCHROME_TRANSFER = 3;
  19. public const int RECURS_FILTER = 1;
  20. public const int NORMCONV_FILTER = 2;
  21. public const int LDR_SIZE = 256;
  22. //
  23. // C++: Ptr_AlignMTB cv::createAlignMTB(int max_bits = 6, int exclude_range = 4, bool cut = true)
  24. //
  25. //javadoc: createAlignMTB(max_bits, exclude_range, cut)
  26. public static AlignMTB createAlignMTB (int max_bits, int exclude_range, bool cut)
  27. {
  28. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  29. AlignMTB retVal = AlignMTB.__fromPtr__(photo_Photo_createAlignMTB_10(max_bits, exclude_range, cut));
  30. return retVal;
  31. #else
  32. return null;
  33. #endif
  34. }
  35. //javadoc: createAlignMTB(max_bits, exclude_range)
  36. public static AlignMTB createAlignMTB (int max_bits, int exclude_range)
  37. {
  38. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  39. AlignMTB retVal = AlignMTB.__fromPtr__(photo_Photo_createAlignMTB_11(max_bits, exclude_range));
  40. return retVal;
  41. #else
  42. return null;
  43. #endif
  44. }
  45. //javadoc: createAlignMTB(max_bits)
  46. public static AlignMTB createAlignMTB (int max_bits)
  47. {
  48. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  49. AlignMTB retVal = AlignMTB.__fromPtr__(photo_Photo_createAlignMTB_12(max_bits));
  50. return retVal;
  51. #else
  52. return null;
  53. #endif
  54. }
  55. //javadoc: createAlignMTB()
  56. public static AlignMTB createAlignMTB ()
  57. {
  58. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  59. AlignMTB retVal = AlignMTB.__fromPtr__(photo_Photo_createAlignMTB_13());
  60. return retVal;
  61. #else
  62. return null;
  63. #endif
  64. }
  65. //
  66. // C++: Ptr_CalibrateDebevec cv::createCalibrateDebevec(int samples = 70, float lambda = 10.0f, bool random = false)
  67. //
  68. //javadoc: createCalibrateDebevec(samples, lambda, random)
  69. public static CalibrateDebevec createCalibrateDebevec (int samples, float lambda, bool random)
  70. {
  71. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  72. CalibrateDebevec retVal = CalibrateDebevec.__fromPtr__(photo_Photo_createCalibrateDebevec_10(samples, lambda, random));
  73. return retVal;
  74. #else
  75. return null;
  76. #endif
  77. }
  78. //javadoc: createCalibrateDebevec(samples, lambda)
  79. public static CalibrateDebevec createCalibrateDebevec (int samples, float lambda)
  80. {
  81. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  82. CalibrateDebevec retVal = CalibrateDebevec.__fromPtr__(photo_Photo_createCalibrateDebevec_11(samples, lambda));
  83. return retVal;
  84. #else
  85. return null;
  86. #endif
  87. }
  88. //javadoc: createCalibrateDebevec(samples)
  89. public static CalibrateDebevec createCalibrateDebevec (int samples)
  90. {
  91. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  92. CalibrateDebevec retVal = CalibrateDebevec.__fromPtr__(photo_Photo_createCalibrateDebevec_12(samples));
  93. return retVal;
  94. #else
  95. return null;
  96. #endif
  97. }
  98. //javadoc: createCalibrateDebevec()
  99. public static CalibrateDebevec createCalibrateDebevec ()
  100. {
  101. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  102. CalibrateDebevec retVal = CalibrateDebevec.__fromPtr__(photo_Photo_createCalibrateDebevec_13());
  103. return retVal;
  104. #else
  105. return null;
  106. #endif
  107. }
  108. //
  109. // C++: Ptr_CalibrateRobertson cv::createCalibrateRobertson(int max_iter = 30, float threshold = 0.01f)
  110. //
  111. //javadoc: createCalibrateRobertson(max_iter, threshold)
  112. public static CalibrateRobertson createCalibrateRobertson (int max_iter, float threshold)
  113. {
  114. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  115. CalibrateRobertson retVal = CalibrateRobertson.__fromPtr__(photo_Photo_createCalibrateRobertson_10(max_iter, threshold));
  116. return retVal;
  117. #else
  118. return null;
  119. #endif
  120. }
  121. //javadoc: createCalibrateRobertson(max_iter)
  122. public static CalibrateRobertson createCalibrateRobertson (int max_iter)
  123. {
  124. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  125. CalibrateRobertson retVal = CalibrateRobertson.__fromPtr__(photo_Photo_createCalibrateRobertson_11(max_iter));
  126. return retVal;
  127. #else
  128. return null;
  129. #endif
  130. }
  131. //javadoc: createCalibrateRobertson()
  132. public static CalibrateRobertson createCalibrateRobertson ()
  133. {
  134. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  135. CalibrateRobertson retVal = CalibrateRobertson.__fromPtr__(photo_Photo_createCalibrateRobertson_12());
  136. return retVal;
  137. #else
  138. return null;
  139. #endif
  140. }
  141. //
  142. // C++: Ptr_MergeDebevec cv::createMergeDebevec()
  143. //
  144. //javadoc: createMergeDebevec()
  145. public static MergeDebevec createMergeDebevec ()
  146. {
  147. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  148. MergeDebevec retVal = MergeDebevec.__fromPtr__(photo_Photo_createMergeDebevec_10());
  149. return retVal;
  150. #else
  151. return null;
  152. #endif
  153. }
  154. //
  155. // C++: Ptr_MergeMertens cv::createMergeMertens(float contrast_weight = 1.0f, float saturation_weight = 1.0f, float exposure_weight = 0.0f)
  156. //
  157. //javadoc: createMergeMertens(contrast_weight, saturation_weight, exposure_weight)
  158. public static MergeMertens createMergeMertens (float contrast_weight, float saturation_weight, float exposure_weight)
  159. {
  160. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  161. MergeMertens retVal = MergeMertens.__fromPtr__(photo_Photo_createMergeMertens_10(contrast_weight, saturation_weight, exposure_weight));
  162. return retVal;
  163. #else
  164. return null;
  165. #endif
  166. }
  167. //javadoc: createMergeMertens(contrast_weight, saturation_weight)
  168. public static MergeMertens createMergeMertens (float contrast_weight, float saturation_weight)
  169. {
  170. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  171. MergeMertens retVal = MergeMertens.__fromPtr__(photo_Photo_createMergeMertens_11(contrast_weight, saturation_weight));
  172. return retVal;
  173. #else
  174. return null;
  175. #endif
  176. }
  177. //javadoc: createMergeMertens(contrast_weight)
  178. public static MergeMertens createMergeMertens (float contrast_weight)
  179. {
  180. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  181. MergeMertens retVal = MergeMertens.__fromPtr__(photo_Photo_createMergeMertens_12(contrast_weight));
  182. return retVal;
  183. #else
  184. return null;
  185. #endif
  186. }
  187. //javadoc: createMergeMertens()
  188. public static MergeMertens createMergeMertens ()
  189. {
  190. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  191. MergeMertens retVal = MergeMertens.__fromPtr__(photo_Photo_createMergeMertens_13());
  192. return retVal;
  193. #else
  194. return null;
  195. #endif
  196. }
  197. //
  198. // C++: Ptr_MergeRobertson cv::createMergeRobertson()
  199. //
  200. //javadoc: createMergeRobertson()
  201. public static MergeRobertson createMergeRobertson ()
  202. {
  203. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  204. MergeRobertson retVal = MergeRobertson.__fromPtr__(photo_Photo_createMergeRobertson_10());
  205. return retVal;
  206. #else
  207. return null;
  208. #endif
  209. }
  210. //
  211. // C++: Ptr_Tonemap cv::createTonemap(float gamma = 1.0f)
  212. //
  213. //javadoc: createTonemap(gamma)
  214. public static Tonemap createTonemap (float gamma)
  215. {
  216. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  217. Tonemap retVal = Tonemap.__fromPtr__(photo_Photo_createTonemap_10(gamma));
  218. return retVal;
  219. #else
  220. return null;
  221. #endif
  222. }
  223. //javadoc: createTonemap()
  224. public static Tonemap createTonemap ()
  225. {
  226. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  227. Tonemap retVal = Tonemap.__fromPtr__(photo_Photo_createTonemap_11());
  228. return retVal;
  229. #else
  230. return null;
  231. #endif
  232. }
  233. //
  234. // C++: Ptr_TonemapDrago cv::createTonemapDrago(float gamma = 1.0f, float saturation = 1.0f, float bias = 0.85f)
  235. //
  236. //javadoc: createTonemapDrago(gamma, saturation, bias)
  237. public static TonemapDrago createTonemapDrago (float gamma, float saturation, float bias)
  238. {
  239. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  240. TonemapDrago retVal = TonemapDrago.__fromPtr__(photo_Photo_createTonemapDrago_10(gamma, saturation, bias));
  241. return retVal;
  242. #else
  243. return null;
  244. #endif
  245. }
  246. //javadoc: createTonemapDrago(gamma, saturation)
  247. public static TonemapDrago createTonemapDrago (float gamma, float saturation)
  248. {
  249. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  250. TonemapDrago retVal = TonemapDrago.__fromPtr__(photo_Photo_createTonemapDrago_11(gamma, saturation));
  251. return retVal;
  252. #else
  253. return null;
  254. #endif
  255. }
  256. //javadoc: createTonemapDrago(gamma)
  257. public static TonemapDrago createTonemapDrago (float gamma)
  258. {
  259. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  260. TonemapDrago retVal = TonemapDrago.__fromPtr__(photo_Photo_createTonemapDrago_12(gamma));
  261. return retVal;
  262. #else
  263. return null;
  264. #endif
  265. }
  266. //javadoc: createTonemapDrago()
  267. public static TonemapDrago createTonemapDrago ()
  268. {
  269. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  270. TonemapDrago retVal = TonemapDrago.__fromPtr__(photo_Photo_createTonemapDrago_13());
  271. return retVal;
  272. #else
  273. return null;
  274. #endif
  275. }
  276. //
  277. // C++: Ptr_TonemapDurand cv::createTonemapDurand(float gamma = 1.0f, float contrast = 4.0f, float saturation = 1.0f, float sigma_space = 2.0f, float sigma_color = 2.0f)
  278. //
  279. //javadoc: createTonemapDurand(gamma, contrast, saturation, sigma_space, sigma_color)
  280. public static TonemapDurand createTonemapDurand (float gamma, float contrast, float saturation, float sigma_space, float sigma_color)
  281. {
  282. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  283. TonemapDurand retVal = TonemapDurand.__fromPtr__(photo_Photo_createTonemapDurand_10(gamma, contrast, saturation, sigma_space, sigma_color));
  284. return retVal;
  285. #else
  286. return null;
  287. #endif
  288. }
  289. //javadoc: createTonemapDurand(gamma, contrast, saturation, sigma_space)
  290. public static TonemapDurand createTonemapDurand (float gamma, float contrast, float saturation, float sigma_space)
  291. {
  292. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  293. TonemapDurand retVal = TonemapDurand.__fromPtr__(photo_Photo_createTonemapDurand_11(gamma, contrast, saturation, sigma_space));
  294. return retVal;
  295. #else
  296. return null;
  297. #endif
  298. }
  299. //javadoc: createTonemapDurand(gamma, contrast, saturation)
  300. public static TonemapDurand createTonemapDurand (float gamma, float contrast, float saturation)
  301. {
  302. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  303. TonemapDurand retVal = TonemapDurand.__fromPtr__(photo_Photo_createTonemapDurand_12(gamma, contrast, saturation));
  304. return retVal;
  305. #else
  306. return null;
  307. #endif
  308. }
  309. //javadoc: createTonemapDurand(gamma, contrast)
  310. public static TonemapDurand createTonemapDurand (float gamma, float contrast)
  311. {
  312. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  313. TonemapDurand retVal = TonemapDurand.__fromPtr__(photo_Photo_createTonemapDurand_13(gamma, contrast));
  314. return retVal;
  315. #else
  316. return null;
  317. #endif
  318. }
  319. //javadoc: createTonemapDurand(gamma)
  320. public static TonemapDurand createTonemapDurand (float gamma)
  321. {
  322. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  323. TonemapDurand retVal = TonemapDurand.__fromPtr__(photo_Photo_createTonemapDurand_14(gamma));
  324. return retVal;
  325. #else
  326. return null;
  327. #endif
  328. }
  329. //javadoc: createTonemapDurand()
  330. public static TonemapDurand createTonemapDurand ()
  331. {
  332. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  333. TonemapDurand retVal = TonemapDurand.__fromPtr__(photo_Photo_createTonemapDurand_15());
  334. return retVal;
  335. #else
  336. return null;
  337. #endif
  338. }
  339. //
  340. // C++: Ptr_TonemapMantiuk cv::createTonemapMantiuk(float gamma = 1.0f, float scale = 0.7f, float saturation = 1.0f)
  341. //
  342. //javadoc: createTonemapMantiuk(gamma, scale, saturation)
  343. public static TonemapMantiuk createTonemapMantiuk (float gamma, float scale, float saturation)
  344. {
  345. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  346. TonemapMantiuk retVal = TonemapMantiuk.__fromPtr__(photo_Photo_createTonemapMantiuk_10(gamma, scale, saturation));
  347. return retVal;
  348. #else
  349. return null;
  350. #endif
  351. }
  352. //javadoc: createTonemapMantiuk(gamma, scale)
  353. public static TonemapMantiuk createTonemapMantiuk (float gamma, float scale)
  354. {
  355. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  356. TonemapMantiuk retVal = TonemapMantiuk.__fromPtr__(photo_Photo_createTonemapMantiuk_11(gamma, scale));
  357. return retVal;
  358. #else
  359. return null;
  360. #endif
  361. }
  362. //javadoc: createTonemapMantiuk(gamma)
  363. public static TonemapMantiuk createTonemapMantiuk (float gamma)
  364. {
  365. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  366. TonemapMantiuk retVal = TonemapMantiuk.__fromPtr__(photo_Photo_createTonemapMantiuk_12(gamma));
  367. return retVal;
  368. #else
  369. return null;
  370. #endif
  371. }
  372. //javadoc: createTonemapMantiuk()
  373. public static TonemapMantiuk createTonemapMantiuk ()
  374. {
  375. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  376. TonemapMantiuk retVal = TonemapMantiuk.__fromPtr__(photo_Photo_createTonemapMantiuk_13());
  377. return retVal;
  378. #else
  379. return null;
  380. #endif
  381. }
  382. //
  383. // C++: Ptr_TonemapReinhard cv::createTonemapReinhard(float gamma = 1.0f, float intensity = 0.0f, float light_adapt = 1.0f, float color_adapt = 0.0f)
  384. //
  385. //javadoc: createTonemapReinhard(gamma, intensity, light_adapt, color_adapt)
  386. public static TonemapReinhard createTonemapReinhard (float gamma, float intensity, float light_adapt, float color_adapt)
  387. {
  388. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  389. TonemapReinhard retVal = TonemapReinhard.__fromPtr__(photo_Photo_createTonemapReinhard_10(gamma, intensity, light_adapt, color_adapt));
  390. return retVal;
  391. #else
  392. return null;
  393. #endif
  394. }
  395. //javadoc: createTonemapReinhard(gamma, intensity, light_adapt)
  396. public static TonemapReinhard createTonemapReinhard (float gamma, float intensity, float light_adapt)
  397. {
  398. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  399. TonemapReinhard retVal = TonemapReinhard.__fromPtr__(photo_Photo_createTonemapReinhard_11(gamma, intensity, light_adapt));
  400. return retVal;
  401. #else
  402. return null;
  403. #endif
  404. }
  405. //javadoc: createTonemapReinhard(gamma, intensity)
  406. public static TonemapReinhard createTonemapReinhard (float gamma, float intensity)
  407. {
  408. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  409. TonemapReinhard retVal = TonemapReinhard.__fromPtr__(photo_Photo_createTonemapReinhard_12(gamma, intensity));
  410. return retVal;
  411. #else
  412. return null;
  413. #endif
  414. }
  415. //javadoc: createTonemapReinhard(gamma)
  416. public static TonemapReinhard createTonemapReinhard (float gamma)
  417. {
  418. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  419. TonemapReinhard retVal = TonemapReinhard.__fromPtr__(photo_Photo_createTonemapReinhard_13(gamma));
  420. return retVal;
  421. #else
  422. return null;
  423. #endif
  424. }
  425. //javadoc: createTonemapReinhard()
  426. public static TonemapReinhard createTonemapReinhard ()
  427. {
  428. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  429. TonemapReinhard retVal = TonemapReinhard.__fromPtr__(photo_Photo_createTonemapReinhard_14());
  430. return retVal;
  431. #else
  432. return null;
  433. #endif
  434. }
  435. //
  436. // C++: void cv::colorChange(Mat src, Mat mask, Mat& dst, float red_mul = 1.0f, float green_mul = 1.0f, float blue_mul = 1.0f)
  437. //
  438. //javadoc: colorChange(src, mask, dst, red_mul, green_mul, blue_mul)
  439. public static void colorChange (Mat src, Mat mask, Mat dst, float red_mul, float green_mul, float blue_mul)
  440. {
  441. if (src != null) src.ThrowIfDisposed ();
  442. if (mask != null) mask.ThrowIfDisposed ();
  443. if (dst != null) dst.ThrowIfDisposed ();
  444. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  445. photo_Photo_colorChange_10(src.nativeObj, mask.nativeObj, dst.nativeObj, red_mul, green_mul, blue_mul);
  446. return;
  447. #else
  448. return;
  449. #endif
  450. }
  451. //javadoc: colorChange(src, mask, dst, red_mul, green_mul)
  452. public static void colorChange (Mat src, Mat mask, Mat dst, float red_mul, float green_mul)
  453. {
  454. if (src != null) src.ThrowIfDisposed ();
  455. if (mask != null) mask.ThrowIfDisposed ();
  456. if (dst != null) dst.ThrowIfDisposed ();
  457. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  458. photo_Photo_colorChange_11(src.nativeObj, mask.nativeObj, dst.nativeObj, red_mul, green_mul);
  459. return;
  460. #else
  461. return;
  462. #endif
  463. }
  464. //javadoc: colorChange(src, mask, dst, red_mul)
  465. public static void colorChange (Mat src, Mat mask, Mat dst, float red_mul)
  466. {
  467. if (src != null) src.ThrowIfDisposed ();
  468. if (mask != null) mask.ThrowIfDisposed ();
  469. if (dst != null) dst.ThrowIfDisposed ();
  470. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  471. photo_Photo_colorChange_12(src.nativeObj, mask.nativeObj, dst.nativeObj, red_mul);
  472. return;
  473. #else
  474. return;
  475. #endif
  476. }
  477. //javadoc: colorChange(src, mask, dst)
  478. public static void colorChange (Mat src, Mat mask, Mat dst)
  479. {
  480. if (src != null) src.ThrowIfDisposed ();
  481. if (mask != null) mask.ThrowIfDisposed ();
  482. if (dst != null) dst.ThrowIfDisposed ();
  483. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  484. photo_Photo_colorChange_13(src.nativeObj, mask.nativeObj, dst.nativeObj);
  485. return;
  486. #else
  487. return;
  488. #endif
  489. }
  490. //
  491. // C++: void cv::decolor(Mat src, Mat& grayscale, Mat& color_boost)
  492. //
  493. //javadoc: decolor(src, grayscale, color_boost)
  494. public static void decolor (Mat src, Mat grayscale, Mat color_boost)
  495. {
  496. if (src != null) src.ThrowIfDisposed ();
  497. if (grayscale != null) grayscale.ThrowIfDisposed ();
  498. if (color_boost != null) color_boost.ThrowIfDisposed ();
  499. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  500. photo_Photo_decolor_10(src.nativeObj, grayscale.nativeObj, color_boost.nativeObj);
  501. return;
  502. #else
  503. return;
  504. #endif
  505. }
  506. //
  507. // C++: void cv::denoise_TVL1(vector_Mat observations, Mat result, double lambda = 1.0, int niters = 30)
  508. //
  509. //javadoc: denoise_TVL1(observations, result, lambda, niters)
  510. public static void denoise_TVL1 (List<Mat> observations, Mat result, double lambda, int niters)
  511. {
  512. if (result != null) result.ThrowIfDisposed ();
  513. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  514. Mat observations_mat = Converters.vector_Mat_to_Mat(observations);
  515. photo_Photo_denoise_1TVL1_10(observations_mat.nativeObj, result.nativeObj, lambda, niters);
  516. return;
  517. #else
  518. return;
  519. #endif
  520. }
  521. //javadoc: denoise_TVL1(observations, result, lambda)
  522. public static void denoise_TVL1 (List<Mat> observations, Mat result, double lambda)
  523. {
  524. if (result != null) result.ThrowIfDisposed ();
  525. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  526. Mat observations_mat = Converters.vector_Mat_to_Mat(observations);
  527. photo_Photo_denoise_1TVL1_11(observations_mat.nativeObj, result.nativeObj, lambda);
  528. return;
  529. #else
  530. return;
  531. #endif
  532. }
  533. //javadoc: denoise_TVL1(observations, result)
  534. public static void denoise_TVL1 (List<Mat> observations, Mat result)
  535. {
  536. if (result != null) result.ThrowIfDisposed ();
  537. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  538. Mat observations_mat = Converters.vector_Mat_to_Mat(observations);
  539. photo_Photo_denoise_1TVL1_12(observations_mat.nativeObj, result.nativeObj);
  540. return;
  541. #else
  542. return;
  543. #endif
  544. }
  545. //
  546. // C++: void cv::detailEnhance(Mat src, Mat& dst, float sigma_s = 10, float sigma_r = 0.15f)
  547. //
  548. //javadoc: detailEnhance(src, dst, sigma_s, sigma_r)
  549. public static void detailEnhance (Mat src, Mat dst, float sigma_s, float sigma_r)
  550. {
  551. if (src != null) src.ThrowIfDisposed ();
  552. if (dst != null) dst.ThrowIfDisposed ();
  553. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  554. photo_Photo_detailEnhance_10(src.nativeObj, dst.nativeObj, sigma_s, sigma_r);
  555. return;
  556. #else
  557. return;
  558. #endif
  559. }
  560. //javadoc: detailEnhance(src, dst, sigma_s)
  561. public static void detailEnhance (Mat src, Mat dst, float sigma_s)
  562. {
  563. if (src != null) src.ThrowIfDisposed ();
  564. if (dst != null) dst.ThrowIfDisposed ();
  565. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  566. photo_Photo_detailEnhance_11(src.nativeObj, dst.nativeObj, sigma_s);
  567. return;
  568. #else
  569. return;
  570. #endif
  571. }
  572. //javadoc: detailEnhance(src, dst)
  573. public static void detailEnhance (Mat src, Mat dst)
  574. {
  575. if (src != null) src.ThrowIfDisposed ();
  576. if (dst != null) dst.ThrowIfDisposed ();
  577. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  578. photo_Photo_detailEnhance_12(src.nativeObj, dst.nativeObj);
  579. return;
  580. #else
  581. return;
  582. #endif
  583. }
  584. //
  585. // C++: void cv::edgePreservingFilter(Mat src, Mat& dst, int flags = 1, float sigma_s = 60, float sigma_r = 0.4f)
  586. //
  587. //javadoc: edgePreservingFilter(src, dst, flags, sigma_s, sigma_r)
  588. public static void edgePreservingFilter (Mat src, Mat dst, int flags, float sigma_s, float sigma_r)
  589. {
  590. if (src != null) src.ThrowIfDisposed ();
  591. if (dst != null) dst.ThrowIfDisposed ();
  592. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  593. photo_Photo_edgePreservingFilter_10(src.nativeObj, dst.nativeObj, flags, sigma_s, sigma_r);
  594. return;
  595. #else
  596. return;
  597. #endif
  598. }
  599. //javadoc: edgePreservingFilter(src, dst, flags, sigma_s)
  600. public static void edgePreservingFilter (Mat src, Mat dst, int flags, float sigma_s)
  601. {
  602. if (src != null) src.ThrowIfDisposed ();
  603. if (dst != null) dst.ThrowIfDisposed ();
  604. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  605. photo_Photo_edgePreservingFilter_11(src.nativeObj, dst.nativeObj, flags, sigma_s);
  606. return;
  607. #else
  608. return;
  609. #endif
  610. }
  611. //javadoc: edgePreservingFilter(src, dst, flags)
  612. public static void edgePreservingFilter (Mat src, Mat dst, int flags)
  613. {
  614. if (src != null) src.ThrowIfDisposed ();
  615. if (dst != null) dst.ThrowIfDisposed ();
  616. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  617. photo_Photo_edgePreservingFilter_12(src.nativeObj, dst.nativeObj, flags);
  618. return;
  619. #else
  620. return;
  621. #endif
  622. }
  623. //javadoc: edgePreservingFilter(src, dst)
  624. public static void edgePreservingFilter (Mat src, Mat dst)
  625. {
  626. if (src != null) src.ThrowIfDisposed ();
  627. if (dst != null) dst.ThrowIfDisposed ();
  628. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  629. photo_Photo_edgePreservingFilter_13(src.nativeObj, dst.nativeObj);
  630. return;
  631. #else
  632. return;
  633. #endif
  634. }
  635. //
  636. // C++: void cv::fastNlMeansDenoising(Mat src, Mat& dst, float h = 3, int templateWindowSize = 7, int searchWindowSize = 21)
  637. //
  638. //javadoc: fastNlMeansDenoising(src, dst, h, templateWindowSize, searchWindowSize)
  639. public static void fastNlMeansDenoising (Mat src, Mat dst, float h, int templateWindowSize, int searchWindowSize)
  640. {
  641. if (src != null) src.ThrowIfDisposed ();
  642. if (dst != null) dst.ThrowIfDisposed ();
  643. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  644. photo_Photo_fastNlMeansDenoising_10(src.nativeObj, dst.nativeObj, h, templateWindowSize, searchWindowSize);
  645. return;
  646. #else
  647. return;
  648. #endif
  649. }
  650. //javadoc: fastNlMeansDenoising(src, dst, h, templateWindowSize)
  651. public static void fastNlMeansDenoising (Mat src, Mat dst, float h, int templateWindowSize)
  652. {
  653. if (src != null) src.ThrowIfDisposed ();
  654. if (dst != null) dst.ThrowIfDisposed ();
  655. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  656. photo_Photo_fastNlMeansDenoising_11(src.nativeObj, dst.nativeObj, h, templateWindowSize);
  657. return;
  658. #else
  659. return;
  660. #endif
  661. }
  662. //javadoc: fastNlMeansDenoising(src, dst, h)
  663. public static void fastNlMeansDenoising (Mat src, Mat dst, float h)
  664. {
  665. if (src != null) src.ThrowIfDisposed ();
  666. if (dst != null) dst.ThrowIfDisposed ();
  667. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  668. photo_Photo_fastNlMeansDenoising_12(src.nativeObj, dst.nativeObj, h);
  669. return;
  670. #else
  671. return;
  672. #endif
  673. }
  674. //javadoc: fastNlMeansDenoising(src, dst)
  675. public static void fastNlMeansDenoising (Mat src, Mat dst)
  676. {
  677. if (src != null) src.ThrowIfDisposed ();
  678. if (dst != null) dst.ThrowIfDisposed ();
  679. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  680. photo_Photo_fastNlMeansDenoising_13(src.nativeObj, dst.nativeObj);
  681. return;
  682. #else
  683. return;
  684. #endif
  685. }
  686. //
  687. // C++: void cv::fastNlMeansDenoising(Mat src, Mat& dst, vector_float h, int templateWindowSize = 7, int searchWindowSize = 21, int normType = NORM_L2)
  688. //
  689. //javadoc: fastNlMeansDenoising(src, dst, h, templateWindowSize, searchWindowSize, normType)
  690. public static void fastNlMeansDenoising (Mat src, Mat dst, MatOfFloat h, int templateWindowSize, int searchWindowSize, int normType)
  691. {
  692. if (src != null) src.ThrowIfDisposed ();
  693. if (dst != null) dst.ThrowIfDisposed ();
  694. if (h != null) h.ThrowIfDisposed ();
  695. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  696. Mat h_mat = h;
  697. photo_Photo_fastNlMeansDenoising_14(src.nativeObj, dst.nativeObj, h_mat.nativeObj, templateWindowSize, searchWindowSize, normType);
  698. return;
  699. #else
  700. return;
  701. #endif
  702. }
  703. //javadoc: fastNlMeansDenoising(src, dst, h, templateWindowSize, searchWindowSize)
  704. public static void fastNlMeansDenoising (Mat src, Mat dst, MatOfFloat h, int templateWindowSize, int searchWindowSize)
  705. {
  706. if (src != null) src.ThrowIfDisposed ();
  707. if (dst != null) dst.ThrowIfDisposed ();
  708. if (h != null) h.ThrowIfDisposed ();
  709. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  710. Mat h_mat = h;
  711. photo_Photo_fastNlMeansDenoising_15(src.nativeObj, dst.nativeObj, h_mat.nativeObj, templateWindowSize, searchWindowSize);
  712. return;
  713. #else
  714. return;
  715. #endif
  716. }
  717. //javadoc: fastNlMeansDenoising(src, dst, h, templateWindowSize)
  718. public static void fastNlMeansDenoising (Mat src, Mat dst, MatOfFloat h, int templateWindowSize)
  719. {
  720. if (src != null) src.ThrowIfDisposed ();
  721. if (dst != null) dst.ThrowIfDisposed ();
  722. if (h != null) h.ThrowIfDisposed ();
  723. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  724. Mat h_mat = h;
  725. photo_Photo_fastNlMeansDenoising_16(src.nativeObj, dst.nativeObj, h_mat.nativeObj, templateWindowSize);
  726. return;
  727. #else
  728. return;
  729. #endif
  730. }
  731. //javadoc: fastNlMeansDenoising(src, dst, h)
  732. public static void fastNlMeansDenoising (Mat src, Mat dst, MatOfFloat h)
  733. {
  734. if (src != null) src.ThrowIfDisposed ();
  735. if (dst != null) dst.ThrowIfDisposed ();
  736. if (h != null) h.ThrowIfDisposed ();
  737. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  738. Mat h_mat = h;
  739. photo_Photo_fastNlMeansDenoising_17(src.nativeObj, dst.nativeObj, h_mat.nativeObj);
  740. return;
  741. #else
  742. return;
  743. #endif
  744. }
  745. //
  746. // C++: void cv::fastNlMeansDenoisingColored(Mat src, Mat& dst, float h = 3, float hColor = 3, int templateWindowSize = 7, int searchWindowSize = 21)
  747. //
  748. //javadoc: fastNlMeansDenoisingColored(src, dst, h, hColor, templateWindowSize, searchWindowSize)
  749. public static void fastNlMeansDenoisingColored (Mat src, Mat dst, float h, float hColor, int templateWindowSize, int searchWindowSize)
  750. {
  751. if (src != null) src.ThrowIfDisposed ();
  752. if (dst != null) dst.ThrowIfDisposed ();
  753. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  754. photo_Photo_fastNlMeansDenoisingColored_10(src.nativeObj, dst.nativeObj, h, hColor, templateWindowSize, searchWindowSize);
  755. return;
  756. #else
  757. return;
  758. #endif
  759. }
  760. //javadoc: fastNlMeansDenoisingColored(src, dst, h, hColor, templateWindowSize)
  761. public static void fastNlMeansDenoisingColored (Mat src, Mat dst, float h, float hColor, int templateWindowSize)
  762. {
  763. if (src != null) src.ThrowIfDisposed ();
  764. if (dst != null) dst.ThrowIfDisposed ();
  765. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  766. photo_Photo_fastNlMeansDenoisingColored_11(src.nativeObj, dst.nativeObj, h, hColor, templateWindowSize);
  767. return;
  768. #else
  769. return;
  770. #endif
  771. }
  772. //javadoc: fastNlMeansDenoisingColored(src, dst, h, hColor)
  773. public static void fastNlMeansDenoisingColored (Mat src, Mat dst, float h, float hColor)
  774. {
  775. if (src != null) src.ThrowIfDisposed ();
  776. if (dst != null) dst.ThrowIfDisposed ();
  777. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  778. photo_Photo_fastNlMeansDenoisingColored_12(src.nativeObj, dst.nativeObj, h, hColor);
  779. return;
  780. #else
  781. return;
  782. #endif
  783. }
  784. //javadoc: fastNlMeansDenoisingColored(src, dst, h)
  785. public static void fastNlMeansDenoisingColored (Mat src, Mat dst, float h)
  786. {
  787. if (src != null) src.ThrowIfDisposed ();
  788. if (dst != null) dst.ThrowIfDisposed ();
  789. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  790. photo_Photo_fastNlMeansDenoisingColored_13(src.nativeObj, dst.nativeObj, h);
  791. return;
  792. #else
  793. return;
  794. #endif
  795. }
  796. //javadoc: fastNlMeansDenoisingColored(src, dst)
  797. public static void fastNlMeansDenoisingColored (Mat src, Mat dst)
  798. {
  799. if (src != null) src.ThrowIfDisposed ();
  800. if (dst != null) dst.ThrowIfDisposed ();
  801. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  802. photo_Photo_fastNlMeansDenoisingColored_14(src.nativeObj, dst.nativeObj);
  803. return;
  804. #else
  805. return;
  806. #endif
  807. }
  808. //
  809. // C++: void cv::fastNlMeansDenoisingColoredMulti(vector_Mat srcImgs, Mat& dst, int imgToDenoiseIndex, int temporalWindowSize, float h = 3, float hColor = 3, int templateWindowSize = 7, int searchWindowSize = 21)
  810. //
  811. //javadoc: fastNlMeansDenoisingColoredMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize, h, hColor, templateWindowSize, searchWindowSize)
  812. public static void fastNlMeansDenoisingColoredMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, float hColor, int templateWindowSize, int searchWindowSize)
  813. {
  814. if (dst != null) dst.ThrowIfDisposed ();
  815. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  816. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  817. photo_Photo_fastNlMeansDenoisingColoredMulti_10(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize, h, hColor, templateWindowSize, searchWindowSize);
  818. return;
  819. #else
  820. return;
  821. #endif
  822. }
  823. //javadoc: fastNlMeansDenoisingColoredMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize, h, hColor, templateWindowSize)
  824. public static void fastNlMeansDenoisingColoredMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, float hColor, int templateWindowSize)
  825. {
  826. if (dst != null) dst.ThrowIfDisposed ();
  827. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  828. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  829. photo_Photo_fastNlMeansDenoisingColoredMulti_11(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize, h, hColor, templateWindowSize);
  830. return;
  831. #else
  832. return;
  833. #endif
  834. }
  835. //javadoc: fastNlMeansDenoisingColoredMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize, h, hColor)
  836. public static void fastNlMeansDenoisingColoredMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, float hColor)
  837. {
  838. if (dst != null) dst.ThrowIfDisposed ();
  839. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  840. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  841. photo_Photo_fastNlMeansDenoisingColoredMulti_12(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize, h, hColor);
  842. return;
  843. #else
  844. return;
  845. #endif
  846. }
  847. //javadoc: fastNlMeansDenoisingColoredMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize, h)
  848. public static void fastNlMeansDenoisingColoredMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h)
  849. {
  850. if (dst != null) dst.ThrowIfDisposed ();
  851. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  852. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  853. photo_Photo_fastNlMeansDenoisingColoredMulti_13(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize, h);
  854. return;
  855. #else
  856. return;
  857. #endif
  858. }
  859. //javadoc: fastNlMeansDenoisingColoredMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize)
  860. public static void fastNlMeansDenoisingColoredMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize)
  861. {
  862. if (dst != null) dst.ThrowIfDisposed ();
  863. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  864. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  865. photo_Photo_fastNlMeansDenoisingColoredMulti_14(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize);
  866. return;
  867. #else
  868. return;
  869. #endif
  870. }
  871. //
  872. // C++: void cv::fastNlMeansDenoisingMulti(vector_Mat srcImgs, Mat& dst, int imgToDenoiseIndex, int temporalWindowSize, float h = 3, int templateWindowSize = 7, int searchWindowSize = 21)
  873. //
  874. //javadoc: fastNlMeansDenoisingMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize, h, templateWindowSize, searchWindowSize)
  875. public static void fastNlMeansDenoisingMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, int templateWindowSize, int searchWindowSize)
  876. {
  877. if (dst != null) dst.ThrowIfDisposed ();
  878. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  879. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  880. photo_Photo_fastNlMeansDenoisingMulti_10(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize, h, templateWindowSize, searchWindowSize);
  881. return;
  882. #else
  883. return;
  884. #endif
  885. }
  886. //javadoc: fastNlMeansDenoisingMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize, h, templateWindowSize)
  887. public static void fastNlMeansDenoisingMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h, int templateWindowSize)
  888. {
  889. if (dst != null) dst.ThrowIfDisposed ();
  890. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  891. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  892. photo_Photo_fastNlMeansDenoisingMulti_11(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize, h, templateWindowSize);
  893. return;
  894. #else
  895. return;
  896. #endif
  897. }
  898. //javadoc: fastNlMeansDenoisingMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize, h)
  899. public static void fastNlMeansDenoisingMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, float h)
  900. {
  901. if (dst != null) dst.ThrowIfDisposed ();
  902. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  903. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  904. photo_Photo_fastNlMeansDenoisingMulti_12(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize, h);
  905. return;
  906. #else
  907. return;
  908. #endif
  909. }
  910. //javadoc: fastNlMeansDenoisingMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize)
  911. public static void fastNlMeansDenoisingMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize)
  912. {
  913. if (dst != null) dst.ThrowIfDisposed ();
  914. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  915. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  916. photo_Photo_fastNlMeansDenoisingMulti_13(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize);
  917. return;
  918. #else
  919. return;
  920. #endif
  921. }
  922. //
  923. // C++: void cv::fastNlMeansDenoisingMulti(vector_Mat srcImgs, Mat& dst, int imgToDenoiseIndex, int temporalWindowSize, vector_float h, int templateWindowSize = 7, int searchWindowSize = 21, int normType = NORM_L2)
  924. //
  925. //javadoc: fastNlMeansDenoisingMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize, h, templateWindowSize, searchWindowSize, normType)
  926. public static void fastNlMeansDenoisingMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h, int templateWindowSize, int searchWindowSize, int normType)
  927. {
  928. if (dst != null) dst.ThrowIfDisposed ();
  929. if (h != null) h.ThrowIfDisposed ();
  930. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  931. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  932. Mat h_mat = h;
  933. photo_Photo_fastNlMeansDenoisingMulti_14(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize, h_mat.nativeObj, templateWindowSize, searchWindowSize, normType);
  934. return;
  935. #else
  936. return;
  937. #endif
  938. }
  939. //javadoc: fastNlMeansDenoisingMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize, h, templateWindowSize, searchWindowSize)
  940. public static void fastNlMeansDenoisingMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h, int templateWindowSize, int searchWindowSize)
  941. {
  942. if (dst != null) dst.ThrowIfDisposed ();
  943. if (h != null) h.ThrowIfDisposed ();
  944. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  945. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  946. Mat h_mat = h;
  947. photo_Photo_fastNlMeansDenoisingMulti_15(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize, h_mat.nativeObj, templateWindowSize, searchWindowSize);
  948. return;
  949. #else
  950. return;
  951. #endif
  952. }
  953. //javadoc: fastNlMeansDenoisingMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize, h, templateWindowSize)
  954. public static void fastNlMeansDenoisingMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h, int templateWindowSize)
  955. {
  956. if (dst != null) dst.ThrowIfDisposed ();
  957. if (h != null) h.ThrowIfDisposed ();
  958. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  959. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  960. Mat h_mat = h;
  961. photo_Photo_fastNlMeansDenoisingMulti_16(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize, h_mat.nativeObj, templateWindowSize);
  962. return;
  963. #else
  964. return;
  965. #endif
  966. }
  967. //javadoc: fastNlMeansDenoisingMulti(srcImgs, dst, imgToDenoiseIndex, temporalWindowSize, h)
  968. public static void fastNlMeansDenoisingMulti (List<Mat> srcImgs, Mat dst, int imgToDenoiseIndex, int temporalWindowSize, MatOfFloat h)
  969. {
  970. if (dst != null) dst.ThrowIfDisposed ();
  971. if (h != null) h.ThrowIfDisposed ();
  972. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  973. Mat srcImgs_mat = Converters.vector_Mat_to_Mat(srcImgs);
  974. Mat h_mat = h;
  975. photo_Photo_fastNlMeansDenoisingMulti_17(srcImgs_mat.nativeObj, dst.nativeObj, imgToDenoiseIndex, temporalWindowSize, h_mat.nativeObj);
  976. return;
  977. #else
  978. return;
  979. #endif
  980. }
  981. //
  982. // C++: void cv::illuminationChange(Mat src, Mat mask, Mat& dst, float alpha = 0.2f, float beta = 0.4f)
  983. //
  984. //javadoc: illuminationChange(src, mask, dst, alpha, beta)
  985. public static void illuminationChange (Mat src, Mat mask, Mat dst, float alpha, float beta)
  986. {
  987. if (src != null) src.ThrowIfDisposed ();
  988. if (mask != null) mask.ThrowIfDisposed ();
  989. if (dst != null) dst.ThrowIfDisposed ();
  990. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  991. photo_Photo_illuminationChange_10(src.nativeObj, mask.nativeObj, dst.nativeObj, alpha, beta);
  992. return;
  993. #else
  994. return;
  995. #endif
  996. }
  997. //javadoc: illuminationChange(src, mask, dst, alpha)
  998. public static void illuminationChange (Mat src, Mat mask, Mat dst, float alpha)
  999. {
  1000. if (src != null) src.ThrowIfDisposed ();
  1001. if (mask != null) mask.ThrowIfDisposed ();
  1002. if (dst != null) dst.ThrowIfDisposed ();
  1003. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1004. photo_Photo_illuminationChange_11(src.nativeObj, mask.nativeObj, dst.nativeObj, alpha);
  1005. return;
  1006. #else
  1007. return;
  1008. #endif
  1009. }
  1010. //javadoc: illuminationChange(src, mask, dst)
  1011. public static void illuminationChange (Mat src, Mat mask, Mat dst)
  1012. {
  1013. if (src != null) src.ThrowIfDisposed ();
  1014. if (mask != null) mask.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. photo_Photo_illuminationChange_12(src.nativeObj, mask.nativeObj, dst.nativeObj);
  1018. return;
  1019. #else
  1020. return;
  1021. #endif
  1022. }
  1023. //
  1024. // C++: void cv::inpaint(Mat src, Mat inpaintMask, Mat& dst, double inpaintRadius, int flags)
  1025. //
  1026. //javadoc: inpaint(src, inpaintMask, dst, inpaintRadius, flags)
  1027. public static void inpaint (Mat src, Mat inpaintMask, Mat dst, double inpaintRadius, int flags)
  1028. {
  1029. if (src != null) src.ThrowIfDisposed ();
  1030. if (inpaintMask != null) inpaintMask.ThrowIfDisposed ();
  1031. if (dst != null) dst.ThrowIfDisposed ();
  1032. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1033. photo_Photo_inpaint_10(src.nativeObj, inpaintMask.nativeObj, dst.nativeObj, inpaintRadius, flags);
  1034. return;
  1035. #else
  1036. return;
  1037. #endif
  1038. }
  1039. //
  1040. // C++: void cv::pencilSketch(Mat src, Mat& dst1, Mat& dst2, float sigma_s = 60, float sigma_r = 0.07f, float shade_factor = 0.02f)
  1041. //
  1042. //javadoc: pencilSketch(src, dst1, dst2, sigma_s, sigma_r, shade_factor)
  1043. public static void pencilSketch (Mat src, Mat dst1, Mat dst2, float sigma_s, float sigma_r, float shade_factor)
  1044. {
  1045. if (src != null) src.ThrowIfDisposed ();
  1046. if (dst1 != null) dst1.ThrowIfDisposed ();
  1047. if (dst2 != null) dst2.ThrowIfDisposed ();
  1048. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1049. photo_Photo_pencilSketch_10(src.nativeObj, dst1.nativeObj, dst2.nativeObj, sigma_s, sigma_r, shade_factor);
  1050. return;
  1051. #else
  1052. return;
  1053. #endif
  1054. }
  1055. //javadoc: pencilSketch(src, dst1, dst2, sigma_s, sigma_r)
  1056. public static void pencilSketch (Mat src, Mat dst1, Mat dst2, float sigma_s, float sigma_r)
  1057. {
  1058. if (src != null) src.ThrowIfDisposed ();
  1059. if (dst1 != null) dst1.ThrowIfDisposed ();
  1060. if (dst2 != null) dst2.ThrowIfDisposed ();
  1061. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1062. photo_Photo_pencilSketch_11(src.nativeObj, dst1.nativeObj, dst2.nativeObj, sigma_s, sigma_r);
  1063. return;
  1064. #else
  1065. return;
  1066. #endif
  1067. }
  1068. //javadoc: pencilSketch(src, dst1, dst2, sigma_s)
  1069. public static void pencilSketch (Mat src, Mat dst1, Mat dst2, float sigma_s)
  1070. {
  1071. if (src != null) src.ThrowIfDisposed ();
  1072. if (dst1 != null) dst1.ThrowIfDisposed ();
  1073. if (dst2 != null) dst2.ThrowIfDisposed ();
  1074. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1075. photo_Photo_pencilSketch_12(src.nativeObj, dst1.nativeObj, dst2.nativeObj, sigma_s);
  1076. return;
  1077. #else
  1078. return;
  1079. #endif
  1080. }
  1081. //javadoc: pencilSketch(src, dst1, dst2)
  1082. public static void pencilSketch (Mat src, Mat dst1, Mat dst2)
  1083. {
  1084. if (src != null) src.ThrowIfDisposed ();
  1085. if (dst1 != null) dst1.ThrowIfDisposed ();
  1086. if (dst2 != null) dst2.ThrowIfDisposed ();
  1087. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1088. photo_Photo_pencilSketch_13(src.nativeObj, dst1.nativeObj, dst2.nativeObj);
  1089. return;
  1090. #else
  1091. return;
  1092. #endif
  1093. }
  1094. //
  1095. // C++: void cv::seamlessClone(Mat src, Mat dst, Mat mask, Point p, Mat& blend, int flags)
  1096. //
  1097. //javadoc: seamlessClone(src, dst, mask, p, blend, flags)
  1098. public static void seamlessClone (Mat src, Mat dst, Mat mask, Point p, Mat blend, int flags)
  1099. {
  1100. if (src != null) src.ThrowIfDisposed ();
  1101. if (dst != null) dst.ThrowIfDisposed ();
  1102. if (mask != null) mask.ThrowIfDisposed ();
  1103. if (blend != null) blend.ThrowIfDisposed ();
  1104. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1105. photo_Photo_seamlessClone_10(src.nativeObj, dst.nativeObj, mask.nativeObj, p.x, p.y, blend.nativeObj, flags);
  1106. return;
  1107. #else
  1108. return;
  1109. #endif
  1110. }
  1111. //
  1112. // C++: void cv::stylization(Mat src, Mat& dst, float sigma_s = 60, float sigma_r = 0.45f)
  1113. //
  1114. //javadoc: stylization(src, dst, sigma_s, sigma_r)
  1115. public static void stylization (Mat src, Mat dst, float sigma_s, float sigma_r)
  1116. {
  1117. if (src != null) src.ThrowIfDisposed ();
  1118. if (dst != null) dst.ThrowIfDisposed ();
  1119. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1120. photo_Photo_stylization_10(src.nativeObj, dst.nativeObj, sigma_s, sigma_r);
  1121. return;
  1122. #else
  1123. return;
  1124. #endif
  1125. }
  1126. //javadoc: stylization(src, dst, sigma_s)
  1127. public static void stylization (Mat src, Mat dst, float sigma_s)
  1128. {
  1129. if (src != null) src.ThrowIfDisposed ();
  1130. if (dst != null) dst.ThrowIfDisposed ();
  1131. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1132. photo_Photo_stylization_11(src.nativeObj, dst.nativeObj, sigma_s);
  1133. return;
  1134. #else
  1135. return;
  1136. #endif
  1137. }
  1138. //javadoc: stylization(src, dst)
  1139. public static void stylization (Mat src, Mat dst)
  1140. {
  1141. if (src != null) src.ThrowIfDisposed ();
  1142. if (dst != null) dst.ThrowIfDisposed ();
  1143. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1144. photo_Photo_stylization_12(src.nativeObj, dst.nativeObj);
  1145. return;
  1146. #else
  1147. return;
  1148. #endif
  1149. }
  1150. //
  1151. // C++: void cv::textureFlattening(Mat src, Mat mask, Mat& dst, float low_threshold = 30, float high_threshold = 45, int kernel_size = 3)
  1152. //
  1153. //javadoc: textureFlattening(src, mask, dst, low_threshold, high_threshold, kernel_size)
  1154. public static void textureFlattening (Mat src, Mat mask, Mat dst, float low_threshold, float high_threshold, int kernel_size)
  1155. {
  1156. if (src != null) src.ThrowIfDisposed ();
  1157. if (mask != null) mask.ThrowIfDisposed ();
  1158. if (dst != null) dst.ThrowIfDisposed ();
  1159. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1160. photo_Photo_textureFlattening_10(src.nativeObj, mask.nativeObj, dst.nativeObj, low_threshold, high_threshold, kernel_size);
  1161. return;
  1162. #else
  1163. return;
  1164. #endif
  1165. }
  1166. //javadoc: textureFlattening(src, mask, dst, low_threshold, high_threshold)
  1167. public static void textureFlattening (Mat src, Mat mask, Mat dst, float low_threshold, float high_threshold)
  1168. {
  1169. if (src != null) src.ThrowIfDisposed ();
  1170. if (mask != null) mask.ThrowIfDisposed ();
  1171. if (dst != null) dst.ThrowIfDisposed ();
  1172. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1173. photo_Photo_textureFlattening_11(src.nativeObj, mask.nativeObj, dst.nativeObj, low_threshold, high_threshold);
  1174. return;
  1175. #else
  1176. return;
  1177. #endif
  1178. }
  1179. //javadoc: textureFlattening(src, mask, dst, low_threshold)
  1180. public static void textureFlattening (Mat src, Mat mask, Mat dst, float low_threshold)
  1181. {
  1182. if (src != null) src.ThrowIfDisposed ();
  1183. if (mask != null) mask.ThrowIfDisposed ();
  1184. if (dst != null) dst.ThrowIfDisposed ();
  1185. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1186. photo_Photo_textureFlattening_12(src.nativeObj, mask.nativeObj, dst.nativeObj, low_threshold);
  1187. return;
  1188. #else
  1189. return;
  1190. #endif
  1191. }
  1192. //javadoc: textureFlattening(src, mask, dst)
  1193. public static void textureFlattening (Mat src, Mat mask, Mat dst)
  1194. {
  1195. if (src != null) src.ThrowIfDisposed ();
  1196. if (mask != null) mask.ThrowIfDisposed ();
  1197. if (dst != null) dst.ThrowIfDisposed ();
  1198. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1199. photo_Photo_textureFlattening_13(src.nativeObj, mask.nativeObj, dst.nativeObj);
  1200. return;
  1201. #else
  1202. return;
  1203. #endif
  1204. }
  1205. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  1206. const string LIBNAME = "__Internal";
  1207. #else
  1208. const string LIBNAME = "opencvforunity";
  1209. #endif
  1210. // C++: Ptr_AlignMTB cv::createAlignMTB(int max_bits = 6, int exclude_range = 4, bool cut = true)
  1211. [DllImport (LIBNAME)]
  1212. private static extern IntPtr photo_Photo_createAlignMTB_10 (int max_bits, int exclude_range, bool cut);
  1213. [DllImport (LIBNAME)]
  1214. private static extern IntPtr photo_Photo_createAlignMTB_11 (int max_bits, int exclude_range);
  1215. [DllImport (LIBNAME)]
  1216. private static extern IntPtr photo_Photo_createAlignMTB_12 (int max_bits);
  1217. [DllImport (LIBNAME)]
  1218. private static extern IntPtr photo_Photo_createAlignMTB_13 ();
  1219. // C++: Ptr_CalibrateDebevec cv::createCalibrateDebevec(int samples = 70, float lambda = 10.0f, bool random = false)
  1220. [DllImport (LIBNAME)]
  1221. private static extern IntPtr photo_Photo_createCalibrateDebevec_10 (int samples, float lambda, bool random);
  1222. [DllImport (LIBNAME)]
  1223. private static extern IntPtr photo_Photo_createCalibrateDebevec_11 (int samples, float lambda);
  1224. [DllImport (LIBNAME)]
  1225. private static extern IntPtr photo_Photo_createCalibrateDebevec_12 (int samples);
  1226. [DllImport (LIBNAME)]
  1227. private static extern IntPtr photo_Photo_createCalibrateDebevec_13 ();
  1228. // C++: Ptr_CalibrateRobertson cv::createCalibrateRobertson(int max_iter = 30, float threshold = 0.01f)
  1229. [DllImport (LIBNAME)]
  1230. private static extern IntPtr photo_Photo_createCalibrateRobertson_10 (int max_iter, float threshold);
  1231. [DllImport (LIBNAME)]
  1232. private static extern IntPtr photo_Photo_createCalibrateRobertson_11 (int max_iter);
  1233. [DllImport (LIBNAME)]
  1234. private static extern IntPtr photo_Photo_createCalibrateRobertson_12 ();
  1235. // C++: Ptr_MergeDebevec cv::createMergeDebevec()
  1236. [DllImport (LIBNAME)]
  1237. private static extern IntPtr photo_Photo_createMergeDebevec_10 ();
  1238. // C++: Ptr_MergeMertens cv::createMergeMertens(float contrast_weight = 1.0f, float saturation_weight = 1.0f, float exposure_weight = 0.0f)
  1239. [DllImport (LIBNAME)]
  1240. private static extern IntPtr photo_Photo_createMergeMertens_10 (float contrast_weight, float saturation_weight, float exposure_weight);
  1241. [DllImport (LIBNAME)]
  1242. private static extern IntPtr photo_Photo_createMergeMertens_11 (float contrast_weight, float saturation_weight);
  1243. [DllImport (LIBNAME)]
  1244. private static extern IntPtr photo_Photo_createMergeMertens_12 (float contrast_weight);
  1245. [DllImport (LIBNAME)]
  1246. private static extern IntPtr photo_Photo_createMergeMertens_13 ();
  1247. // C++: Ptr_MergeRobertson cv::createMergeRobertson()
  1248. [DllImport (LIBNAME)]
  1249. private static extern IntPtr photo_Photo_createMergeRobertson_10 ();
  1250. // C++: Ptr_Tonemap cv::createTonemap(float gamma = 1.0f)
  1251. [DllImport (LIBNAME)]
  1252. private static extern IntPtr photo_Photo_createTonemap_10 (float gamma);
  1253. [DllImport (LIBNAME)]
  1254. private static extern IntPtr photo_Photo_createTonemap_11 ();
  1255. // C++: Ptr_TonemapDrago cv::createTonemapDrago(float gamma = 1.0f, float saturation = 1.0f, float bias = 0.85f)
  1256. [DllImport (LIBNAME)]
  1257. private static extern IntPtr photo_Photo_createTonemapDrago_10 (float gamma, float saturation, float bias);
  1258. [DllImport (LIBNAME)]
  1259. private static extern IntPtr photo_Photo_createTonemapDrago_11 (float gamma, float saturation);
  1260. [DllImport (LIBNAME)]
  1261. private static extern IntPtr photo_Photo_createTonemapDrago_12 (float gamma);
  1262. [DllImport (LIBNAME)]
  1263. private static extern IntPtr photo_Photo_createTonemapDrago_13 ();
  1264. // C++: Ptr_TonemapDurand cv::createTonemapDurand(float gamma = 1.0f, float contrast = 4.0f, float saturation = 1.0f, float sigma_space = 2.0f, float sigma_color = 2.0f)
  1265. [DllImport (LIBNAME)]
  1266. private static extern IntPtr photo_Photo_createTonemapDurand_10 (float gamma, float contrast, float saturation, float sigma_space, float sigma_color);
  1267. [DllImport (LIBNAME)]
  1268. private static extern IntPtr photo_Photo_createTonemapDurand_11 (float gamma, float contrast, float saturation, float sigma_space);
  1269. [DllImport (LIBNAME)]
  1270. private static extern IntPtr photo_Photo_createTonemapDurand_12 (float gamma, float contrast, float saturation);
  1271. [DllImport (LIBNAME)]
  1272. private static extern IntPtr photo_Photo_createTonemapDurand_13 (float gamma, float contrast);
  1273. [DllImport (LIBNAME)]
  1274. private static extern IntPtr photo_Photo_createTonemapDurand_14 (float gamma);
  1275. [DllImport (LIBNAME)]
  1276. private static extern IntPtr photo_Photo_createTonemapDurand_15 ();
  1277. // C++: Ptr_TonemapMantiuk cv::createTonemapMantiuk(float gamma = 1.0f, float scale = 0.7f, float saturation = 1.0f)
  1278. [DllImport (LIBNAME)]
  1279. private static extern IntPtr photo_Photo_createTonemapMantiuk_10 (float gamma, float scale, float saturation);
  1280. [DllImport (LIBNAME)]
  1281. private static extern IntPtr photo_Photo_createTonemapMantiuk_11 (float gamma, float scale);
  1282. [DllImport (LIBNAME)]
  1283. private static extern IntPtr photo_Photo_createTonemapMantiuk_12 (float gamma);
  1284. [DllImport (LIBNAME)]
  1285. private static extern IntPtr photo_Photo_createTonemapMantiuk_13 ();
  1286. // C++: Ptr_TonemapReinhard cv::createTonemapReinhard(float gamma = 1.0f, float intensity = 0.0f, float light_adapt = 1.0f, float color_adapt = 0.0f)
  1287. [DllImport (LIBNAME)]
  1288. private static extern IntPtr photo_Photo_createTonemapReinhard_10 (float gamma, float intensity, float light_adapt, float color_adapt);
  1289. [DllImport (LIBNAME)]
  1290. private static extern IntPtr photo_Photo_createTonemapReinhard_11 (float gamma, float intensity, float light_adapt);
  1291. [DllImport (LIBNAME)]
  1292. private static extern IntPtr photo_Photo_createTonemapReinhard_12 (float gamma, float intensity);
  1293. [DllImport (LIBNAME)]
  1294. private static extern IntPtr photo_Photo_createTonemapReinhard_13 (float gamma);
  1295. [DllImport (LIBNAME)]
  1296. private static extern IntPtr photo_Photo_createTonemapReinhard_14 ();
  1297. // C++: void cv::colorChange(Mat src, Mat mask, Mat& dst, float red_mul = 1.0f, float green_mul = 1.0f, float blue_mul = 1.0f)
  1298. [DllImport (LIBNAME)]
  1299. private static extern void photo_Photo_colorChange_10 (IntPtr src_nativeObj, IntPtr mask_nativeObj, IntPtr dst_nativeObj, float red_mul, float green_mul, float blue_mul);
  1300. [DllImport (LIBNAME)]
  1301. private static extern void photo_Photo_colorChange_11 (IntPtr src_nativeObj, IntPtr mask_nativeObj, IntPtr dst_nativeObj, float red_mul, float green_mul);
  1302. [DllImport (LIBNAME)]
  1303. private static extern void photo_Photo_colorChange_12 (IntPtr src_nativeObj, IntPtr mask_nativeObj, IntPtr dst_nativeObj, float red_mul);
  1304. [DllImport (LIBNAME)]
  1305. private static extern void photo_Photo_colorChange_13 (IntPtr src_nativeObj, IntPtr mask_nativeObj, IntPtr dst_nativeObj);
  1306. // C++: void cv::decolor(Mat src, Mat& grayscale, Mat& color_boost)
  1307. [DllImport (LIBNAME)]
  1308. private static extern void photo_Photo_decolor_10 (IntPtr src_nativeObj, IntPtr grayscale_nativeObj, IntPtr color_boost_nativeObj);
  1309. // C++: void cv::denoise_TVL1(vector_Mat observations, Mat result, double lambda = 1.0, int niters = 30)
  1310. [DllImport (LIBNAME)]
  1311. private static extern void photo_Photo_denoise_1TVL1_10 (IntPtr observations_mat_nativeObj, IntPtr result_nativeObj, double lambda, int niters);
  1312. [DllImport (LIBNAME)]
  1313. private static extern void photo_Photo_denoise_1TVL1_11 (IntPtr observations_mat_nativeObj, IntPtr result_nativeObj, double lambda);
  1314. [DllImport (LIBNAME)]
  1315. private static extern void photo_Photo_denoise_1TVL1_12 (IntPtr observations_mat_nativeObj, IntPtr result_nativeObj);
  1316. // C++: void cv::detailEnhance(Mat src, Mat& dst, float sigma_s = 10, float sigma_r = 0.15f)
  1317. [DllImport (LIBNAME)]
  1318. private static extern void photo_Photo_detailEnhance_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, float sigma_s, float sigma_r);
  1319. [DllImport (LIBNAME)]
  1320. private static extern void photo_Photo_detailEnhance_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, float sigma_s);
  1321. [DllImport (LIBNAME)]
  1322. private static extern void photo_Photo_detailEnhance_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  1323. // C++: void cv::edgePreservingFilter(Mat src, Mat& dst, int flags = 1, float sigma_s = 60, float sigma_r = 0.4f)
  1324. [DllImport (LIBNAME)]
  1325. private static extern void photo_Photo_edgePreservingFilter_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int flags, float sigma_s, float sigma_r);
  1326. [DllImport (LIBNAME)]
  1327. private static extern void photo_Photo_edgePreservingFilter_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int flags, float sigma_s);
  1328. [DllImport (LIBNAME)]
  1329. private static extern void photo_Photo_edgePreservingFilter_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int flags);
  1330. [DllImport (LIBNAME)]
  1331. private static extern void photo_Photo_edgePreservingFilter_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  1332. // C++: void cv::fastNlMeansDenoising(Mat src, Mat& dst, float h = 3, int templateWindowSize = 7, int searchWindowSize = 21)
  1333. [DllImport (LIBNAME)]
  1334. private static extern void photo_Photo_fastNlMeansDenoising_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, float h, int templateWindowSize, int searchWindowSize);
  1335. [DllImport (LIBNAME)]
  1336. private static extern void photo_Photo_fastNlMeansDenoising_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, float h, int templateWindowSize);
  1337. [DllImport (LIBNAME)]
  1338. private static extern void photo_Photo_fastNlMeansDenoising_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, float h);
  1339. [DllImport (LIBNAME)]
  1340. private static extern void photo_Photo_fastNlMeansDenoising_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  1341. // C++: void cv::fastNlMeansDenoising(Mat src, Mat& dst, vector_float h, int templateWindowSize = 7, int searchWindowSize = 21, int normType = NORM_L2)
  1342. [DllImport (LIBNAME)]
  1343. private static extern void photo_Photo_fastNlMeansDenoising_14 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr h_mat_nativeObj, int templateWindowSize, int searchWindowSize, int normType);
  1344. [DllImport (LIBNAME)]
  1345. private static extern void photo_Photo_fastNlMeansDenoising_15 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr h_mat_nativeObj, int templateWindowSize, int searchWindowSize);
  1346. [DllImport (LIBNAME)]
  1347. private static extern void photo_Photo_fastNlMeansDenoising_16 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr h_mat_nativeObj, int templateWindowSize);
  1348. [DllImport (LIBNAME)]
  1349. private static extern void photo_Photo_fastNlMeansDenoising_17 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr h_mat_nativeObj);
  1350. // C++: void cv::fastNlMeansDenoisingColored(Mat src, Mat& dst, float h = 3, float hColor = 3, int templateWindowSize = 7, int searchWindowSize = 21)
  1351. [DllImport (LIBNAME)]
  1352. private static extern void photo_Photo_fastNlMeansDenoisingColored_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, float h, float hColor, int templateWindowSize, int searchWindowSize);
  1353. [DllImport (LIBNAME)]
  1354. private static extern void photo_Photo_fastNlMeansDenoisingColored_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, float h, float hColor, int templateWindowSize);
  1355. [DllImport (LIBNAME)]
  1356. private static extern void photo_Photo_fastNlMeansDenoisingColored_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, float h, float hColor);
  1357. [DllImport (LIBNAME)]
  1358. private static extern void photo_Photo_fastNlMeansDenoisingColored_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, float h);
  1359. [DllImport (LIBNAME)]
  1360. private static extern void photo_Photo_fastNlMeansDenoisingColored_14 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  1361. // C++: void cv::fastNlMeansDenoisingColoredMulti(vector_Mat srcImgs, Mat& dst, int imgToDenoiseIndex, int temporalWindowSize, float h = 3, float hColor = 3, int templateWindowSize = 7, int searchWindowSize = 21)
  1362. [DllImport (LIBNAME)]
  1363. private static extern void photo_Photo_fastNlMeansDenoisingColoredMulti_10 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize, float h, float hColor, int templateWindowSize, int searchWindowSize);
  1364. [DllImport (LIBNAME)]
  1365. private static extern void photo_Photo_fastNlMeansDenoisingColoredMulti_11 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize, float h, float hColor, int templateWindowSize);
  1366. [DllImport (LIBNAME)]
  1367. private static extern void photo_Photo_fastNlMeansDenoisingColoredMulti_12 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize, float h, float hColor);
  1368. [DllImport (LIBNAME)]
  1369. private static extern void photo_Photo_fastNlMeansDenoisingColoredMulti_13 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize, float h);
  1370. [DllImport (LIBNAME)]
  1371. private static extern void photo_Photo_fastNlMeansDenoisingColoredMulti_14 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize);
  1372. // C++: void cv::fastNlMeansDenoisingMulti(vector_Mat srcImgs, Mat& dst, int imgToDenoiseIndex, int temporalWindowSize, float h = 3, int templateWindowSize = 7, int searchWindowSize = 21)
  1373. [DllImport (LIBNAME)]
  1374. private static extern void photo_Photo_fastNlMeansDenoisingMulti_10 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize, float h, int templateWindowSize, int searchWindowSize);
  1375. [DllImport (LIBNAME)]
  1376. private static extern void photo_Photo_fastNlMeansDenoisingMulti_11 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize, float h, int templateWindowSize);
  1377. [DllImport (LIBNAME)]
  1378. private static extern void photo_Photo_fastNlMeansDenoisingMulti_12 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize, float h);
  1379. [DllImport (LIBNAME)]
  1380. private static extern void photo_Photo_fastNlMeansDenoisingMulti_13 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize);
  1381. // C++: void cv::fastNlMeansDenoisingMulti(vector_Mat srcImgs, Mat& dst, int imgToDenoiseIndex, int temporalWindowSize, vector_float h, int templateWindowSize = 7, int searchWindowSize = 21, int normType = NORM_L2)
  1382. [DllImport (LIBNAME)]
  1383. private static extern void photo_Photo_fastNlMeansDenoisingMulti_14 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize, IntPtr h_mat_nativeObj, int templateWindowSize, int searchWindowSize, int normType);
  1384. [DllImport (LIBNAME)]
  1385. private static extern void photo_Photo_fastNlMeansDenoisingMulti_15 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize, IntPtr h_mat_nativeObj, int templateWindowSize, int searchWindowSize);
  1386. [DllImport (LIBNAME)]
  1387. private static extern void photo_Photo_fastNlMeansDenoisingMulti_16 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize, IntPtr h_mat_nativeObj, int templateWindowSize);
  1388. [DllImport (LIBNAME)]
  1389. private static extern void photo_Photo_fastNlMeansDenoisingMulti_17 (IntPtr srcImgs_mat_nativeObj, IntPtr dst_nativeObj, int imgToDenoiseIndex, int temporalWindowSize, IntPtr h_mat_nativeObj);
  1390. // C++: void cv::illuminationChange(Mat src, Mat mask, Mat& dst, float alpha = 0.2f, float beta = 0.4f)
  1391. [DllImport (LIBNAME)]
  1392. private static extern void photo_Photo_illuminationChange_10 (IntPtr src_nativeObj, IntPtr mask_nativeObj, IntPtr dst_nativeObj, float alpha, float beta);
  1393. [DllImport (LIBNAME)]
  1394. private static extern void photo_Photo_illuminationChange_11 (IntPtr src_nativeObj, IntPtr mask_nativeObj, IntPtr dst_nativeObj, float alpha);
  1395. [DllImport (LIBNAME)]
  1396. private static extern void photo_Photo_illuminationChange_12 (IntPtr src_nativeObj, IntPtr mask_nativeObj, IntPtr dst_nativeObj);
  1397. // C++: void cv::inpaint(Mat src, Mat inpaintMask, Mat& dst, double inpaintRadius, int flags)
  1398. [DllImport (LIBNAME)]
  1399. private static extern void photo_Photo_inpaint_10 (IntPtr src_nativeObj, IntPtr inpaintMask_nativeObj, IntPtr dst_nativeObj, double inpaintRadius, int flags);
  1400. // C++: void cv::pencilSketch(Mat src, Mat& dst1, Mat& dst2, float sigma_s = 60, float sigma_r = 0.07f, float shade_factor = 0.02f)
  1401. [DllImport (LIBNAME)]
  1402. private static extern void photo_Photo_pencilSketch_10 (IntPtr src_nativeObj, IntPtr dst1_nativeObj, IntPtr dst2_nativeObj, float sigma_s, float sigma_r, float shade_factor);
  1403. [DllImport (LIBNAME)]
  1404. private static extern void photo_Photo_pencilSketch_11 (IntPtr src_nativeObj, IntPtr dst1_nativeObj, IntPtr dst2_nativeObj, float sigma_s, float sigma_r);
  1405. [DllImport (LIBNAME)]
  1406. private static extern void photo_Photo_pencilSketch_12 (IntPtr src_nativeObj, IntPtr dst1_nativeObj, IntPtr dst2_nativeObj, float sigma_s);
  1407. [DllImport (LIBNAME)]
  1408. private static extern void photo_Photo_pencilSketch_13 (IntPtr src_nativeObj, IntPtr dst1_nativeObj, IntPtr dst2_nativeObj);
  1409. // C++: void cv::seamlessClone(Mat src, Mat dst, Mat mask, Point p, Mat& blend, int flags)
  1410. [DllImport (LIBNAME)]
  1411. private static extern void photo_Photo_seamlessClone_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr mask_nativeObj, double p_x, double p_y, IntPtr blend_nativeObj, int flags);
  1412. // C++: void cv::stylization(Mat src, Mat& dst, float sigma_s = 60, float sigma_r = 0.45f)
  1413. [DllImport (LIBNAME)]
  1414. private static extern void photo_Photo_stylization_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, float sigma_s, float sigma_r);
  1415. [DllImport (LIBNAME)]
  1416. private static extern void photo_Photo_stylization_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, float sigma_s);
  1417. [DllImport (LIBNAME)]
  1418. private static extern void photo_Photo_stylization_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  1419. // C++: void cv::textureFlattening(Mat src, Mat mask, Mat& dst, float low_threshold = 30, float high_threshold = 45, int kernel_size = 3)
  1420. [DllImport (LIBNAME)]
  1421. private static extern void photo_Photo_textureFlattening_10 (IntPtr src_nativeObj, IntPtr mask_nativeObj, IntPtr dst_nativeObj, float low_threshold, float high_threshold, int kernel_size);
  1422. [DllImport (LIBNAME)]
  1423. private static extern void photo_Photo_textureFlattening_11 (IntPtr src_nativeObj, IntPtr mask_nativeObj, IntPtr dst_nativeObj, float low_threshold, float high_threshold);
  1424. [DllImport (LIBNAME)]
  1425. private static extern void photo_Photo_textureFlattening_12 (IntPtr src_nativeObj, IntPtr mask_nativeObj, IntPtr dst_nativeObj, float low_threshold);
  1426. [DllImport (LIBNAME)]
  1427. private static extern void photo_Photo_textureFlattening_13 (IntPtr src_nativeObj, IntPtr mask_nativeObj, IntPtr dst_nativeObj);
  1428. }
  1429. }