public vector_YUV161616Image(vector_YUV161616Image other) : this(VisionLabPINVOKE.new_vector_YUV161616Image__SWIG_1(vector_YUV161616Image.getCPtr(other)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public vector_YUV161616ImageEnumerator(vector_YUV161616Image collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
 public void GetSets(vector_YUV161616Image images, vector_int classIds)
 {
     VisionLabPINVOKE.ClassImageSet_YUV16_GetSets(swigCPtr, vector_YUV161616Image.getCPtr(images), vector_int.getCPtr(classIds));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void SetRange(int index, vector_YUV161616Image values)
 {
     VisionLabPINVOKE.vector_YUV161616Image_SetRange(swigCPtr, index, vector_YUV161616Image.getCPtr(values));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 5
0
    public double TrainImageSet(int nrOfEpochs, double learnRate, double momentum, vector_YUV161616Image images, vector_int classes, ref double meanError)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_YUV16_TrainImageSet(swigCPtr, nrOfEpochs, learnRate, momentum, vector_YUV161616Image.getCPtr(images), vector_int.getCPtr(classes), ref meanError);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 6
0
    public double EvaluateImageSet(vector_YUV161616Image images, vector_int classesExp, vector_int classesRes, vector_double confidencies, vector_vector_double outputs, ref double meanError)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_YUV16_EvaluateImageSet(swigCPtr, vector_YUV161616Image.getCPtr(images), vector_int.getCPtr(classesExp), vector_int.getCPtr(classesRes), vector_double.getCPtr(confidencies), vector_vector_double.getCPtr(outputs), ref meanError);

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

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

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public void GetSets(vector_YUV161616Image images, vector_int classIds) {
   VisionLabPINVOKE.ClassImageSet_YUV16_GetSets(swigCPtr, vector_YUV161616Image.getCPtr(images), vector_int.getCPtr(classIds));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 internal static HandleRef getCPtr(vector_YUV161616Image obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
 public double EvaluateImageSet(vector_YUV161616Image images, vector_int classesExp, vector_int classesRes, vector_double confidencies, vector_vector_double outputs, ref double meanError) {
   double ret = VisionLabPINVOKE.BPN_ImageClassifier_YUV16_EvaluateImageSet(swigCPtr, vector_YUV161616Image.getCPtr(images), vector_int.getCPtr(classesExp), vector_int.getCPtr(classesRes), vector_double.getCPtr(confidencies), vector_vector_double.getCPtr(outputs), ref meanError);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public double TrainImageSet(int nrOfEpochs, double learnRate, double momentum, vector_YUV161616Image images, vector_int classes, ref double meanError) {
   double ret = VisionLabPINVOKE.BPN_ImageClassifier_YUV16_TrainImageSet(swigCPtr, nrOfEpochs, learnRate, momentum, vector_YUV161616Image.getCPtr(images), vector_int.getCPtr(classes), ref meanError);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Ejemplo n.º 13
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(vector_YUV161616Image obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }