h/mercury: Fix crop calculation for 180 degree rotations

This commit is contained in:
Moses Turner 2022-09-17 09:08:27 -05:00
parent 0ddf3e0e19
commit a285294d7f

View file

@ -624,7 +624,7 @@ calc_src_tri(cv::Point2f center,
} break;
case CAMERA_ORIENTATION_180: {
// top left (becomes bottom right)
out_src_tri[0] = bottom_left;
out_src_tri[0] = bottom_right;
// bottom left (becomes top right)
out_src_tri[1] = top_right;