Beispiel #1
0
 public CVPoint2DListEnumerator(CVPoint2DList collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Beispiel #2
0
 public void SetRange(int index, CVPoint2DList values)
 {
     LandmarkDetectorPINVOKE.CVPoint2DList_SetRange(swigCPtr, index, CVPoint2DList.getCPtr(values));
     if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending)
     {
         throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #3
0
        public static CVPoint2DList CalculateLandmarks(CLNF clnf_model)
        {
            CVPoint2DList ret = new CVPoint2DList(LandmarkDetectorPINVOKE.CalculateLandmarks__SWIG_1(CLNF.getCPtr(clnf_model)), true);

            if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending)
            {
                throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #4
0
        public static CVPoint2DList CalculateLandmarks(SWIGTYPE_p_cv__Mat_T_double_t shape2D, SWIGTYPE_p_cv__Mat_T_int_t visibilities)
        {
            CVPoint2DList ret = new CVPoint2DList(LandmarkDetectorPINVOKE.CalculateLandmarks__SWIG_0(SWIGTYPE_p_cv__Mat_T_double_t.getCPtr(shape2D), SWIGTYPE_p_cv__Mat_T_int_t.getCPtr(visibilities)), true);

            if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending)
            {
                throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #5
0
        public static CVPoint2DList Repeat(SWIGTYPE_p_cv__Point2d value, int count)
        {
            global::System.IntPtr cPtr = LandmarkDetectorPINVOKE.CVPoint2DList_Repeat(SWIGTYPE_p_cv__Point2d.getCPtr(value), count);
            CVPoint2DList         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new CVPoint2DList(cPtr, true);

            if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending)
            {
                throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #6
0
        public CVPoint2DList GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = LandmarkDetectorPINVOKE.CVPoint2DList_GetRange(swigCPtr, index, count);
            CVPoint2DList         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new CVPoint2DList(cPtr, true);

            if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending)
            {
                throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #7
0
 public CVPoint2DList(CVPoint2DList other) : this(LandmarkDetectorPINVOKE.new_CVPoint2DList__SWIG_1(CVPoint2DList.getCPtr(other)), true)
 {
     if (LandmarkDetectorPINVOKE.SWIGPendingException.Pending)
     {
         throw LandmarkDetectorPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #8
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(CVPoint2DList obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }