OpenCvSharp.NativeMethods.features2d_BOWImgDescriptorExtractor_delete C# (CSharp) Method

features2d_BOWImgDescriptorExtractor_delete() private method

private features2d_BOWImgDescriptorExtractor_delete ( IntPtr obj ) : void
obj IntPtr
return void
        public static extern void features2d_BOWImgDescriptorExtractor_delete(IntPtr obj);
        [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)]

Usage Example

コード例 #1
0
/// <summary>
/// リソースの解放
/// </summary>
/// <param name="disposing">
/// trueの場合は、このメソッドがユーザコードから直接が呼ばれたことを示す。マネージ・アンマネージ双方のリソースが解放される。
/// falseの場合は、このメソッドはランタイムからファイナライザによって呼ばれ、もうほかのオブジェクトから参照されていないことを示す。アンマネージリソースのみ解放される。
///</param>
#else
        /// <summary>
        /// Releases the resources
        /// </summary>
        /// <param name="disposing">
        /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed.
        /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed.
        /// </param>
#endif
        protected override void Dispose(bool disposing)
        {
            if (!IsDisposed)
            {
                try
                {
                    // releases managed resources
                    if (disposing)
                    {
                    }
                    else
                    {
                        if (ptr != IntPtr.Zero)
                        {
                            NativeMethods.features2d_BOWImgDescriptorExtractor_delete(ptr);
                        }
                        ptr = IntPtr.Zero;
                    }
                }
                finally
                {
                    base.Dispose(disposing);
                }
            }
        }
All Usage Examples Of OpenCvSharp.NativeMethods::features2d_BOWImgDescriptorExtractor_delete
NativeMethods