From 2737e3c99bc1c9b656d322f2d895e7e67d1960c1 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 26 Feb 2014 17:15:46 +0400 Subject: [PATCH] TAPI: stitching: workaround for problem getUMat() call --- modules/stitching/src/matchers.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/stitching/src/matchers.cpp b/modules/stitching/src/matchers.cpp index 1ce1fc3b28..ceb3d3da70 100644 --- a/modules/stitching/src/matchers.cpp +++ b/modules/stitching/src/matchers.cpp @@ -427,7 +427,9 @@ void OrbFeaturesFinder::find(InputArray image, ImageFeatures &features) _descriptors.push_back(descriptors.getMat(ACCESS_READ)); } - features.descriptors = _descriptors.getUMat(ACCESS_READ); + // TODO optimize copyTo() + //features.descriptors = _descriptors.getUMat(ACCESS_READ); + _descriptors.copyTo(features.descriptors); } }