applied patches from #1005

This commit is contained in:
Vadim Pisarevsky
2011-06-13 22:04:28 +00:00
parent 238b94cbf1
commit 23d211bfed
2 changed files with 11 additions and 2 deletions

View File

@@ -525,10 +525,10 @@ template<typename _Tp> struct pyopencvVecConverter
}
if( channels > 1 )
{
if( PyArray_Check(obj))
if( PyArray_Check(item))
{
Mat src;
pyopencv_to(obj, src, name);
pyopencv_to(item, src, name);
if( src.dims != 2 || src.channels() != 1 ||
((src.cols != 1 || src.rows != channels) &&
(src.cols != channels || src.rows != 1)))