FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Support complete multipolygon masks in head/tail extraction by mattdawkins · Pull Request #300 · VIAME/VIAME · GitHub

Repository navigation

Support complete multipolygon masks in head/tail extraction - #300

Merged
mattdawkins merged 1 commit into
mainfrom
fix/multipolygon-keypoints
Sep 21, 2026
Merged

mattdawkins merged 1 commit into
mainfrom
fix/multipolygon-keypoints

Conversation

Copy link
Copy Markdown
Collaborator

DIVE auto-populate can receive multiple disconnected polygons for one fish, but the head/tail service currently accepts only one exterior. Accept a polygons collection alongside the existing single-polygon request, rasterize every exterior and hole into one mask, and derive one head/tail pair from that combined mask. Rasterizing components separately preserves islands inside another component's hole.

Companion to Kitware/dive#1941. DIVE will send the full collection when there are multiple components or holes; simple polygons keep the existing request format.

Validation: nine Python tests pass covering combined-mask extraction, disconnected components, holes, nested islands, legacy calls, invalid rings, and existing line-scale behavior. Model inference was not run.

mattdawkins merged commit 81cbe5a into main Sep 21, 2026
1 of 2 checks passed
mattdawkins deleted the fix/multipolygon-keypoints branch September 21, 2026 04:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL