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

Preserve multi-polygon segmentation and refresh stereo lengths by mattdawkins · Pull Request #1952 · Kitware/dive · GitHub

/ dive Public

Preserve multi-polygon segmentation and refresh stereo lengths - #1952

Open
mattdawkins wants to merge 19 commits into
mainfrom
dev/point-seg-multipolygon
Open

mattdawkins wants to merge 19 commits into
mainfrom
dev/point-seg-multipolygon

Conversation

mattdawkins commented Sep 21, 2026
edited
Loading

Copy link
Copy Markdown
Member

Point-click segmentation now retains every mask component and hole on a detection. Adding another polygon or refining the mask also refreshes the stereo counterpart created during that segmentation session, so changes to automatic head/tail points no longer leave the length attribute missing.

Pre-existing counterparts and user-edited counterpart lines are preserved; their length is recomputed after source point extraction finishes. Preview, frame navigation, confirmation, polygon editing, and reset retain the full component list.

The Creating Segment instructions are shorter and use 12px text. The Q button’s missing-SAM3 dialog opens DIVE’s Add-Ons page for direct installation.

Includes the auto-populate dependency from #1941, which supplies the per-click point extraction and stereo mask transfer used by this fix.

Validation: 64 targeted tests passed; ESLint and TypeScript checking passed. The desktop interaction has not been manually verified with a stereo dataset.

  • Point-segmentation hint shortened to two lines (right-click confirm dropped, Esc kept).

mattdawkins and others added 10 commits September 17, 2026 23:32
With auto compute on the other camera, the mapped shape gets the same mask
and/or points pass once the transfer succeeds; a derived head/tail follows
the source camera's direction.
Lets the VIAME service keep a line-prompted mask in scale with the line.
A box warped to the other camera whose mask overlaps it by less
than half its union takes the mask's bounds instead.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The service's polygons list, with holes, is stored as keyed polygons on the
detection; a refinement drops the components it no longer has.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
mattdawkins and others added 3 commits September 20, 2026 23:20
… is on

A confirmed mask on a brand-new detection now takes the same keypoint pass
as a drawn box, on the source camera and on the stereo copy.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
With auto-segmentation on, points inside the source mask are warped instead
of the box corners, the other camera is segmented from them, and its box is
that mask's bounds. Corner warping remains the fallback.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…moves it

The pass runs after each click's prediction on both cameras, replacing only a
line it derived itself.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The other camera's mask comes from the service, which seeds from inside the source mask and refuses an out-of-scale result, instead of DIVE warping prompts and predicting itself. Click segmentation sends every source polygon and draws every returned one.
mattdawkins changed the title Keep every mask component in point-click segmentation Preserve multi-polygon segmentation and refresh stereo lengths Sep 22, 2026
mattdawkins added a commit that referenced this pull request Sep 22, 2026
# Conflicts:
#	client/dive-common/use/useModeManager.spec.ts
#	client/dive-common/use/useModeManager.ts
#	client/platform/desktop/frontend/components/ViewerLoader.vue
#	client/src/components/LayerManager.vue
#	client/src/components/annotators/useMediaController.ts
#	client/src/layers/EditAnnotationLayer.companion.spec.ts
#	client/src/layers/EditAnnotationLayer.ts
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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