The function cvSetMemoryManager sets user-defined memory managment functions (substitutors for malloc and free) that will be called by cvAlloc, cvFree and higher-level functions (e.g. cvCreateImage)
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)
Syntax
C# | Visual Basic | Visual C++ |
public static void cvSetMemoryManager( CvInvoke..::..CvAllocFunc allocFunc, CvInvoke..::..CvFreeFunc freeFunc, IntPtr userdata )
Public Shared Sub cvSetMemoryManager ( _ allocFunc As CvInvoke..::..CvAllocFunc, _ freeFunc As CvInvoke..::..CvFreeFunc, _ userdata As IntPtr _ )
public: static void cvSetMemoryManager( CvInvoke..::..CvAllocFunc^ allocFunc, CvInvoke..::..CvFreeFunc^ freeFunc, IntPtr userdata )
Parameters
- allocFunc
- CvInvoke..::..CvAllocFunc
Allocation function
- freeFunc
- CvInvoke..::..CvFreeFunc
Deallocation function
- userdata
- IntPtr
User data that is transparetly passed to the custom functions