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.0.1.0 (2.0.1.0)
Syntax
C# |
---|
public static void cvSetMemoryManager( CvInvoke..::.CvAllocFunc allocFunc, CvInvoke..::.CvFreeFunc freeFunc, IntPtr userdata ) |
Visual Basic (Declaration) |
---|
Public Shared Sub cvSetMemoryManager ( _ allocFunc As CvInvoke..::.CvAllocFunc, _ freeFunc As CvInvoke..::.CvFreeFunc, _ userdata As IntPtr _ ) |
Visual C++ |
---|
public: static void cvSetMemoryManager( CvInvoke..::.CvAllocFunc^ allocFunc, CvInvoke..::.CvFreeFunc^ freeFunc, IntPtr userdata ) |
Parameters
- allocFunc
- Type: Emgu.CV..::.CvInvoke..::.CvAllocFunc
Allocation function
- freeFunc
- Type: Emgu.CV..::.CvInvoke..::.CvFreeFunc
Deallocation function
- userdata
- Type: System..::.IntPtr
User data that is transparetly passed to the custom functions