Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to redefine the Memory Allocator

Hi all,

Sorry to disturb you.

Currently I want to redefine the memory allocator in OpenCV. However I found that the cvSetMemoryManager() function is useless. The source code of it is:

void cvSetMemoryManager(CvAllocFunc, CvFreeFunc, void *)
{
CV_Error( -1, "Custom memory allocator is not supported" );
}

Is there another way to redefine the memory allocator in OpenCV ?

Thank you.