mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Replace static numpy allocator by function containing static.
That enables the numpy code to be its own library, in case some users want to (e.g. CLIF library).
This commit is contained in:
@@ -28,7 +28,7 @@ static void* cv_UMat_context()
|
||||
static Mat cv_UMat_get(const UMat* _self)
|
||||
{
|
||||
Mat m;
|
||||
m.allocator = &g_numpyAllocator;
|
||||
m.allocator = &GetNumpyAllocator();
|
||||
_self->copyTo(m);
|
||||
return m;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user