123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.MlModule
- {
- // C++: class ANN_MLP
- //javadoc: ANN_MLP
- public class ANN_MLP : StatModel
- {
- 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)
- ml_ANN_1MLP_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal ANN_MLP (IntPtr addr) : base (addr) { }
- // internal usage only
- public static new ANN_MLP __fromPtr__ (IntPtr addr) { return new ANN_MLP (addr); }
- // C++: enum TrainFlags
- public const int UPDATE_WEIGHTS = 1;
- public const int NO_INPUT_SCALE = 2;
- public const int NO_OUTPUT_SCALE = 4;
- // C++: enum TrainingMethods
- public const int BACKPROP = 0;
- public const int RPROP = 1;
- public const int ANNEAL = 2;
- // C++: enum ActivationFunctions
- public const int IDENTITY = 0;
- public const int SIGMOID_SYM = 1;
- public const int GAUSSIAN = 2;
- public const int RELU = 3;
- public const int LEAKYRELU = 4;
- //
- // C++: Mat cv::ml::ANN_MLP::getLayerSizes()
- //
- //javadoc: ANN_MLP::getLayerSizes()
- public Mat getLayerSizes ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- Mat retVal = new Mat(ml_ANN_1MLP_getLayerSizes_10(nativeObj));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Mat cv::ml::ANN_MLP::getWeights(int layerIdx)
- //
- //javadoc: ANN_MLP::getWeights(layerIdx)
- public Mat getWeights (int layerIdx)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- Mat retVal = new Mat(ml_ANN_1MLP_getWeights_10(nativeObj, layerIdx));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: static Ptr_ANN_MLP cv::ml::ANN_MLP::create()
- //
- //javadoc: ANN_MLP::create()
- public static ANN_MLP create ()
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ANN_MLP retVal = ANN_MLP.__fromPtr__(ml_ANN_1MLP_create_10());
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: static Ptr_ANN_MLP cv::ml::ANN_MLP::load(String filepath)
- //
- //javadoc: ANN_MLP::load(filepath)
- public static ANN_MLP load (string filepath)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ANN_MLP retVal = ANN_MLP.__fromPtr__(ml_ANN_1MLP_load_10(filepath));
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: TermCriteria cv::ml::ANN_MLP::getTermCriteria()
- //
- //javadoc: ANN_MLP::getTermCriteria()
- public TermCriteria getTermCriteria ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double[] tmpArray = new double[3];
- ml_ANN_1MLP_getTermCriteria_10(nativeObj, tmpArray);
- TermCriteria retVal = new TermCriteria (tmpArray);
-
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: double cv::ml::ANN_MLP::getAnnealCoolingRatio()
- //
- //javadoc: ANN_MLP::getAnnealCoolingRatio()
- public double getAnnealCoolingRatio ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = ml_ANN_1MLP_getAnnealCoolingRatio_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::ml::ANN_MLP::getAnnealFinalT()
- //
- //javadoc: ANN_MLP::getAnnealFinalT()
- public double getAnnealFinalT ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = ml_ANN_1MLP_getAnnealFinalT_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::ml::ANN_MLP::getAnnealInitialT()
- //
- //javadoc: ANN_MLP::getAnnealInitialT()
- public double getAnnealInitialT ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = ml_ANN_1MLP_getAnnealInitialT_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::ml::ANN_MLP::getBackpropMomentumScale()
- //
- //javadoc: ANN_MLP::getBackpropMomentumScale()
- public double getBackpropMomentumScale ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = ml_ANN_1MLP_getBackpropMomentumScale_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::ml::ANN_MLP::getBackpropWeightScale()
- //
- //javadoc: ANN_MLP::getBackpropWeightScale()
- public double getBackpropWeightScale ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = ml_ANN_1MLP_getBackpropWeightScale_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::ml::ANN_MLP::getRpropDW0()
- //
- //javadoc: ANN_MLP::getRpropDW0()
- public double getRpropDW0 ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = ml_ANN_1MLP_getRpropDW0_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::ml::ANN_MLP::getRpropDWMax()
- //
- //javadoc: ANN_MLP::getRpropDWMax()
- public double getRpropDWMax ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = ml_ANN_1MLP_getRpropDWMax_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::ml::ANN_MLP::getRpropDWMin()
- //
- //javadoc: ANN_MLP::getRpropDWMin()
- public double getRpropDWMin ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = ml_ANN_1MLP_getRpropDWMin_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::ml::ANN_MLP::getRpropDWMinus()
- //
- //javadoc: ANN_MLP::getRpropDWMinus()
- public double getRpropDWMinus ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = ml_ANN_1MLP_getRpropDWMinus_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::ml::ANN_MLP::getRpropDWPlus()
- //
- //javadoc: ANN_MLP::getRpropDWPlus()
- public double getRpropDWPlus ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- double retVal = ml_ANN_1MLP_getRpropDWPlus_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::ml::ANN_MLP::getAnnealItePerStep()
- //
- //javadoc: ANN_MLP::getAnnealItePerStep()
- public int getAnnealItePerStep ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = ml_ANN_1MLP_getAnnealItePerStep_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::ml::ANN_MLP::getTrainMethod()
- //
- //javadoc: ANN_MLP::getTrainMethod()
- public int getTrainMethod ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- int retVal = ml_ANN_1MLP_getTrainMethod_10(nativeObj);
-
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setActivationFunction(int type, double param1 = 0, double param2 = 0)
- //
- //javadoc: ANN_MLP::setActivationFunction(type, param1, param2)
- public void setActivationFunction (int type, double param1, double param2)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setActivationFunction_10(nativeObj, type, param1, param2);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: ANN_MLP::setActivationFunction(type, param1)
- public void setActivationFunction (int type, double param1)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setActivationFunction_11(nativeObj, type, param1);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: ANN_MLP::setActivationFunction(type)
- public void setActivationFunction (int type)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setActivationFunction_12(nativeObj, type);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setAnnealCoolingRatio(double val)
- //
- //javadoc: ANN_MLP::setAnnealCoolingRatio(val)
- public void setAnnealCoolingRatio (double val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setAnnealCoolingRatio_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setAnnealFinalT(double val)
- //
- //javadoc: ANN_MLP::setAnnealFinalT(val)
- public void setAnnealFinalT (double val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setAnnealFinalT_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setAnnealInitialT(double val)
- //
- //javadoc: ANN_MLP::setAnnealInitialT(val)
- public void setAnnealInitialT (double val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setAnnealInitialT_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setAnnealItePerStep(int val)
- //
- //javadoc: ANN_MLP::setAnnealItePerStep(val)
- public void setAnnealItePerStep (int val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setAnnealItePerStep_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setBackpropMomentumScale(double val)
- //
- //javadoc: ANN_MLP::setBackpropMomentumScale(val)
- public void setBackpropMomentumScale (double val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setBackpropMomentumScale_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setBackpropWeightScale(double val)
- //
- //javadoc: ANN_MLP::setBackpropWeightScale(val)
- public void setBackpropWeightScale (double val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setBackpropWeightScale_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setLayerSizes(Mat _layer_sizes)
- //
- //javadoc: ANN_MLP::setLayerSizes(_layer_sizes)
- public void setLayerSizes (Mat _layer_sizes)
- {
- ThrowIfDisposed ();
- if (_layer_sizes != null) _layer_sizes.ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setLayerSizes_10(nativeObj, _layer_sizes.nativeObj);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setRpropDW0(double val)
- //
- //javadoc: ANN_MLP::setRpropDW0(val)
- public void setRpropDW0 (double val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setRpropDW0_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setRpropDWMax(double val)
- //
- //javadoc: ANN_MLP::setRpropDWMax(val)
- public void setRpropDWMax (double val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setRpropDWMax_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setRpropDWMin(double val)
- //
- //javadoc: ANN_MLP::setRpropDWMin(val)
- public void setRpropDWMin (double val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setRpropDWMin_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setRpropDWMinus(double val)
- //
- //javadoc: ANN_MLP::setRpropDWMinus(val)
- public void setRpropDWMinus (double val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setRpropDWMinus_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setRpropDWPlus(double val)
- //
- //javadoc: ANN_MLP::setRpropDWPlus(val)
- public void setRpropDWPlus (double val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setRpropDWPlus_10(nativeObj, val);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setTermCriteria(TermCriteria val)
- //
- //javadoc: ANN_MLP::setTermCriteria(val)
- public void setTermCriteria (TermCriteria val)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setTermCriteria_10(nativeObj, val.type, val.maxCount, val.epsilon);
-
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ml::ANN_MLP::setTrainMethod(int method, double param1 = 0, double param2 = 0)
- //
- //javadoc: ANN_MLP::setTrainMethod(method, param1, param2)
- public void setTrainMethod (int method, double param1, double param2)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setTrainMethod_10(nativeObj, method, param1, param2);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: ANN_MLP::setTrainMethod(method, param1)
- public void setTrainMethod (int method, double param1)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setTrainMethod_11(nativeObj, method, param1);
-
- return;
- #else
- return;
- #endif
- }
- //javadoc: ANN_MLP::setTrainMethod(method)
- public void setTrainMethod (int method)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- ml_ANN_1MLP_setTrainMethod_12(nativeObj, method);
-
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: Mat cv::ml::ANN_MLP::getLayerSizes()
- [DllImport (LIBNAME)]
- private static extern IntPtr ml_ANN_1MLP_getLayerSizes_10 (IntPtr nativeObj);
- // C++: Mat cv::ml::ANN_MLP::getWeights(int layerIdx)
- [DllImport (LIBNAME)]
- private static extern IntPtr ml_ANN_1MLP_getWeights_10 (IntPtr nativeObj, int layerIdx);
- // C++: static Ptr_ANN_MLP cv::ml::ANN_MLP::create()
- [DllImport (LIBNAME)]
- private static extern IntPtr ml_ANN_1MLP_create_10 ();
- // C++: static Ptr_ANN_MLP cv::ml::ANN_MLP::load(String filepath)
- [DllImport (LIBNAME)]
- private static extern IntPtr ml_ANN_1MLP_load_10 (string filepath);
- // C++: TermCriteria cv::ml::ANN_MLP::getTermCriteria()
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_getTermCriteria_10 (IntPtr nativeObj, double[] retVal);
- // C++: double cv::ml::ANN_MLP::getAnnealCoolingRatio()
- [DllImport (LIBNAME)]
- private static extern double ml_ANN_1MLP_getAnnealCoolingRatio_10 (IntPtr nativeObj);
- // C++: double cv::ml::ANN_MLP::getAnnealFinalT()
- [DllImport (LIBNAME)]
- private static extern double ml_ANN_1MLP_getAnnealFinalT_10 (IntPtr nativeObj);
- // C++: double cv::ml::ANN_MLP::getAnnealInitialT()
- [DllImport (LIBNAME)]
- private static extern double ml_ANN_1MLP_getAnnealInitialT_10 (IntPtr nativeObj);
- // C++: double cv::ml::ANN_MLP::getBackpropMomentumScale()
- [DllImport (LIBNAME)]
- private static extern double ml_ANN_1MLP_getBackpropMomentumScale_10 (IntPtr nativeObj);
- // C++: double cv::ml::ANN_MLP::getBackpropWeightScale()
- [DllImport (LIBNAME)]
- private static extern double ml_ANN_1MLP_getBackpropWeightScale_10 (IntPtr nativeObj);
- // C++: double cv::ml::ANN_MLP::getRpropDW0()
- [DllImport (LIBNAME)]
- private static extern double ml_ANN_1MLP_getRpropDW0_10 (IntPtr nativeObj);
- // C++: double cv::ml::ANN_MLP::getRpropDWMax()
- [DllImport (LIBNAME)]
- private static extern double ml_ANN_1MLP_getRpropDWMax_10 (IntPtr nativeObj);
- // C++: double cv::ml::ANN_MLP::getRpropDWMin()
- [DllImport (LIBNAME)]
- private static extern double ml_ANN_1MLP_getRpropDWMin_10 (IntPtr nativeObj);
- // C++: double cv::ml::ANN_MLP::getRpropDWMinus()
- [DllImport (LIBNAME)]
- private static extern double ml_ANN_1MLP_getRpropDWMinus_10 (IntPtr nativeObj);
- // C++: double cv::ml::ANN_MLP::getRpropDWPlus()
- [DllImport (LIBNAME)]
- private static extern double ml_ANN_1MLP_getRpropDWPlus_10 (IntPtr nativeObj);
- // C++: int cv::ml::ANN_MLP::getAnnealItePerStep()
- [DllImport (LIBNAME)]
- private static extern int ml_ANN_1MLP_getAnnealItePerStep_10 (IntPtr nativeObj);
- // C++: int cv::ml::ANN_MLP::getTrainMethod()
- [DllImport (LIBNAME)]
- private static extern int ml_ANN_1MLP_getTrainMethod_10 (IntPtr nativeObj);
- // C++: void cv::ml::ANN_MLP::setActivationFunction(int type, double param1 = 0, double param2 = 0)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setActivationFunction_10 (IntPtr nativeObj, int type, double param1, double param2);
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setActivationFunction_11 (IntPtr nativeObj, int type, double param1);
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setActivationFunction_12 (IntPtr nativeObj, int type);
- // C++: void cv::ml::ANN_MLP::setAnnealCoolingRatio(double val)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setAnnealCoolingRatio_10 (IntPtr nativeObj, double val);
- // C++: void cv::ml::ANN_MLP::setAnnealFinalT(double val)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setAnnealFinalT_10 (IntPtr nativeObj, double val);
- // C++: void cv::ml::ANN_MLP::setAnnealInitialT(double val)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setAnnealInitialT_10 (IntPtr nativeObj, double val);
- // C++: void cv::ml::ANN_MLP::setAnnealItePerStep(int val)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setAnnealItePerStep_10 (IntPtr nativeObj, int val);
- // C++: void cv::ml::ANN_MLP::setBackpropMomentumScale(double val)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setBackpropMomentumScale_10 (IntPtr nativeObj, double val);
- // C++: void cv::ml::ANN_MLP::setBackpropWeightScale(double val)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setBackpropWeightScale_10 (IntPtr nativeObj, double val);
- // C++: void cv::ml::ANN_MLP::setLayerSizes(Mat _layer_sizes)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setLayerSizes_10 (IntPtr nativeObj, IntPtr _layer_sizes_nativeObj);
- // C++: void cv::ml::ANN_MLP::setRpropDW0(double val)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setRpropDW0_10 (IntPtr nativeObj, double val);
- // C++: void cv::ml::ANN_MLP::setRpropDWMax(double val)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setRpropDWMax_10 (IntPtr nativeObj, double val);
- // C++: void cv::ml::ANN_MLP::setRpropDWMin(double val)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setRpropDWMin_10 (IntPtr nativeObj, double val);
- // C++: void cv::ml::ANN_MLP::setRpropDWMinus(double val)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setRpropDWMinus_10 (IntPtr nativeObj, double val);
- // C++: void cv::ml::ANN_MLP::setRpropDWPlus(double val)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setRpropDWPlus_10 (IntPtr nativeObj, double val);
- // C++: void cv::ml::ANN_MLP::setTermCriteria(TermCriteria val)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setTermCriteria_10 (IntPtr nativeObj, int val_type, int val_maxCount, double val_epsilon);
- // C++: void cv::ml::ANN_MLP::setTrainMethod(int method, double param1 = 0, double param2 = 0)
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setTrainMethod_10 (IntPtr nativeObj, int method, double param1, double param2);
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setTrainMethod_11 (IntPtr nativeObj, int method, double param1);
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_setTrainMethod_12 (IntPtr nativeObj, int method);
- // native support for java finalize()
- [DllImport (LIBNAME)]
- private static extern void ml_ANN_1MLP_delete (IntPtr nativeObj);
- }
- }
|