-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance Annotation Layer Changes: Relative zOrder Updates #9063
base: develop
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
Would this kind of change need a test? I did not find any tests for the previous implementation. |
Hi, An |
That makes sense. I will try to fix that and write the tests. Thank you! |
Motivation and context
Closes #9064
The current method of moving objects in CVAT using absolute placements (sending them directly to the front or back) can be disorienting and unpredictable. When repeatedly moving an object backward, it can continue to shift unexpectedly, making it difficult to track and control its position accurately.
This update introduces a relative movement approach, allowing users to adjust an object’s z-order one layer at a time. Instead of jumping directly to the back or front, users can precisely move objects step-by-step, ensuring greater accuracy and control over the annotation layout. This prevents unwanted drastic changes and makes object layering more intuitive and predictable.
By constraining the movement within minZLayer and maxZLayer, this solution also prevents objects from going out of bounds, further improving usability.
How has this been tested?
I had tested by rebuilding and using the functionality for my semantic segmentation tasks. Just by testing the keybinds and buttons in multiple images.
Checklist
develop
branchLicense
Feel free to contact the maintainers if that's a concern.