h/mercury: Fix for blackbar in 180 degree orientation

This commit is contained in:
Moses Turner 2022-09-22 01:03:44 -05:00 committed by Jakob Bornecrantz
parent 098bd5e773
commit 812cc01104

View file

@ -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: