123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.BioinspiredModule
- {
- // C++: class Retina
- //javadoc: Retina
- public class Retina : Algorithm
- {
- protected override void Dispose (bool disposing)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- try {
- if (disposing) {
- }
- if (IsEnabledDispose) {
- if (nativeObj != IntPtr.Zero)
- bioinspired_Retina_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal Retina (IntPtr addr) : base (addr) { }
- // internal usage only
- public static new Retina __fromPtr__ (IntPtr addr) { return new Retina (addr); }
- //
- // C++: Mat cv::bioinspired::Retina::getMagnoRAW()
- //
- //javadoc: Retina::getMagnoRAW()
- public Mat getMagnoRAW ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- Mat retVal = new Mat(bioinspired_Retina_getMagnoRAW_10(nativeObj));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Mat cv::bioinspired::Retina::getParvoRAW()
- //
- //javadoc: Retina::getParvoRAW()
- public Mat getParvoRAW ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- Mat retVal = new Mat(bioinspired_Retina_getParvoRAW_10(nativeObj));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // 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)
- //
- //javadoc: Retina::create(inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrenght)
- public static Retina create (Size inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor, float samplingStrenght)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_10(inputSize.width, inputSize.height, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor, samplingStrenght));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: Retina::create(inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor)
- public static Retina create (Size inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_11(inputSize.width, inputSize.height, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: Retina::create(inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling)
- public static Retina create (Size inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_12(inputSize.width, inputSize.height, colorMode, colorSamplingMethod, useRetinaLogSampling));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: Retina::create(inputSize, colorMode, colorSamplingMethod)
- public static Retina create (Size inputSize, bool colorMode, int colorSamplingMethod)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_13(inputSize.width, inputSize.height, colorMode, colorSamplingMethod));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: Retina::create(inputSize, colorMode)
- public static Retina create (Size inputSize, bool colorMode)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_14(inputSize.width, inputSize.height, colorMode));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: static Ptr_Retina cv::bioinspired::Retina::create(Size inputSize)
- //
- //javadoc: Retina::create(inputSize)
- public static Retina create (Size inputSize)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_15(inputSize.width, inputSize.height));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Size cv::bioinspired::Retina::getInputSize()
- //
- //javadoc: Retina::getInputSize()
- public Size getInputSize ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double[] tmpArray = new double[2];
- bioinspired_Retina_getInputSize_10(nativeObj, tmpArray);
- Size retVal = new Size (tmpArray);
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Size cv::bioinspired::Retina::getOutputSize()
- //
- //javadoc: Retina::getOutputSize()
- public Size getOutputSize ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double[] tmpArray = new double[2];
- bioinspired_Retina_getOutputSize_10(nativeObj, tmpArray);
- Size retVal = new Size (tmpArray);
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: String cv::bioinspired::Retina::printSetup()
- //
- //javadoc: Retina::printSetup()
- public string printSetup ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- string retVal = Marshal.PtrToStringAnsi (bioinspired_Retina_printSetup_10(nativeObj));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: void cv::bioinspired::Retina::activateContoursProcessing(bool activate)
- //
- //javadoc: Retina::activateContoursProcessing(activate)
- public void activateContoursProcessing (bool activate)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_activateContoursProcessing_10(nativeObj, activate);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bioinspired::Retina::activateMovingContoursProcessing(bool activate)
- //
- //javadoc: Retina::activateMovingContoursProcessing(activate)
- public void activateMovingContoursProcessing (bool activate)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_activateMovingContoursProcessing_10(nativeObj, activate);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bioinspired::Retina::applyFastToneMapping(Mat inputImage, Mat& outputToneMappedImage)
- //
- //javadoc: Retina::applyFastToneMapping(inputImage, outputToneMappedImage)
- public void applyFastToneMapping (Mat inputImage, Mat outputToneMappedImage)
- {
- ThrowIfDisposed ();
- if (inputImage != null) inputImage.ThrowIfDisposed ();
- if (outputToneMappedImage != null) outputToneMappedImage.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_applyFastToneMapping_10(nativeObj, inputImage.nativeObj, outputToneMappedImage.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bioinspired::Retina::clearBuffers()
- //
- //javadoc: Retina::clearBuffers()
- public void clearBuffers ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_clearBuffers_10(nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bioinspired::Retina::getMagno(Mat& retinaOutput_magno)
- //
- //javadoc: Retina::getMagno(retinaOutput_magno)
- public void getMagno (Mat retinaOutput_magno)
- {
- ThrowIfDisposed ();
- if (retinaOutput_magno != null) retinaOutput_magno.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_getMagno_10(nativeObj, retinaOutput_magno.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bioinspired::Retina::getMagnoRAW(Mat& retinaOutput_magno)
- //
- //javadoc: Retina::getMagnoRAW(retinaOutput_magno)
- public void getMagnoRAW (Mat retinaOutput_magno)
- {
- ThrowIfDisposed ();
- if (retinaOutput_magno != null) retinaOutput_magno.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_getMagnoRAW_11(nativeObj, retinaOutput_magno.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bioinspired::Retina::getParvo(Mat& retinaOutput_parvo)
- //
- //javadoc: Retina::getParvo(retinaOutput_parvo)
- public void getParvo (Mat retinaOutput_parvo)
- {
- ThrowIfDisposed ();
- if (retinaOutput_parvo != null) retinaOutput_parvo.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_getParvo_10(nativeObj, retinaOutput_parvo.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bioinspired::Retina::getParvoRAW(Mat& retinaOutput_parvo)
- //
- //javadoc: Retina::getParvoRAW(retinaOutput_parvo)
- public void getParvoRAW (Mat retinaOutput_parvo)
- {
- ThrowIfDisposed ();
- if (retinaOutput_parvo != null) retinaOutput_parvo.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_getParvoRAW_11(nativeObj, retinaOutput_parvo.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bioinspired::Retina::run(Mat inputImage)
- //
- //javadoc: Retina::run(inputImage)
- public void run (Mat inputImage)
- {
- ThrowIfDisposed ();
- if (inputImage != null) inputImage.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_run_10(nativeObj, inputImage.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bioinspired::Retina::setColorSaturation(bool saturateColors = true, float colorSaturationValue = 4.0f)
- //
- //javadoc: Retina::setColorSaturation(saturateColors, colorSaturationValue)
- public void setColorSaturation (bool saturateColors, float colorSaturationValue)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setColorSaturation_10(nativeObj, saturateColors, colorSaturationValue);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setColorSaturation(saturateColors)
- public void setColorSaturation (bool saturateColors)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setColorSaturation_11(nativeObj, saturateColors);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setColorSaturation()
- public void setColorSaturation ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setColorSaturation_12(nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bioinspired::Retina::setup(String retinaParameterFile = "", bool applyDefaultSetupOnFailure = true)
- //
- //javadoc: Retina::setup(retinaParameterFile, applyDefaultSetupOnFailure)
- public void setup (string retinaParameterFile, bool applyDefaultSetupOnFailure)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setup_10(nativeObj, retinaParameterFile, applyDefaultSetupOnFailure);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setup(retinaParameterFile)
- public void setup (string retinaParameterFile)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setup_11(nativeObj, retinaParameterFile);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setup()
- public void setup ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setup_12(nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // 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)
- //
- //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter, localAdaptintegration_tau, localAdaptintegration_k)
- public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter, float localAdaptintegration_tau, float localAdaptintegration_k)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupIPLMagnoChannel_10(nativeObj, normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter, localAdaptintegration_tau, localAdaptintegration_k);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter, localAdaptintegration_tau)
- public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter, float localAdaptintegration_tau)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupIPLMagnoChannel_11(nativeObj, normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter, localAdaptintegration_tau);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter)
- public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency, float V0CompressionParameter)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupIPLMagnoChannel_12(nativeObj, normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency, V0CompressionParameter);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency)
- public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupIPLMagnoChannel_13(nativeObj, normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k, amacrinCellsTemporalCutFrequency);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k)
- public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupIPLMagnoChannel_14(nativeObj, normaliseOutput, parasolCells_beta, parasolCells_tau, parasolCells_k);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta, parasolCells_tau)
- public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta, float parasolCells_tau)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupIPLMagnoChannel_15(nativeObj, normaliseOutput, parasolCells_beta, parasolCells_tau);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput, parasolCells_beta)
- public void setupIPLMagnoChannel (bool normaliseOutput, float parasolCells_beta)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupIPLMagnoChannel_16(nativeObj, normaliseOutput, parasolCells_beta);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupIPLMagnoChannel(normaliseOutput)
- public void setupIPLMagnoChannel (bool normaliseOutput)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupIPLMagnoChannel_17(nativeObj, normaliseOutput);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupIPLMagnoChannel()
- public void setupIPLMagnoChannel ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupIPLMagnoChannel_18(nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // 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)
- //
- //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain, HcellsTemporalConstant, HcellsSpatialConstant, ganglionCellsSensitivity)
- public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant, float HcellsSpatialConstant, float ganglionCellsSensitivity)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupOPLandIPLParvoChannel_10(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain, HcellsTemporalConstant, HcellsSpatialConstant, ganglionCellsSensitivity);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain, HcellsTemporalConstant, HcellsSpatialConstant)
- public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant, float HcellsSpatialConstant)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupOPLandIPLParvoChannel_11(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain, HcellsTemporalConstant, HcellsSpatialConstant);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain, HcellsTemporalConstant)
- public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupOPLandIPLParvoChannel_12(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain, HcellsTemporalConstant);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain)
- public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupOPLandIPLParvoChannel_13(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant, horizontalCellsGain);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant)
- public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupOPLandIPLParvoChannel_14(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant, photoreceptorsSpatialConstant);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant)
- public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupOPLandIPLParvoChannel_15(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity, photoreceptorsTemporalConstant);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity)
- public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupOPLandIPLParvoChannel_16(nativeObj, colorMode, normaliseOutput, photoreceptorsLocalAdaptationSensitivity);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode, normaliseOutput)
- public void setupOPLandIPLParvoChannel (bool colorMode, bool normaliseOutput)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupOPLandIPLParvoChannel_17(nativeObj, colorMode, normaliseOutput);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupOPLandIPLParvoChannel(colorMode)
- public void setupOPLandIPLParvoChannel (bool colorMode)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupOPLandIPLParvoChannel_18(nativeObj, colorMode);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: Retina::setupOPLandIPLParvoChannel()
- public void setupOPLandIPLParvoChannel ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_setupOPLandIPLParvoChannel_19(nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bioinspired::Retina::write(String fs)
- //
- //javadoc: Retina::write(fs)
- public void write (string fs)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bioinspired_Retina_write_10(nativeObj, fs);
-
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: Mat cv::bioinspired::Retina::getMagnoRAW()
- [DllImport (LIBNAME)]
- private static extern IntPtr bioinspired_Retina_getMagnoRAW_10 (IntPtr nativeObj);
- // C++: Mat cv::bioinspired::Retina::getParvoRAW()
- [DllImport (LIBNAME)]
- private static extern IntPtr bioinspired_Retina_getParvoRAW_10 (IntPtr nativeObj);
- // 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)
- [DllImport (LIBNAME)]
- private static extern IntPtr bioinspired_Retina_create_10 (double inputSize_width, double inputSize_height, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor, float samplingStrenght);
- [DllImport (LIBNAME)]
- private static extern IntPtr bioinspired_Retina_create_11 (double inputSize_width, double inputSize_height, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor);
- [DllImport (LIBNAME)]
- private static extern IntPtr bioinspired_Retina_create_12 (double inputSize_width, double inputSize_height, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling);
- [DllImport (LIBNAME)]
- private static extern IntPtr bioinspired_Retina_create_13 (double inputSize_width, double inputSize_height, bool colorMode, int colorSamplingMethod);
- [DllImport (LIBNAME)]
- private static extern IntPtr bioinspired_Retina_create_14 (double inputSize_width, double inputSize_height, bool colorMode);
- // C++: static Ptr_Retina cv::bioinspired::Retina::create(Size inputSize)
- [DllImport (LIBNAME)]
- private static extern IntPtr bioinspired_Retina_create_15 (double inputSize_width, double inputSize_height);
- // C++: Size cv::bioinspired::Retina::getInputSize()
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_getInputSize_10 (IntPtr nativeObj, double[] retVal);
- // C++: Size cv::bioinspired::Retina::getOutputSize()
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_getOutputSize_10 (IntPtr nativeObj, double[] retVal);
- // C++: String cv::bioinspired::Retina::printSetup()
- [DllImport (LIBNAME)]
- private static extern IntPtr bioinspired_Retina_printSetup_10 (IntPtr nativeObj);
- // C++: void cv::bioinspired::Retina::activateContoursProcessing(bool activate)
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_activateContoursProcessing_10 (IntPtr nativeObj, bool activate);
- // C++: void cv::bioinspired::Retina::activateMovingContoursProcessing(bool activate)
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_activateMovingContoursProcessing_10 (IntPtr nativeObj, bool activate);
- // C++: void cv::bioinspired::Retina::applyFastToneMapping(Mat inputImage, Mat& outputToneMappedImage)
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_applyFastToneMapping_10 (IntPtr nativeObj, IntPtr inputImage_nativeObj, IntPtr outputToneMappedImage_nativeObj);
- // C++: void cv::bioinspired::Retina::clearBuffers()
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_clearBuffers_10 (IntPtr nativeObj);
- // C++: void cv::bioinspired::Retina::getMagno(Mat& retinaOutput_magno)
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_getMagno_10 (IntPtr nativeObj, IntPtr retinaOutput_magno_nativeObj);
- // C++: void cv::bioinspired::Retina::getMagnoRAW(Mat& retinaOutput_magno)
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_getMagnoRAW_11 (IntPtr nativeObj, IntPtr retinaOutput_magno_nativeObj);
- // C++: void cv::bioinspired::Retina::getParvo(Mat& retinaOutput_parvo)
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_getParvo_10 (IntPtr nativeObj, IntPtr retinaOutput_parvo_nativeObj);
- // C++: void cv::bioinspired::Retina::getParvoRAW(Mat& retinaOutput_parvo)
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_getParvoRAW_11 (IntPtr nativeObj, IntPtr retinaOutput_parvo_nativeObj);
- // C++: void cv::bioinspired::Retina::run(Mat inputImage)
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_run_10 (IntPtr nativeObj, IntPtr inputImage_nativeObj);
- // C++: void cv::bioinspired::Retina::setColorSaturation(bool saturateColors = true, float colorSaturationValue = 4.0f)
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setColorSaturation_10 (IntPtr nativeObj, bool saturateColors, float colorSaturationValue);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setColorSaturation_11 (IntPtr nativeObj, bool saturateColors);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setColorSaturation_12 (IntPtr nativeObj);
- // C++: void cv::bioinspired::Retina::setup(String retinaParameterFile = "", bool applyDefaultSetupOnFailure = true)
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setup_10 (IntPtr nativeObj, string retinaParameterFile, bool applyDefaultSetupOnFailure);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setup_11 (IntPtr nativeObj, string retinaParameterFile);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setup_12 (IntPtr nativeObj);
- // 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)
- [DllImport (LIBNAME)]
- 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);
- [DllImport (LIBNAME)]
- 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);
- [DllImport (LIBNAME)]
- 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);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupIPLMagnoChannel_13 (IntPtr nativeObj, bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k, float amacrinCellsTemporalCutFrequency);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupIPLMagnoChannel_14 (IntPtr nativeObj, bool normaliseOutput, float parasolCells_beta, float parasolCells_tau, float parasolCells_k);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupIPLMagnoChannel_15 (IntPtr nativeObj, bool normaliseOutput, float parasolCells_beta, float parasolCells_tau);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupIPLMagnoChannel_16 (IntPtr nativeObj, bool normaliseOutput, float parasolCells_beta);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupIPLMagnoChannel_17 (IntPtr nativeObj, bool normaliseOutput);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupIPLMagnoChannel_18 (IntPtr nativeObj);
- // 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)
- [DllImport (LIBNAME)]
- 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);
- [DllImport (LIBNAME)]
- 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);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_12 (IntPtr nativeObj, bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain, float HcellsTemporalConstant);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_13 (IntPtr nativeObj, bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant, float horizontalCellsGain);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_14 (IntPtr nativeObj, bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant, float photoreceptorsSpatialConstant);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_15 (IntPtr nativeObj, bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity, float photoreceptorsTemporalConstant);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_16 (IntPtr nativeObj, bool colorMode, bool normaliseOutput, float photoreceptorsLocalAdaptationSensitivity);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_17 (IntPtr nativeObj, bool colorMode, bool normaliseOutput);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_18 (IntPtr nativeObj, bool colorMode);
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_setupOPLandIPLParvoChannel_19 (IntPtr nativeObj);
- // C++: void cv::bioinspired::Retina::write(String fs)
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_write_10 (IntPtr nativeObj, string fs);
- // native support for java finalize()
- [DllImport (LIBNAME)]
- private static extern void bioinspired_Retina_delete (IntPtr nativeObj);
- }
- }
|