Skip to content
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

Bounding Box mode #139

Open
wants to merge 8 commits into
base: ts_react
Choose a base branch
from
Open

Bounding Box mode #139

wants to merge 8 commits into from

Conversation

gabrielcowley
Copy link

@gabrielcowley gabrielcowley commented May 10, 2017

This PR has a staging branch, which means a production build of this branch exists and can be launched. Click here to preview this PR.

This PR adds a new 'Bounding Box' mode for 'image' mode. Bounding box mode will not work for any template other than one which has exactly 1 group label consisting of exactly 4 landmarks (this to form a box). Bounding box mode can be activated either when no landmarks have been filled in or when all four landmarks have been filled in and they make a rectangle shape which aligns with the axes.

If no landmarks are filled in, then the user can create a bounding box by right-clicking and dragging. From there, the bounding box can be manipulated using the handles in the four corners of the box. If all landmarks are filled in and make the required box shape (a small margin of error is afforded), then entering bounding box mode will replace the landmarks with the bounding box.

All of the required features have been added, but at the moment the new code does not account for changes in template. If the current template is changed while bounding box mode is active, nothing will be done. This should be the last thing that needs doing on this PR.

This PR is to be merged after the occlusion PR: #137

@gabrielcowley gabrielcowley changed the title WIP: Bounding Box mode Bounding Box mode May 10, 2017
@gabrielcowley
Copy link
Author

gabrielcowley commented May 10, 2017

Active template bug is now fixed and this PR is ready to be merged once #137 has been merged.

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