From f2fb6e80524017c0980024e2e93269130df87fdd Mon Sep 17 00:00:00 2001 From: "samrat.thapa" Date: Wed, 22 May 2024 09:11:41 +0900 Subject: [PATCH] fixed spelling errors Signed-off-by: samrat.thapa --- .../test/test_calc_iou_functions.cpp | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/perception/image_projection_based_fusion/test/test_calc_iou_functions.cpp b/perception/image_projection_based_fusion/test/test_calc_iou_functions.cpp index 2851ba09424f9..1cddef44c0bac 100644 --- a/perception/image_projection_based_fusion/test/test_calc_iou_functions.cpp +++ b/perception/image_projection_based_fusion/test/test_calc_iou_functions.cpp @@ -68,20 +68,20 @@ TEST(GeometryTest, CalcIoUX) roi2.width = 4; roi2.height = 4; - double ioux = calcIoUX(roi1, roi2); - EXPECT_NEAR(ioux, 2.0 / 6.0, 1e-6); + double iou_x = calcIoUX(roi1, roi2); + EXPECT_NEAR(iou_x, 2.0 / 6.0, 1e-6); // Non-overlapping ROIs on x-axis roi2.x_offset = 5; - ioux = calcIoUX(roi1, roi2); - EXPECT_EQ(ioux, 0.0); + iou_x = calcIoUX(roi1, roi2); + EXPECT_EQ(iou_x, 0.0); // Zero width ROI roi1.width = 0; - ioux = calcIoUX(roi1, roi2); - EXPECT_EQ(ioux, 0.0); + iou_x = calcIoUX(roi1, roi2); + EXPECT_EQ(iou_x, 0.0); } TEST(GeometryTest, CalcIoUY) @@ -99,20 +99,20 @@ TEST(GeometryTest, CalcIoUY) roi2.width = 4; roi2.height = 4; - double iouy = calcIoUY(roi1, roi2); - EXPECT_NEAR(iouy, 2.0 / 6.0, 1e-6); + double iou_y = calcIoUY(roi1, roi2); + EXPECT_NEAR(iou_y, 2.0 / 6.0, 1e-6); // Non-overlapping ROIs on y-axis roi2.y_offset = 5; - iouy = calcIoUY(roi1, roi2); - EXPECT_EQ(iouy, 0.0); + iou_y = calcIoUY(roi1, roi2); + EXPECT_EQ(iou_y, 0.0); // Zero height ROI roi1.height = 0; - iouy = calcIoUY(roi1, roi2); - EXPECT_EQ(iouy, 0.0); + iou_y = calcIoUY(roi1, roi2); + EXPECT_EQ(iou_y, 0.0); } int main(int argc, char ** argv)