提交 facbdc92 编写于 作者: V Vadim Pisarevsky

fixed multi-channel 1x1 array construction (ticket #1103)

上级 b14ca429
......@@ -111,9 +111,9 @@ public:
_sizes[i] = sizes[i];
if( cn > 1 )
{
if( _sizes[dims-1] == 1 )
/*if( _sizes[dims-1] == 1 )
_sizes[dims-1] = cn;
else
else*/
_sizes[dims++] = cn;
}
PyObject* o = PyArray_SimpleNew(dims, _sizes, typenum);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册