Merge pull request #1903 from ilya-lavrenov:tapi_warp

This commit is contained in:
Andrey Pavlenko
2013-12-04 11:34:51 +04:00
committed by OpenCV Buildbot
8 changed files with 1307 additions and 11 deletions

View File

@@ -578,6 +578,7 @@ Mat UMat::getMat(int accessFlags) const
u->currAllocator->map(u, accessFlags | ACCESS_READ);
CV_Assert(u->data != 0);
Mat hdr(dims, size.p, type(), u->data + offset, step.p);
hdr.flags = flags;
hdr.u = u;
hdr.datastart = u->data;
hdr.data = hdr.datastart + offset;