opencv: Use cv::AutoBuffer<>::data()

This commit is contained in:
Alexander Alekhin authored and Alexander Alekhin committed 2018-07-04 19:11:29 +03:00
1 parent 135ea264ef
commit b09a4a98d4
90 files changed
+333 -339

No files matched your search

+1 -1
View File
@@ -189,7 +189,7 @@ public:
_sizes[i] = sizes[i];
if( cn > 1 )
_sizes[dims++] = cn;
PyObject* o = PyArray_SimpleNew(dims, _sizes, typenum);
PyObject* o = PyArray_SimpleNew(dims, _sizes.data(), typenum);
if(!o)
CV_Error_(Error::StsError, ("The numpy array of typenum=%d, ndims=%d can not be created", typenum, dims));
return allocate(o, dims0, sizes, type, step);