mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
added cv::remap to T-API
This commit is contained in:
@@ -1893,7 +1893,7 @@ Context2& Context2::getDefault()
|
||||
// First, try to retrieve existing context of the same type.
|
||||
// In its turn, Platform::getContext() may call Context2::create()
|
||||
// if there is no such context.
|
||||
ctx.create(Device::TYPE_CPU);
|
||||
ctx.create(Device::TYPE_ACCELERATOR);
|
||||
if(!ctx.p)
|
||||
ctx.create(Device::TYPE_DGPU);
|
||||
if(!ctx.p)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user