/// <summary>
        ///
        /// </summary>
        public IndexParams()
        {
            IntPtr p = NativeMethods.flann_Ptr_IndexParams_new();

            if (p == IntPtr.Zero)
            {
                throw new OpenCvSharpException($"Failed to create {nameof(IndexParams)}");
            }

            PtrObj = new Ptr(p);
            ptr    = PtrObj.Get();
        }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 protected IndexParams(OpenCvSharp.Ptr?ptrObj)
 {
     PtrObj = ptrObj;
     ptr    = PtrObj?.Get() ?? IntPtr.Zero;
 }