fixed a few bugs in: Mat::reshape, Mat(CvMat*) constructor, element access, copying nd array etc.

This commit is contained in:
Vadim Pisarevsky
2010-10-19 11:57:37 +00:00
parent 6ed141de0e
commit 8af83e6d37
4 changed files with 76 additions and 29 deletions

View File

@@ -304,7 +304,11 @@ cvCloneMatND( const CvMatND* src )
if( src->data.ptr )
{
cvCreateData( dst );
cvCopy( src, dst );
cv::Mat _src(src), _dst(dst);
uchar* data0 = dst->data.ptr;
_src.copyTo(_dst);
CV_Assert(_dst.data == data0);
//cvCopy( src, dst );
}
return dst;