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

BUG: Fix error when mask is passed as SimpleITK image #211

Merged
merged 1 commit into from Mar 6, 2017

Conversation

JoostJM
Copy link
Collaborator

@JoostJM JoostJM commented Feb 23, 2017

When segmentation is passed as a SimpleITK image, the second check erroneously checks the imageFilePath instead of the maskFilePath for being an SimpleITK Image. This causes a bug when the image is supplied as a file location and the mask as an image.

Addtionally, add some checks to ensure image and mask are loaded before attempting to process further.

cc @Radiomics/developers

When segmentation is passed as a SimpleITK image, as the second check erroneously checks the imageFilePath instead of the maskFilePath for being an SimpleITK Image.
Addtionally, add some checks to ensure image and mask are loaded before attempting to process further.
@JoostJM JoostJM merged commit 84dce48 into AIM-Harvard:master Mar 6, 2017
@JoostJM JoostJM deleted the load-image-bug branch March 14, 2017 17:34
@JoostJM JoostJM added the bug label Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant