Esempio n. 1
0
 public vector_FloatImageEnumerator(vector_FloatImage collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Esempio n. 2
0
 public vector_FloatImage(vector_FloatImage other) : this(VisionLabPINVOKE.new_vector_FloatImage__SWIG_1(vector_FloatImage.getCPtr(other)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 3
0
 public void GetSets(vector_FloatImage images, vector_int classIds)
 {
     VisionLabPINVOKE.ClassImageSet_Float_GetSets(swigCPtr, vector_FloatImage.getCPtr(images), vector_int.getCPtr(classIds));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 4
0
 public virtual void SnapShotROIs(vector_FloatImage images)
 {
     VisionLabPINVOKE.Camera_Float_SnapShotROIs__SWIG_1(swigCPtr, vector_FloatImage.getCPtr(images));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 5
0
 public void SetRange(int index, vector_FloatImage values)
 {
     VisionLabPINVOKE.vector_FloatImage_SetRange(swigCPtr, index, vector_FloatImage.getCPtr(values));
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public double TrainImageSet(int nrOfEpochs, double learnRate, double momentum, vector_FloatImage images, vector_int classes, ref double meanError)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_Float_TrainImageSet(swigCPtr, nrOfEpochs, learnRate, momentum, vector_FloatImage.getCPtr(images), vector_int.getCPtr(classes), ref meanError);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public double EvaluateImageSet(vector_FloatImage images, vector_int classesExp, vector_int classesRes, vector_double confidencies, vector_vector_double outputs, ref double meanError)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_Float_EvaluateImageSet(swigCPtr, vector_FloatImage.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);
    }
Esempio n. 8
0
    public static vector_FloatImage Repeat(FloatImage value, int count)
    {
        IntPtr            cPtr = VisionLabPINVOKE.vector_FloatImage_Repeat(FloatImage.getCPtr(value), count);
        vector_FloatImage ret  = (cPtr == IntPtr.Zero) ? null : new vector_FloatImage(cPtr, true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 9
0
    public vector_FloatImage GetRange(int index, int count)
    {
        IntPtr            cPtr = VisionLabPINVOKE.vector_FloatImage_GetRange(swigCPtr, index, count);
        vector_FloatImage ret  = (cPtr == IntPtr.Zero) ? null : new vector_FloatImage(cPtr, true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public static vector_HoughCircle HTBestCircles(vector_FloatImage srcTab, double minR, double maxR, double deltaR) {
   vector_HoughCircle ret = new vector_HoughCircle(VisionLabPINVOKE.HTBestCircles__SWIG_23(vector_FloatImage.getCPtr(srcTab), minR, maxR, deltaR), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void FastHoughCircleT(FloatImage src, CircleBrightness brightness, float edgeMin, double minR, double maxR, double deltaR, vector_FloatImage destTab) {
   VisionLabPINVOKE.FastHoughCircleT__SWIG_5(FloatImage.getCPtr(src), (int)brightness, edgeMin, minR, maxR, deltaR, vector_FloatImage.getCPtr(destTab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void HoughCircleT(FloatImage src, double minR, double maxR, double deltaR, vector_FloatImage destTab) {
   VisionLabPINVOKE.HoughCircleT__SWIG_5(FloatImage.getCPtr(src), minR, maxR, deltaR, vector_FloatImage.getCPtr(destTab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public void GetSets(vector_FloatImage images, vector_int classIds) {
   VisionLabPINVOKE.ClassImageSet_Float_GetSets(swigCPtr, vector_FloatImage.getCPtr(images), vector_int.getCPtr(classIds));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public double TrainImageSet(int nrOfEpochs, double learnRate, double momentum, vector_FloatImage images, vector_int classes, ref double meanError) {
   double ret = VisionLabPINVOKE.BPN_ImageClassifier_Float_TrainImageSet(swigCPtr, nrOfEpochs, learnRate, momentum, vector_FloatImage.getCPtr(images), vector_int.getCPtr(classes), ref meanError);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
Esempio n. 15
0
 internal static HandleRef getCPtr(vector_FloatImage obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
 public double EvaluateImageSet(vector_FloatImage images, vector_int classesExp, vector_int classesRes, vector_double confidencies, vector_vector_double outputs, ref double meanError) {
   double ret = VisionLabPINVOKE.BPN_ImageClassifier_Float_EvaluateImageSet(swigCPtr, vector_FloatImage.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;
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(vector_FloatImage obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }