diff --git a/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp b/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp index 1a90f915c6956033868d5b006382e8affbefe6ff..e8eff732be9120de3cdc9efc2b25003e8635a65f 100644 --- a/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp +++ b/components/rgbd-sources/src/sources/stereovideo/stereovideo.cpp @@ -221,8 +221,8 @@ bool StereoVideoSource::compute(int n, int b) { } if (resize) { - std::swap(fullres_left_, left); - std::swap(fullres_right_, right); + cv::cuda::swap(fullres_left_, left); + cv::cuda::swap(fullres_right_, right); cv::cuda::resize(fullres_left_, left, depth_size_, 0, 0, cv::INTER_CUBIC, stream_); cv::cuda::resize(fullres_right_, right, depth_size_, 0, 0, cv::INTER_CUBIC, stream_); } @@ -231,8 +231,8 @@ bool StereoVideoSource::compute(int n, int b) { stream_.waitForCompletion(); if (resize) { - std::swap(fullres_left_, left); - std::swap(fullres_right_, right); + cv::cuda::swap(fullres_left_, left); + cv::cuda::swap(fullres_right_, right); } host_->notify(timestamp_,