Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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