From 8a35861dbfe06e459d19e167efe4a1a6037853d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Zeren?= Date: Tue, 26 Nov 2024 19:31:31 +0300 Subject: [PATCH] refactor: replace classification array MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Barış Zeren --- CMakeLists.txt | 1 - msg/SegmentationConfig.msg | 7 ------- msg/SegmentationMask.msg | 8 +++++++- 3 files changed, 7 insertions(+), 9 deletions(-) delete mode 100644 msg/SegmentationConfig.msg diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d292d1..3b83218 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,6 @@ set(msg_files "msg/MissionRemainingDistanceTime.msg" "msg/ResourceUsageReport.msg" "msg/SegmentationMask.msg" - "msg/SegmentationConfig.msg" ) set(msg_dependencies diff --git a/msg/SegmentationConfig.msg b/msg/SegmentationConfig.msg deleted file mode 100644 index 756979c..0000000 --- a/msg/SegmentationConfig.msg +++ /dev/null @@ -1,7 +0,0 @@ -# It represent map between instance segmentation mask and labels -# The pixel intensities in mask's starts with 1 (pixel value 0 represent pixel is not belong any object) -# `classification[0]` returns the `label_id` for pixels with an intensity value of `1` in the mask. -# `classification[1]` returns the `label_id` for pixels with an intensity value of `2` in the mask. -# ... -# The relationship between pixels and label IDs continues in this way. -autoware_perception_msgs/ObjectClassification[] classification diff --git a/msg/SegmentationMask.msg b/msg/SegmentationMask.msg index 1ce1010..957c02e 100644 --- a/msg/SegmentationMask.msg +++ b/msg/SegmentationMask.msg @@ -1,5 +1,11 @@ std_msgs/Header header -SegmentationConfig config # Stores relation between class and image intensity +# It represent map between instance segmentation mask and labels +# The pixel intensities in mask's starts with 1 (pixel value 0 represent pixel is not belong any object) +# `classification[0]` returns the `label_id` for pixels with an intensity value of `1` in the mask. +# `classification[1]` returns the `label_id` for pixels with an intensity value of `2` in the mask. +# ... +# The relationship between pixels and label IDs continues in this way. +autoware_perception_msgs/ObjectClassification[] classification sensor_msgs/Image image # Mask image