From 240ef52afea4260381843b9a7c806e9031585988 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Wed, 30 Oct 2019 11:33:34 +0200
Subject: [PATCH] Resize warnings

---
 components/rgbd-sources/src/source.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/components/rgbd-sources/src/source.cpp b/components/rgbd-sources/src/source.cpp
index 6bfecc74c..a7b6b2cb0 100644
--- a/components/rgbd-sources/src/source.cpp
+++ b/components/rgbd-sources/src/source.cpp
@@ -309,11 +309,13 @@ void Source::notify(int64_t ts, cv::cuda::GpuMat &c1, cv::cuda::GpuMat &c2) {
 
 	// Should channel 1 be scaled?
 	if (c1.cols < max_width || c1.rows < max_height) {
+		LOG(WARNING) << "Resizing on GPU";
 		cv::cuda::resize(c1, c1, cv::Size(max_width, max_height));
 	}
 
 	// Should channel 2 be scaled?
 	if (!c2.empty() && (c2.cols < max_width || c2.rows < max_height)) {
+		LOG(WARNING) << "Resizing on GPU";
 		if (c2.type() == CV_32F) {
 			cv::cuda::resize(c2, c2, cv::Size(max_width, max_height), 0.0, 0.0, cv::INTER_NEAREST);
 		} else {
-- 
GitLab