Skip to content

Commit

Permalink
refactor: replace classification array
Browse files Browse the repository at this point in the history
Signed-off-by: Barış Zeren <[email protected]>
  • Loading branch information
StepTurtle committed Nov 26, 2024
1 parent 30f974f commit 8a35861
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ set(msg_files
"msg/MissionRemainingDistanceTime.msg"
"msg/ResourceUsageReport.msg"
"msg/SegmentationMask.msg"
"msg/SegmentationConfig.msg"
)

set(msg_dependencies
Expand Down
7 changes: 0 additions & 7 deletions msg/SegmentationConfig.msg

This file was deleted.

8 changes: 7 additions & 1 deletion msg/SegmentationMask.msg
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8a35861

Please sign in to comment.