Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Conversation

@hlomzik
Copy link
Collaborator

@hlomzik hlomzik commented Jan 4, 2023

‼️
Internal PR to include #1119 in our process.
#1119 should be merged first, all comments should go there. All credits to the author of original PR and all participants.
This PR should be automatically updated and merged after original PR is merged.

Brad Neuberg and others added 13 commits December 16, 2022 10:01
This PR implements a Magic Wand, making it possible to click in a region of an image a user is doing segmentation labeling on, drag the mouse to dynamically change flood filling tolerance, then release the mouse button to get a new labeled area. It is particularly effective at labeling broad, diffuse, complex edged objects, such as clouds, cloud shadows, snow, etc. in earth observation applications or organic shapes in biomedical applications.

In-depth technical overview on how it works at the top of src/tools/MagicWand.js.
@swarmia
Copy link

swarmia bot commented Jan 4, 2023

@github-actions github-actions bot added the feat label Jan 4, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jan 4, 2023

Codecov Report

Base: 9.45% // Head: 9.14% // Decreases project coverage by -0.31% ⚠️

Coverage data is based on head (126a478) compared to base (61e6d9f).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #1132      +/-   ##
=========================================
- Coverage    9.45%   9.14%   -0.31%     
=========================================
  Files         108     107       -1     
  Lines        7830    8111     +281     
  Branches     1963    2014      +51     
=========================================
+ Hits          740     742       +2     
- Misses       5947    6187     +240     
- Partials     1143    1182      +39     
Impacted Files Coverage Δ
src/src/core/Registry.ts 37.87% <0.00%> (-2.45%) ⬇️
src/src/utils/canvas.js 1.85% <0.00%> (-0.61%) ⬇️
src/src/tools/Manager.js 3.22% <0.00%> (-0.19%) ⬇️
src/src/regions/BrushRegion.js 3.18% <0.00%> (-0.15%) ⬇️
src/src/tags/object/Image.js 2.75% <0.00%> (-0.07%) ⬇️
src/src/components/ImageView/ImageView.js 4.39% <0.00%> (-0.05%) ⬇️
src/src/tools/Base.js 8.33% <0.00%> (ø)
src/src/tools/Rect.js 10.86% <0.00%> (ø)
src/src/utils/image.js 0.00% <0.00%> (ø)
src/src/tools/Ellipse.js 9.09% <0.00%> (ø)
... and 11 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

bradneuberg added 13 commits January 5, 2023 09:39
The old bucket was configured under the wrong project, and using https instead of http causes mixed content issues for CORS. Local development is done with http so using that.
This means undo/redo will now work correctly, but will end up creating a new class layer if more magic wanding is done on the current instance.
…will have it off by default.

Note that this is needed so that Magic Wand e2e integration tests will work.
@hlomzik hlomzik changed the title feat: DEV-4081: Magic Wand tool internal: DEV-4081: LSDV-2984: Magic Wand tool Feb 2, 2023
bradneuberg and others added 15 commits February 2, 2023 14:23
Note that we have not been able to make sure the docs are generated correctly until the https://api.github.com/repos/heartexlabs/label-studio/contents/docs/source/tags API endpoint registers the magicwand tag.
Basically, we now calculate the Magic Wand thresholding from the entire screen, not just relative to the image. We also correctly allow you to drag in any direction to get positive or negative thresholding.
…me tools.

The Magic Wand, the Brush, and the Eraser should all retain selection when moving between them, as well as when moving between those tools and the Zoom or Pan tools.

This fix allows removing some hacky specific code I added for the Magic Wand for this behavior.

Fixes HumanSignal/label-studio#3510.
@hlomzik
Copy link
Collaborator Author

hlomzik commented Feb 14, 2023

Original PR is merged, all related are merged as well, so closing this one.

@hlomzik hlomzik closed this Feb 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants