Пример #1
0
 public KeypointArrayEnumerator(KeypointArray collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Пример #2
0
 public KeypointArray(KeypointArray other) : this(solar_datastructurePINVOKE.new_KeypointArray__SWIG_1(KeypointArray.getCPtr(other)), true)
 {
     if (solar_datastructurePINVOKE.SWIGPendingException.Pending)
     {
         throw solar_datastructurePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #3
0
 public Frame(KeypointArray keypoints, DescriptorBuffer descriptors, Image view) : this(solar_datastructurePINVOKE.new_Frame__SWIG_5(KeypointArray.getCPtr(keypoints), DescriptorBuffer.getCPtr(descriptors), Image.getCPtr(view)), true)
 {
     if (solar_datastructurePINVOKE.SWIGPendingException.Pending)
     {
         throw solar_datastructurePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
 public Frame(KeypointArray keypoints, DescriptorBuffer descriptors, Image view, Keyframe refKeyframe, Transform3Df pose) : this(solar_datastructurePINVOKE.new_Frame__SWIG_2(KeypointArray.getCPtr(keypoints), DescriptorBuffer.getCPtr(descriptors), Image.getCPtr(view), Keyframe.getCPtr(refKeyframe), Transform3Df.getCPtr(pose)), true)
 {
     if (solar_datastructurePINVOKE.SWIGPendingException.Pending)
     {
         throw solar_datastructurePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #5
0
 public void SetRange(int index, KeypointArray values)
 {
     solar_datastructurePINVOKE.KeypointArray_SetRange(swigCPtr, index, KeypointArray.getCPtr(values));
     if (solar_datastructurePINVOKE.SWIGPendingException.Pending)
     {
         throw solar_datastructurePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #6
0
 public void setKeypoints(KeypointArray kpts)
 {
     solar_datastructurePINVOKE.Frame_setKeypoints(swigCPtr, KeypointArray.getCPtr(kpts));
     if (solar_datastructurePINVOKE.SWIGPendingException.Pending)
     {
         throw solar_datastructurePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #7
0
        public KeypointArray getKeypoints()
        {
            KeypointArray ret = new KeypointArray(solar_datastructurePINVOKE.Frame_getKeypoints(swigCPtr), false);

            if (solar_datastructurePINVOKE.SWIGPendingException.Pending)
            {
                throw solar_datastructurePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #8
0
        public static KeypointArray Repeat(Keypoint value, int count)
        {
            global::System.IntPtr cPtr = solar_datastructurePINVOKE.KeypointArray_Repeat(Keypoint.getCPtr(value), count);
            KeypointArray         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new KeypointArray(cPtr, true);

            if (solar_datastructurePINVOKE.SWIGPendingException.Pending)
            {
                throw solar_datastructurePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #9
0
        public KeypointArray GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = solar_datastructurePINVOKE.KeypointArray_GetRange(swigCPtr, index, count);
            KeypointArray         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new KeypointArray(cPtr, true);

            if (solar_datastructurePINVOKE.SWIGPendingException.Pending)
            {
                throw solar_datastructurePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #10
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeypointArray obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }