First time here? Check out the FAQ!
answered 2018-05-03 17:30:39 -0600
... import_array(); npy_intp size[2] = { height, width }; int type = GetNPEnumTypeForImage(); PyObject* pNdArray = PyArray_SimpleNewFromData(2, size, type, buf); ...