summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-28 09:23:18 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-03-28 09:48:27 +0100
commitb09f9b91da32a06bc75b16166e4191dd27e870a2 (patch)
tree8ee9473c5dc11cd8103218c119f1fb2be2cc4e71
parent421ec0a4e1b3e28ce8fc025174f4d28ad1e202a7 (diff)
tracker/kinect: kill magic numberkinect-fixes
-rw-r--r--tracker-kinect-face/camera_kinect_ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-kinect-face/camera_kinect_ir.cpp b/tracker-kinect-face/camera_kinect_ir.cpp
index 8a2f6bcb..b1975db9 100644
--- a/tracker-kinect-face/camera_kinect_ir.cpp
+++ b/tracker-kinect-face/camera_kinect_ir.cpp
@@ -98,7 +98,7 @@ std::tuple<const video::impl::frame&, bool> CameraKinectIr::get_frame()
iFrame.data = iMatFrame.ptr();
iFrame.width = 512;
iFrame.height = 424;
- iFrame.stride = 0; // Auto step
+ iFrame.stride = cv::Mat::AUTO_STEP;
iFrame.channels = 3;
return { iFrame, new_frame };
}