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

Fixed flag -b crops instead of masking #2606

Merged
merged 2 commits into from
Feb 20, 2020
Merged

Conversation

jcohenadad
Copy link
Member

The flag -b 1 is expected to not crop the image (i.e. reduce dimension), but instead mask the image outside of the bounding box defined by xmin, xmax, etc. with zeros. However, in the current implementation (commit 576ddeb), it does crop the image. This PR fixes the problem (an argument was missing in the crop() function).

The usage for -b was also clarified.

Fixes #2605

@jcohenadad jcohenadad added bug category: fixes an error in the code sct_crop_image context: labels Feb 20, 2020
@jcohenadad jcohenadad added this to the 4.2.2 milestone Feb 20, 2020
@jcohenadad jcohenadad self-assigned this Feb 20, 2020
@jcohenadad jcohenadad merged commit efcb674 into master Feb 20, 2020
@jcohenadad jcohenadad deleted the jca/2605-crop-flagb branch February 20, 2020 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug category: fixes an error in the code sct_crop_image context:
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flag -b crops instead of masking
2 participants