From 812cc01104a4fd0d95914bb061e6415b2b50f21d Mon Sep 17 00:00:00 2001 From: Moses Turner Date: Thu, 22 Sep 2022 01:03:44 -0500 Subject: [PATCH] h/mercury: Fix for blackbar in 180 degree orientation --- src/xrt/tracking/hand/mercury/hg_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/tracking/hand/mercury/hg_model.cpp b/src/xrt/tracking/hand/mercury/hg_model.cpp index 6729f9d51..050f2d3e2 100644 --- a/src/xrt/tracking/hand/mercury/hg_model.cpp +++ b/src/xrt/tracking/hand/mercury/hg_model.cpp @@ -93,7 +93,7 @@ blackbar(const cv::Mat &in, enum t_camera_orientation rot, cv::Mat &out, xrt_siz case CAMERA_ORIENTATION_180: // clang-format off go(0,0) = -scale_down; go(0,1) = 0.0f; go(0,2) = translate_x+out_size.w-1; - go(1,0) = 0.0f; go(1,1) = -scale_down; go(1,2) = translate_y+out_size.h-1; + go(1,0) = 0.0f; go(1,1) = -scale_down; go(1,2) = -translate_y+out_size.h-1; // clang-format on break; case CAMERA_ORIENTATION_270: