Skip to content
Snippets Groups Projects
Commit cb2b9219 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Use cv cuda swap

parent 7026ee03
No related branches found
No related tags found
1 merge request!196High resolution colour
Pipeline #17095 passed
......@@ -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_,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment