Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

... import_array(); npy_intp size[2] = { height, width }; int type = GetNPEnumTypeForImage(); PyObject* pNdArray = PyArray_SimpleNewFromData(2, size, type, buf); ...