Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Nov 15 '17

TripleS gravatar image

No, you can do it,

Simple inherent from MatAllocator

Implement the virtual functions needed

Create a singleton instance for your allocator

Pass it to:

Mat::setDefaultAllocator()

worked for me

S

click to hide/show revision 2
No.2 Revision

No, Yes, you can do it, redefine cv::Mat allocator !!!

Simple inherent from MatAllocator

Implement the virtual functions needed

Create a singleton instance for your allocator

Pass it to:

Mat::setDefaultAllocator()

worked for me

S S