From 2241bfb0dfa788e0b516a7da9a1f70733f5431d3 Mon Sep 17 00:00:00 2001 From: Namgoo Lee Date: Thu, 30 Jul 2020 01:03:34 +0900 Subject: [PATCH] Use "src" not "*this" for source GpuMat --- modules/core/src/cuda/gpu_mat.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/src/cuda/gpu_mat.cu b/modules/core/src/cuda/gpu_mat.cu index e1b0c1b22d..f31f78a87a 100644 --- a/modules/core/src/cuda/gpu_mat.cu +++ b/modules/core/src/cuda/gpu_mat.cu @@ -561,7 +561,7 @@ void cv::cuda::GpuMat::convertTo(OutputArray _dst, int rtype, Stream& stream) co {convertToNoScale, convertToNoScale, convertToNoScale, convertToNoScale, convertToNoScale, convertToNoScale, 0} }; - funcs[sdepth][ddepth](reshape(1), dst.reshape(1), stream); + funcs[sdepth][ddepth](src.reshape(1), dst.reshape(1), stream); } void cv::cuda::GpuMat::convertTo(OutputArray _dst, int rtype, double alpha, double beta, Stream& stream) const @@ -591,7 +591,7 @@ void cv::cuda::GpuMat::convertTo(OutputArray _dst, int rtype, double alpha, doub {convertToScale, convertToScale, convertToScale, convertToScale, convertToScale, convertToScale, convertToScale} }; - funcs[sdepth][ddepth](reshape(1), dst.reshape(1), alpha, beta, stream); + funcs[sdepth][ddepth](src.reshape(1), dst.reshape(1), alpha, beta, stream); } void cv::cuda::convertFp16(InputArray _src, OutputArray _dst, Stream& stream)