Skip to content

Add mask_box anchor to SegmentationMask - #291

Merged
jp-pino merged 3 commits into
masterfrom
claude/segmentation-mask-decoupling
Aug 27, 2026
Merged

Add mask_box anchor to SegmentationMask#291
jp-pino merged 3 commits into
masterfrom
claude/segmentation-mask-decoupling

Conversation

@jp-pino

@jp-pino jp-pino commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds BoundingBox mask_box = 4 to SegmentationMask: the image region the mask bitmap covers, pinned to the raw detection position. Clients should scale the mask to mask_box instead of ObjectDetection.bounding_box (which may be smoothed by tracking).
  • No wire-format break: counts stays packed uint16 LE. Runs longer than 65535 pixels are split drone-side with zero-length runs of the opposite class, which existing decoders handle naturally (a zero-length run toggles the class and contributes no pixels). This is now documented on the message.

Part of a four-repo change with BlueyeCV, p2_msgs, and p2_drone.

🤖 Generated with Claude Code

The mask bitmap covers mask_box (the raw detection position), while
ObjectDetection.bounding_box may be smoothed by tracking. Clients should
scale the mask to mask_box, falling back to bounding_box when unset.
Counts stay packed uint16 LE: runs longer than 65535 are split with
zero-length runs of the opposite class.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jp-pino jp-pino self-assigned this Aug 27, 2026
jp-pino and others added 2 commits August 27, 2026 21:31
No deployed drones publish masks without mask_box, so clients should
always scale the mask to mask_box.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jp-pino
jp-pino marked this pull request as ready for review August 27, 2026 19:34
@jp-pino jp-pino added the enhancement New feature or request label Aug 27, 2026
@jp-pino jp-pino added this to the Blunux v5.1 milestone Aug 27, 2026
@jp-pino
jp-pino merged commit 1fa96b9 into master Aug 27, 2026
4 checks passed
@jp-pino
jp-pino deleted the claude/segmentation-mask-decoupling branch August 27, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant