Retina.cs 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942
  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.BioinspiredModule
  8. {
  9. // C++: class Retina
  10. //javadoc: Retina
  11. public class Retina : Algorithm
  12. {
  13. protected override void Dispose (bool disposing)
  14. {
  15. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  16. try {
  17. if (disposing) {
  18. }
  19. if (IsEnabledDispose) {
  20. if (nativeObj != IntPtr.Zero)
  21. bioinspired_Retina_delete(nativeObj);
  22. nativeObj = IntPtr.Zero;
  23. }
  24. } finally {
  25. base.Dispose (disposing);
  26. }
  27. #else
  28. return;
  29. #endif
  30. }
  31. protected internal Retina (IntPtr addr) : base (addr) { }
  32. // internal usage only
  33. public static new Retina __fromPtr__ (IntPtr addr) { return new Retina (addr); }
  34. //
  35. // C++: Mat cv::bioinspired::Retina::getMagnoRAW()
  36. //
  37. //javadoc: Retina::getMagnoRAW()
  38. public Mat getMagnoRAW ()
  39. {
  40. ThrowIfDisposed ();
  41. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  42. Mat retVal = new Mat(bioinspired_Retina_getMagnoRAW_10(nativeObj));
  43. return retVal;
  44. #else
  45. return null;
  46. #endif
  47. }
  48. //
  49. // C++: Mat cv::bioinspired::Retina::getParvoRAW()
  50. //
  51. //javadoc: Retina::getParvoRAW()
  52. public Mat getParvoRAW ()
  53. {
  54. ThrowIfDisposed ();
  55. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  56. Mat retVal = new Mat(bioinspired_Retina_getParvoRAW_10(nativeObj));
  57. return retVal;
  58. #else
  59. return null;
  60. #endif
  61. }
  62. //
  63. // C++: static Ptr_Retina cv::bioinspired::Retina::create(Size inputSize, bool colorMode, int colorSamplingMethod = RETINA_COLOR_BAYER, bool useRetinaLogSampling = false, float reductionFactor = 1.0f, float samplingStrenght = 10.0f)
  64. //
  65. //javadoc: Retina::create(inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrenght)
  66. public static Retina create (Size inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor, float samplingStrenght)
  67. {
  68. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  69. Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_10(inputSize.width, inputSize.height, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrenght));
  70. return retVal;
  71. #else
  72. return null;
  73. #endif
  74. }
  75. //javadoc: Retina::create(inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor)
  76. public static Retina create (Size inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor)
  77. {
  78. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  79. Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_11(inputSize.width, inputSize.height, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor));
  80. return retVal;
  81. #else
  82. return null;
  83. #endif
  84. }
  85. //javadoc: Retina::create(inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling)
  86. public static Retina create (Size inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling)
  87. {
  88. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  89. Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_12(inputSize.width, inputSize.height, colorMode, colorSamplingMethod, useRetinaLogSampling));
  90. return retVal;
  91. #else
  92. return null;
  93. #endif
  94. }
  95. //javadoc: Retina::create(inputSize, colorMode, colorSamplingMethod)
  96. public static Retina create (Size inputSize, bool colorMode, int colorSamplingMethod)
  97. {
  98. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  99. Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_13(inputSize.width, inputSize.height, colorMode, colorSamplingMethod));
  100. return retVal;
  101. #else
  102. return null;
  103. #endif
  104. }
  105. //javadoc: Retina::create(inputSize, colorMode)
  106. public static Retina create (Size inputSize, bool colorMode)
  107. {
  108. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  109. Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_14(inputSize.width, inputSize.height, colorMode));
  110. return retVal;
  111. #else
  112. return null;
  113. #endif
  114. }
  115. //
  116. // C++: static Ptr_Retina cv::bioinspired::Retina::create(Size inputSize)
  117. //
  118. //javadoc: Retina::create(inputSize)
  119. public static Retina create (Size inputSize)
  120. {
  121. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  122. Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_15(inputSize.width, inputSize.height));
  123. return retVal;
  124. #else
  125. return null;
  126. #endif
  127. }
  128. //
  129. // C++: Size cv::bioinspired::Retina::getInputSize()
  130. //
  131. //javadoc: Retina::getInputSize()
  132. public Size getInputSize ()
  133. {
  134. ThrowIfDisposed ();
  135. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  136. double[] tmpArray = new double[2];
  137. bioinspired_Retina_getInputSize_10(nativeObj, tmpArray);
  138. Size retVal = new Size (tmpArray);
  139. return retVal;
  140. #else
  141. return null;
  142. #endif
  143. }
  144. //
  145. // C++: Size cv::bioinspired::Retina::getOutputSize()
  146. //
  147. //javadoc: Retina::getOutputSize()
  148. public Size getOutputSize ()
  149. {
  150. ThrowIfDisposed ();
  151. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  152. double[] tmpArray = new double[2];
  153. bioinspired_Retina_getOutputSize_10(nativeObj, tmpArray);
  154. Size retVal = new Size (tmpArray);
  155. return retVal;
  156. #else
  157. return null;
  158. #endif
  159. }
  160. //
  161. // C++: String cv::bioinspired::Retina::printSetup()
  162. //
  163. //javadoc: Retina::printSetup()
  164. public string printSetup ()
  165. {
  166. ThrowIfDisposed ();
  167. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  168. string retVal = Marshal.PtrToStringAnsi (bioinspired_Retina_printSetup_10(nativeObj));
  169. return retVal;
  170. #else
  171. return null;
  172. #endif
  173. }
  174. //
  175. // C++: void cv::bioinspired::Retina::activateContoursProcessing(bool activate)
  176. //
  177. //javadoc: Retina::activateContoursProcessing(activate)
  178. public void activateContoursProcessing (bool activate)
  179. {
  180. ThrowIfDisposed ();
  181. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  182. bioinspired_Retina_activateContoursProcessing_10(nativeObj, activate);
  183. return;
  184. #else
  185. return;
  186. #endif
  187. }
  188. //
  189. // C++: void cv::bioinspired::Retina::activateMovingContoursProcessing(bool activate)
  190. //
  191. //javadoc: Retina::activateMovingContoursProcessing(activate)
  192. public void activateMovingContoursProcessing (bool activate)
  193. {
  194. ThrowIfDisposed ();
  195. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  196. bioinspired_Retina_activateMovingContoursProcessing_10(nativeObj, activate);
  197. return;
  198. #else
  199. return;
  200. #endif
  201. }
  202. //
  203. // C++: void cv::bioinspired::Retina::applyFastToneMapping(Mat inputImage, Mat& outputToneMappedImage)
  204. //
  205. //javadoc: Retina::applyFastToneMapping(inputImage, outputToneMappedImage)
  206. public void applyFastToneMapping (Mat inputImage, Mat outputToneMappedImage)
  207. {
  208. ThrowIfDisposed ();
  209. if (inputImage != null) inputImage.ThrowIfDisposed ();
  210. if (outputToneMappedImage != null) outputToneMappedImage.ThrowIfDisposed ();
  211. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  212. bioinspired_Retina_applyFastToneMapping_10(nativeObj, inputImage.nativeObj, outputToneMappedImage.nativeObj);
  213. return;
  214. #else
  215. return;
  216. #endif
  217. }
  218. //
  219. // C++: void cv::bioinspired::Retina::clearBuffers()
  220. //
  221. //javadoc: Retina::clearBuffers()
  222. public void clearBuffers ()
  223. {
  224. ThrowIfDisposed ();
  225. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  226. bioinspired_Retina_clearBuffers_10(nativeObj);
  227. return;
  228. #else
  229. return;
  230. #endif
  231. }
  232. //
  233. // C++: void cv::bioinspired::Retina::getMagno(Mat& retinaOutput_magno)
  234. //
  235. //javadoc: Retina::getMagno(retinaOutput_magno)
  236. public void getMagno (Mat retinaOutput_magno)
  237. {
  238. ThrowIfDisposed ();
  239. if (retinaOutput_magno != null) retinaOutput_magno.ThrowIfDisposed ();
  240. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  241. bioinspired_Retina_getMagno_10(nativeObj, retinaOutput_magno.nativeObj);
  242. return;
  243. #else
  244. return;
  245. #endif
  246. }
  247. //
  248. // C++: void cv::bioinspired::Retina::getMagnoRAW(Mat& retinaOutput_magno)
  249. //
  250. //javadoc: Retina::getMagnoRAW(retinaOutput_magno)
  251. public void getMagnoRAW (Mat retinaOutput_magno)
  252. {
  253. ThrowIfDisposed ();
  254. if (retinaOutput_magno != null) retinaOutput_magno.ThrowIfDisposed ();
  255. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  256. bioinspired_Retina_getMagnoRAW_11(nativeObj, retinaOutput_magno.nativeObj);
  257. return;
  258. #else
  259. return;
  260. #endif
  261. }
  262. //
  263. // C++: void cv::bioinspired::Retina::getParvo(Mat& retinaOutput_parvo)
  264. //
  265. //javadoc: Retina::getParvo(retinaOutput_parvo)
  266. public void getParvo (Mat retinaOutput_parvo)
  267. {
  268. ThrowIfDisposed ();
  269. if (retinaOutput_parvo != null) retinaOutput_parvo.ThrowIfDisposed ();
  270. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  271. bioinspired_Retina_getParvo_10(nativeObj, retinaOutput_parvo.nativeObj);
  272. return;
  273. #else
  274. return;
  275. #endif
  276. }
  277. //
  278. // C++: void cv::bioinspired::Retina::getParvoRAW(Mat& retinaOutput_parvo)
  279. //
  280. //javadoc: Retina::getParvoRAW(retinaOutput_parvo)
  281. public void getParvoRAW (Mat retinaOutput_parvo)
  282. {
  283. ThrowIfDisposed ();
  284. if (retinaOutput_parvo != null) retinaOutput_parvo.ThrowIfDisposed ();
  285. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  286. bioinspired_Retina_getParvoRAW_11(nativeObj, retinaOutput_parvo.nativeObj);
  287. return;
  288. #else
  289. return;
  290. #endif
  291. }
  292. //
  293. // C++: void cv::bioinspired::Retina::run(Mat inputImage)
  294. //
  295. //javadoc: Retina::run(inputImage)
  296. public void run (Mat inputImage)
  297. {
  298. ThrowIfDisposed ();
  299. if (inputImage != null) inputImage.ThrowIfDisposed ();
  300. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  301. bioinspired_Retina_run_10(nativeObj, inputImage.nativeObj);
  302. return;
  303. #else
  304. return;
  305. #endif
  306. }
  307. //
  308. // C++: void cv::bioinspired::Retina::setColorSaturation(bool saturateColors = true, float colorSaturationValue = 4.0f)
  309. //
  310. //javadoc: Retina::setColorSaturation(saturateColors, colorSaturationValue)
  311. public void setColorSaturation (bool saturateColors, float colorSaturationValue)
  312. {
  313. ThrowIfDisposed ();
  314. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  315. bioinspired_Retina_setColorSaturation_10(nativeObj, saturateColors, colorSaturationValue);
  316. return;
  317. #else
  318. return;
  319. #endif
  320. }
  321. //javadoc: Retina::setColorSaturation(saturateColors)
  322. public void setColorSaturation (bool saturateColors)
  323. {
  324. ThrowIfDisposed ();
  325. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  326. bioinspired_Retina_setColorSaturation_11(nativeObj, saturateColors);
  327. return;
  328. #else
  329. return;
  330. #endif
  331. }
  332. //javadoc: Retina::setColorSaturation()
  333. public void setColorSaturation ()
  334. {
  335. ThrowIfDisposed ();
  336. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  337. bioinspired_Retina_setColorSaturation_12(nativeObj);
  338. return;
  339. #else
  340. return;
  341. #endif
  342. }
  343. //
  344. // C++: void cv::bioinspired::Retina::setup(String retinaParameterFile = "", bool applyDefaultSetupOnFailure = true)
  345. //
  346. //javadoc: Retina::setup(retinaParameterFile, applyDefaultSetupOnFailure)
  347. public void setup (string retinaParameterFile, bool applyDefaultSetupOnFailure)
  348. {
  349. ThrowIfDisposed ();
  350. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  351. bioinspired_Retina_setup_10(nativeObj, retinaParameterFile, applyDefaultSetupOnFailure);
  352. return;
  353. #else
  354. return;
  355. #endif
  356. }
  357. //javadoc: Retina::setup(retinaParameterFile)
  358. public void setup (string retinaParameterFile)
  359. {
  360. ThrowIfDisposed ();
  361. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  362. bioinspired_Retina_setup_11(nativeObj, retinaParameterFile);
  363. return;
  364. #else
  365. return;
  366. #endif
  367. }
  368. //javadoc: Retina::setup()
  369. public void setup ()
  370. {
  371. ThrowIfDisposed ();
  372. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  373. bioinspired_Retina_setup_12(nativeObj);
  374. return;
  375. #else
  376. return;
  377. #endif
  378. }
  379. //
  380. // C++: void cv::bioinspired::Retina::setupIPLMagnoChannel(bool normaliseOutput = true, float parasolCells_beta = 0.f, float parasolCells_tau = 0.f, float parasolCells_k = 7.f, float amacrinCellsTemporalCutFrequency = 1.2f, float V0CompressionParameter = 0.95f, float localAdaptintegration_tau = 0.f, float localAdaptintegration_k = 7.f)
  381. //
  382. //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter, localAdaptintegration_tau, localAdaptintegration_k)
  383. public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter, float localAdaptintegration_tau, float localAdaptintegration_k)
  384. {
  385. ThrowIfDisposed ();
  386. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  387. bioinspired_Retina_setupIPLMagnoChannel_10(nativeObj, normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter, localAdaptintegration_tau, localAdaptintegration_k);
  388. return;
  389. #else
  390. return;
  391. #endif
  392. }
  393. //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter, localAdaptintegration_tau)
  394. public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter, float localAdaptintegration_tau)
  395. {
  396. ThrowIfDisposed ();
  397. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  398. bioinspired_Retina_setupIPLMagnoChannel_11(nativeObj, normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter, localAdaptintegration_tau);
  399. return;
  400. #else
  401. return;
  402. #endif
  403. }
  404. //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter)
  405. public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter)
  406. {
  407. ThrowIfDisposed ();
  408. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  409. bioinspired_Retina_setupIPLMagnoChannel_12(nativeObj, normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter);
  410. return;
  411. #else
  412. return;
  413. #endif
  414. }
  415. //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency)
  416. public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency)
  417. {
  418. ThrowIfDisposed ();
  419. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  420. bioinspired_Retina_setupIPLMagnoChannel_13(nativeObj, normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency);
  421. return;
  422. #else
  423. return;
  424. #endif
  425. }
  426. //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k)
  427. public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k)
  428. {
  429. ThrowIfDisposed ();
  430. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  431. bioinspired_Retina_setupIPLMagnoChannel_14(nativeObj, normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k);
  432. return;
  433. #else
  434. return;
  435. #endif
  436. }
  437. //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta, parasolCells_tau)
  438. public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau)
  439. {
  440. ThrowIfDisposed ();
  441. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  442. bioinspired_Retina_setupIPLMagnoChannel_15(nativeObj, normaliseOutput, parasolCells_beta, parasolCells_tau);
  443. return;
  444. #else
  445. return;
  446. #endif
  447. }
  448. //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta)
  449. public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta)
  450. {
  451. ThrowIfDisposed ();
  452. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  453. bioinspired_Retina_setupIPLMagnoChannel_16(nativeObj, normaliseOutput, parasolCells_beta);
  454. return;
  455. #else
  456. return;
  457. #endif
  458. }
  459. //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput)
  460. public void setupIPLMagnoChannel (bool normaliseOutput)
  461. {
  462. ThrowIfDisposed ();
  463. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  464. bioinspired_Retina_setupIPLMagnoChannel_17(nativeObj, normaliseOutput);
  465. return;
  466. #else
  467. return;
  468. #endif
  469. }
  470. //javadoc: Retina::setupIPLMagnoChannel()
  471. public void setupIPLMagnoChannel ()
  472. {
  473. ThrowIfDisposed ();
  474. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  475. bioinspired_Retina_setupIPLMagnoChannel_18(nativeObj);
  476. return;
  477. #else
  478. return;
  479. #endif
  480. }
  481. //
  482. // C++: void cv::bioinspired::Retina::setupOPLandIPLParvoChannel(bool colorMode = true, bool normaliseOutput = true, float photoreceptorsLocalAdaptationSensitivity = 0.7f, float photoreceptorsTemporalConstant = 0.5f, float photoreceptorsSpatialConstant = 0.53f, float horizontalCellsGain = 0.f, float HcellsTemporalConstant = 1.f, float HcellsSpatialConstant = 7.f, float ganglionCellsSensitivity = 0.7f)
  483. //
  484. //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain, HcellsTemporalConstant, HcellsSpatialConstant, ganglionCellsSensitivity)
  485. public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant, float HcellsSpatialConstant, float ganglionCellsSensitivity)
  486. {
  487. ThrowIfDisposed ();
  488. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  489. bioinspired_Retina_setupOPLandIPLParvoChannel_10(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain, HcellsTemporalConstant, HcellsSpatialConstant, ganglionCellsSensitivity);
  490. return;
  491. #else
  492. return;
  493. #endif
  494. }
  495. //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain, HcellsTemporalConstant, HcellsSpatialConstant)
  496. public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant, float HcellsSpatialConstant)
  497. {
  498. ThrowIfDisposed ();
  499. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  500. bioinspired_Retina_setupOPLandIPLParvoChannel_11(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain, HcellsTemporalConstant, HcellsSpatialConstant);
  501. return;
  502. #else
  503. return;
  504. #endif
  505. }
  506. //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain, HcellsTemporalConstant)
  507. public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant)
  508. {
  509. ThrowIfDisposed ();
  510. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  511. bioinspired_Retina_setupOPLandIPLParvoChannel_12(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain, HcellsTemporalConstant);
  512. return;
  513. #else
  514. return;
  515. #endif
  516. }
  517. //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain)
  518. public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain)
  519. {
  520. ThrowIfDisposed ();
  521. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  522. bioinspired_Retina_setupOPLandIPLParvoChannel_13(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain);
  523. return;
  524. #else
  525. return;
  526. #endif
  527. }
  528. //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant)
  529. public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant)
  530. {
  531. ThrowIfDisposed ();
  532. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  533. bioinspired_Retina_setupOPLandIPLParvoChannel_14(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant);
  534. return;
  535. #else
  536. return;
  537. #endif
  538. }
  539. //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant)
  540. public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant)
  541. {
  542. ThrowIfDisposed ();
  543. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  544. bioinspired_Retina_setupOPLandIPLParvoChannel_15(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant);
  545. return;
  546. #else
  547. return;
  548. #endif
  549. }
  550. //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity)
  551. public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity)
  552. {
  553. ThrowIfDisposed ();
  554. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  555. bioinspired_Retina_setupOPLandIPLParvoChannel_16(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity);
  556. return;
  557. #else
  558. return;
  559. #endif
  560. }
  561. //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput)
  562. public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput)
  563. {
  564. ThrowIfDisposed ();
  565. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  566. bioinspired_Retina_setupOPLandIPLParvoChannel_17(nativeObj, colorMode, normaliseOutput);
  567. return;
  568. #else
  569. return;
  570. #endif
  571. }
  572. //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode)
  573. public void setupOPLandIPLParvoChannel (bool colorMode)
  574. {
  575. ThrowIfDisposed ();
  576. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  577. bioinspired_Retina_setupOPLandIPLParvoChannel_18(nativeObj, colorMode);
  578. return;
  579. #else
  580. return;
  581. #endif
  582. }
  583. //javadoc: Retina::setupOPLandIPLParvoChannel()
  584. public void setupOPLandIPLParvoChannel ()
  585. {
  586. ThrowIfDisposed ();
  587. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  588. bioinspired_Retina_setupOPLandIPLParvoChannel_19(nativeObj);
  589. return;
  590. #else
  591. return;
  592. #endif
  593. }
  594. //
  595. // C++: void cv::bioinspired::Retina::write(String fs)
  596. //
  597. //javadoc: Retina::write(fs)
  598. public void write (string fs)
  599. {
  600. ThrowIfDisposed ();
  601. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  602. bioinspired_Retina_write_10(nativeObj, fs);
  603. return;
  604. #else
  605. return;
  606. #endif
  607. }
  608. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  609. const string LIBNAME = "__Internal";
  610. #else
  611. const string LIBNAME = "opencvforunity";
  612. #endif
  613. // C++: Mat cv::bioinspired::Retina::getMagnoRAW()
  614. [DllImport (LIBNAME)]
  615. private static extern IntPtr bioinspired_Retina_getMagnoRAW_10 (IntPtr nativeObj);
  616. // C++: Mat cv::bioinspired::Retina::getParvoRAW()
  617. [DllImport (LIBNAME)]
  618. private static extern IntPtr bioinspired_Retina_getParvoRAW_10 (IntPtr nativeObj);
  619. // C++: static Ptr_Retina cv::bioinspired::Retina::create(Size inputSize, bool colorMode, int colorSamplingMethod = RETINA_COLOR_BAYER, bool useRetinaLogSampling = false, float reductionFactor = 1.0f, float samplingStrenght = 10.0f)
  620. [DllImport (LIBNAME)]
  621. private static extern IntPtr bioinspired_Retina_create_10 (double inputSize_width, double inputSize_height, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor, float samplingStrenght);
  622. [DllImport (LIBNAME)]
  623. private static extern IntPtr bioinspired_Retina_create_11 (double inputSize_width, double inputSize_height, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor);
  624. [DllImport (LIBNAME)]
  625. private static extern IntPtr bioinspired_Retina_create_12 (double inputSize_width, double inputSize_height, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling);
  626. [DllImport (LIBNAME)]
  627. private static extern IntPtr bioinspired_Retina_create_13 (double inputSize_width, double inputSize_height, bool colorMode, int colorSamplingMethod);
  628. [DllImport (LIBNAME)]
  629. private static extern IntPtr bioinspired_Retina_create_14 (double inputSize_width, double inputSize_height, bool colorMode);
  630. // C++: static Ptr_Retina cv::bioinspired::Retina::create(Size inputSize)
  631. [DllImport (LIBNAME)]
  632. private static extern IntPtr bioinspired_Retina_create_15 (double inputSize_width, double inputSize_height);
  633. // C++: Size cv::bioinspired::Retina::getInputSize()
  634. [DllImport (LIBNAME)]
  635. private static extern void bioinspired_Retina_getInputSize_10 (IntPtr nativeObj, double[] retVal);
  636. // C++: Size cv::bioinspired::Retina::getOutputSize()
  637. [DllImport (LIBNAME)]
  638. private static extern void bioinspired_Retina_getOutputSize_10 (IntPtr nativeObj, double[] retVal);
  639. // C++: String cv::bioinspired::Retina::printSetup()
  640. [DllImport (LIBNAME)]
  641. private static extern IntPtr bioinspired_Retina_printSetup_10 (IntPtr nativeObj);
  642. // C++: void cv::bioinspired::Retina::activateContoursProcessing(bool activate)
  643. [DllImport (LIBNAME)]
  644. private static extern void bioinspired_Retina_activateContoursProcessing_10 (IntPtr nativeObj, bool activate);
  645. // C++: void cv::bioinspired::Retina::activateMovingContoursProcessing(bool activate)
  646. [DllImport (LIBNAME)]
  647. private static extern void bioinspired_Retina_activateMovingContoursProcessing_10 (IntPtr nativeObj, bool activate);
  648. // C++: void cv::bioinspired::Retina::applyFastToneMapping(Mat inputImage, Mat& outputToneMappedImage)
  649. [DllImport (LIBNAME)]
  650. private static extern void bioinspired_Retina_applyFastToneMapping_10 (IntPtr nativeObj, IntPtr inputImage_nativeObj, IntPtr outputToneMappedImage_nativeObj);
  651. // C++: void cv::bioinspired::Retina::clearBuffers()
  652. [DllImport (LIBNAME)]
  653. private static extern void bioinspired_Retina_clearBuffers_10 (IntPtr nativeObj);
  654. // C++: void cv::bioinspired::Retina::getMagno(Mat& retinaOutput_magno)
  655. [DllImport (LIBNAME)]
  656. private static extern void bioinspired_Retina_getMagno_10 (IntPtr nativeObj, IntPtr retinaOutput_magno_nativeObj);
  657. // C++: void cv::bioinspired::Retina::getMagnoRAW(Mat& retinaOutput_magno)
  658. [DllImport (LIBNAME)]
  659. private static extern void bioinspired_Retina_getMagnoRAW_11 (IntPtr nativeObj, IntPtr retinaOutput_magno_nativeObj);
  660. // C++: void cv::bioinspired::Retina::getParvo(Mat& retinaOutput_parvo)
  661. [DllImport (LIBNAME)]
  662. private static extern void bioinspired_Retina_getParvo_10 (IntPtr nativeObj, IntPtr retinaOutput_parvo_nativeObj);
  663. // C++: void cv::bioinspired::Retina::getParvoRAW(Mat& retinaOutput_parvo)
  664. [DllImport (LIBNAME)]
  665. private static extern void bioinspired_Retina_getParvoRAW_11 (IntPtr nativeObj, IntPtr retinaOutput_parvo_nativeObj);
  666. // C++: void cv::bioinspired::Retina::run(Mat inputImage)
  667. [DllImport (LIBNAME)]
  668. private static extern void bioinspired_Retina_run_10 (IntPtr nativeObj, IntPtr inputImage_nativeObj);
  669. // C++: void cv::bioinspired::Retina::setColorSaturation(bool saturateColors = true, float colorSaturationValue = 4.0f)
  670. [DllImport (LIBNAME)]
  671. private static extern void bioinspired_Retina_setColorSaturation_10 (IntPtr nativeObj, bool saturateColors, float colorSaturationValue);
  672. [DllImport (LIBNAME)]
  673. private static extern void bioinspired_Retina_setColorSaturation_11 (IntPtr nativeObj, bool saturateColors);
  674. [DllImport (LIBNAME)]
  675. private static extern void bioinspired_Retina_setColorSaturation_12 (IntPtr nativeObj);
  676. // C++: void cv::bioinspired::Retina::setup(String retinaParameterFile = "", bool applyDefaultSetupOnFailure = true)
  677. [DllImport (LIBNAME)]
  678. private static extern void bioinspired_Retina_setup_10 (IntPtr nativeObj, string retinaParameterFile, bool applyDefaultSetupOnFailure);
  679. [DllImport (LIBNAME)]
  680. private static extern void bioinspired_Retina_setup_11 (IntPtr nativeObj, string retinaParameterFile);
  681. [DllImport (LIBNAME)]
  682. private static extern void bioinspired_Retina_setup_12 (IntPtr nativeObj);
  683. // C++: void cv::bioinspired::Retina::setupIPLMagnoChannel(bool normaliseOutput = true, float parasolCells_beta = 0.f, float parasolCells_tau = 0.f, float parasolCells_k = 7.f, float amacrinCellsTemporalCutFrequency = 1.2f, float V0CompressionParameter = 0.95f, float localAdaptintegration_tau = 0.f, float localAdaptintegration_k = 7.f)
  684. [DllImport (LIBNAME)]
  685. private static extern void bioinspired_Retina_setupIPLMagnoChannel_10 (IntPtr nativeObj, bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter, float localAdaptintegration_tau, float localAdaptintegration_k);
  686. [DllImport (LIBNAME)]
  687. private static extern void bioinspired_Retina_setupIPLMagnoChannel_11 (IntPtr nativeObj, bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter, float localAdaptintegration_tau);
  688. [DllImport (LIBNAME)]
  689. private static extern void bioinspired_Retina_setupIPLMagnoChannel_12 (IntPtr nativeObj, bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter);
  690. [DllImport (LIBNAME)]
  691. private static extern void bioinspired_Retina_setupIPLMagnoChannel_13 (IntPtr nativeObj, bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency);
  692. [DllImport (LIBNAME)]
  693. private static extern void bioinspired_Retina_setupIPLMagnoChannel_14 (IntPtr nativeObj, bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k);
  694. [DllImport (LIBNAME)]
  695. private static extern void bioinspired_Retina_setupIPLMagnoChannel_15 (IntPtr nativeObj, bool normaliseOutput, float parasolCells_beta, float parasolCells_tau);
  696. [DllImport (LIBNAME)]
  697. private static extern void bioinspired_Retina_setupIPLMagnoChannel_16 (IntPtr nativeObj, bool normaliseOutput, float parasolCells_beta);
  698. [DllImport (LIBNAME)]
  699. private static extern void bioinspired_Retina_setupIPLMagnoChannel_17 (IntPtr nativeObj, bool normaliseOutput);
  700. [DllImport (LIBNAME)]
  701. private static extern void bioinspired_Retina_setupIPLMagnoChannel_18 (IntPtr nativeObj);
  702. // C++: void cv::bioinspired::Retina::setupOPLandIPLParvoChannel(bool colorMode = true, bool normaliseOutput = true, float photoreceptorsLocalAdaptationSensitivity = 0.7f, float photoreceptorsTemporalConstant = 0.5f, float photoreceptorsSpatialConstant = 0.53f, float horizontalCellsGain = 0.f, float HcellsTemporalConstant = 1.f, float HcellsSpatialConstant = 7.f, float ganglionCellsSensitivity = 0.7f)
  703. [DllImport (LIBNAME)]
  704. private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_10 (IntPtr nativeObj, bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant, float HcellsSpatialConstant, float ganglionCellsSensitivity);
  705. [DllImport (LIBNAME)]
  706. private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_11 (IntPtr nativeObj, bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant, float HcellsSpatialConstant);
  707. [DllImport (LIBNAME)]
  708. private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_12 (IntPtr nativeObj, bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant);
  709. [DllImport (LIBNAME)]
  710. private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_13 (IntPtr nativeObj, bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain);
  711. [DllImport (LIBNAME)]
  712. private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_14 (IntPtr nativeObj, bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant);
  713. [DllImport (LIBNAME)]
  714. private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_15 (IntPtr nativeObj, bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant);
  715. [DllImport (LIBNAME)]
  716. private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_16 (IntPtr nativeObj, bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity);
  717. [DllImport (LIBNAME)]
  718. private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_17 (IntPtr nativeObj, bool colorMode, bool normaliseOutput);
  719. [DllImport (LIBNAME)]
  720. private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_18 (IntPtr nativeObj, bool colorMode);
  721. [DllImport (LIBNAME)]
  722. private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_19 (IntPtr nativeObj);
  723. // C++: void cv::bioinspired::Retina::write(String fs)
  724. [DllImport (LIBNAME)]
  725. private static extern void bioinspired_Retina_write_10 (IntPtr nativeObj, string fs);
  726. // native support for java finalize()
  727. [DllImport (LIBNAME)]
  728. private static extern void bioinspired_Retina_delete (IntPtr nativeObj);
  729. }
  730. }