Ejemplo n.º 1
0
 public vector_bool(vector_bool other) : this(VisionLabPINVOKE.new_vector_bool__SWIG_1(vector_bool.getCPtr(other)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
 public vector_boolEnumerator(vector_bool collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Ejemplo n.º 3
0
 public void SetSelectTab(vector_bool tab)
 {
     VisionLabPINVOKE.ClassFeatureSet_YUV16_SetSelectTab(swigCPtr, vector_bool.getCPtr(tab));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SetRange(int index, vector_bool values)
 {
     VisionLabPINVOKE.vector_bool_SetRange(swigCPtr, index, vector_bool.getCPtr(values));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 5
0
    public vector_bool GetSelectTab()
    {
        vector_bool ret = new vector_bool(VisionLabPINVOKE.ClassFeatureSet_YUV16_GetSelectTab(swigCPtr), true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public static vector_bool Repeat(bool value, int count)
    {
        IntPtr      cPtr = VisionLabPINVOKE.vector_bool_Repeat(value, count);
        vector_bool ret  = (cPtr == IntPtr.Zero) ? null : new vector_bool(cPtr, true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public vector_bool GetRange(int index, int count)
    {
        IntPtr      cPtr = VisionLabPINVOKE.vector_bool_GetRange(swigCPtr, index, count);
        vector_bool ret  = (cPtr == IntPtr.Zero) ? null : new vector_bool(cPtr, true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 8
0
 public static vector_bool StrToVectorOfBools(string str) {
   vector_bool ret = new vector_bool(VisionLabPINVOKE.StrToVectorOfBools(str), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Ejemplo n.º 9
0
 public static string VectorOfBoolsToStr(vector_bool v) {
   string ret = VisionLabPINVOKE.VectorOfBoolsToStr(vector_bool.getCPtr(v));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Ejemplo n.º 10
0
 public static vector_double GetSelectedFeatures(vector_double features, vector_bool selected) {
   vector_double ret = new vector_double(VisionLabPINVOKE.GetSelectedFeatures(vector_double.getCPtr(features), vector_bool.getCPtr(selected)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public void SetSelectTab(vector_bool tab) {
   VisionLabPINVOKE.ClassFeatureSet_Float_SetSelectTab(swigCPtr, vector_bool.getCPtr(tab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 internal static HandleRef getCPtr(vector_bool obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
 public int Optimize(int nrGenerations, double minError, double deltaError, double microP, ref double error, ref int hidden1, ref int hidden2, ref double learnRate, ref double momentum, vector_bool selectTab) {
   int ret = VisionLabPINVOKE.BPN_FeatureOptimizer_Byte_Optimize(swigCPtr, nrGenerations, minError, deltaError, microP, ref error, ref hidden1, ref hidden2, ref learnRate, ref momentum, vector_bool.getCPtr(selectTab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public BPN_FeatureOptimizer_Byte(int populationSize, int nrEpochs, double lowConfidence, ClassFeatureSet_Byte trainCFS, ClassFeatureSet_Byte evalCFS, int hidden1Low, int hidden1High, int hidden2Low, int hidden2High, double learnRateLow, double learnRateHigh, double momentumLow, double momentumHigh, vector_bool selectTab) : this(VisionLabPINVOKE.new_BPN_FeatureOptimizer_Byte(populationSize, nrEpochs, lowConfidence, ClassFeatureSet_Byte.getCPtr(trainCFS), ClassFeatureSet_Byte.getCPtr(evalCFS), hidden1Low, hidden1High, hidden2Low, hidden2High, learnRateLow, learnRateHigh, momentumLow, momentumHigh, vector_bool.getCPtr(selectTab)), true) {
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
Ejemplo n.º 15
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(vector_bool obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public BPN_FeatureOptimizer_Float(int populationSize, int nrEpochs, double lowConfidence, ClassFeatureSet_Float trainCFS, ClassFeatureSet_Float evalCFS, int hidden1Low, int hidden1High, int hidden2Low, int hidden2High, double learnRateLow, double learnRateHigh, double momentumLow, double momentumHigh, vector_bool selectTab) : this(VisionLabPINVOKE.new_BPN_FeatureOptimizer_Float(populationSize, nrEpochs, lowConfidence, ClassFeatureSet_Float.getCPtr(trainCFS), ClassFeatureSet_Float.getCPtr(evalCFS), hidden1Low, hidden1High, hidden2Low, hidden2High, learnRateLow, learnRateHigh, momentumLow, momentumHigh, vector_bool.getCPtr(selectTab)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public int Optimize(int nrGenerations, double minError, double deltaError, double microP, ref double error, ref int hidden1, ref int hidden2, ref double learnRate, ref double momentum, vector_bool selectTab)
    {
        int ret = VisionLabPINVOKE.BPN_FeatureOptimizer_Float_Optimize(swigCPtr, nrGenerations, minError, deltaError, microP, ref error, ref hidden1, ref hidden2, ref learnRate, ref momentum, vector_bool.getCPtr(selectTab));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public vector_bool GetSelectTab() {
   vector_bool ret = new vector_bool(VisionLabPINVOKE.ClassFeatureSet_Float_GetSelectTab(swigCPtr), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }