diff --git a/mediapipe/util/tracking/tracking.cc b/mediapipe/util/tracking/tracking.cc index 7e80cd5ce..88ba39807 100644 --- a/mediapipe/util/tracking/tracking.cc +++ b/mediapipe/util/tracking/tracking.cc @@ -1323,10 +1323,9 @@ void MotionBox::GetSpatialGaussWeights(const MotionBoxState& box_state, const float space_sigma_x = std::max( options_.spatial_sigma(), box_state.inlier_width() * inv_box_domain.x() * 0.5f * box_state.prior_weight() / 1.65f); - const float space_sigma_y = options_.spatial_sigma(); - std::max(options_.spatial_sigma(), box_state.inlier_height() * - inv_box_domain.y() * 0.5f * - box_state.prior_weight() / 1.65f); + const float space_sigma_y = std::max( + options_.spatial_sigma(), box_state.inlier_height() * inv_box_domain.y() * + 0.5f * box_state.prior_weight() / 1.65f); *spatial_gauss_x = -0.5f / (space_sigma_x * space_sigma_x); *spatial_gauss_y = -0.5f / (space_sigma_y * space_sigma_y);