File tree 1 file changed +8
-4
lines changed
perception/image_projection_based_fusion/test
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
#include " image_projection_based_fusion/utils/geometry.hpp"
16
+
16
17
#include < gtest/gtest.h>
17
18
18
19
using namespace image_projection_based_fusion ;
19
20
20
- TEST (GeometryTest, CalcIoU) {
21
+ TEST (GeometryTest, CalcIoU)
22
+ {
21
23
sensor_msgs::msg::RegionOfInterest roi1, roi2;
22
24
23
25
// Overlapping ROIs
24
26
roi1.x_offset = 0 ;
25
27
roi1.y_offset = 0 ;
26
28
roi1.width = 4 ;
27
29
roi1.height = 4 ;
28
-
30
+
29
31
roi2.x_offset = 2 ;
30
32
roi2.y_offset = 2 ;
31
33
roi2.width = 4 ;
@@ -49,7 +51,8 @@ TEST(GeometryTest, CalcIoU) {
49
51
EXPECT_EQ (iou, 0.0 );
50
52
}
51
53
52
- TEST (GeometryTest, CalcIoUX) {
54
+ TEST (GeometryTest, CalcIoUX)
55
+ {
53
56
sensor_msgs::msg::RegionOfInterest roi1, roi2;
54
57
55
58
// Overlapping ROIs on x-axis
@@ -79,7 +82,8 @@ TEST(GeometryTest, CalcIoUX) {
79
82
EXPECT_EQ (ioux, 0.0 );
80
83
}
81
84
82
- TEST (GeometryTest, CalcIoUY) {
85
+ TEST (GeometryTest, CalcIoUY)
86
+ {
83
87
sensor_msgs::msg::RegionOfInterest roi1, roi2;
84
88
85
89
// Overlapping ROIs on y-axis
You can’t perform that action at this time.
0 commit comments