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

Add pre-cropping #317

Merged
merged 1 commit into from Oct 19, 2017
Merged

Add pre-cropping #317

merged 1 commit into from Oct 19, 2017

Conversation

JoostJM
Copy link
Collaborator

@JoostJM JoostJM commented Oct 16, 2017

When resampling is enabled, image and mask are pre-cropped onto the bounding box (with additional padding). This speeds up the resampling process and the application of filters. Moreover, it can significantly reduce the memory footprint of the extraction, especially when the images are large, but contain only small ROIs.
Add functionality to also pre-crop the image when no resampling is applied. This way, the advantages when applying filters on a pre-cropped image and mask are also available when extracting without resampling.

Similar as pre-cropping when resampling, additional padding is available (parameter padDistance), which is ensure to not exceed the original image bounds.

cc @Radiomics/developers

When resampling is enabled, image and mask are pre-cropped onto the bounding box (with additional padding). This speeds up the resampling process and the application of filters. Moreover, it can significantly reduce the memory footprint of the extraction, especially when the images are large, but contain only small ROIs.
Add functionality to also pre-crop the image when no resampling is applied. This way, the advantages when applying filters on a pre-cropped image and mask are also available when extracting without resampling.

Similar as pre-cropping when resampling, additional padding is available (parameter `padDistance`), which is ensure to not exceed the original image bounds.
@JoostJM JoostJM merged commit 60c18e2 into AIM-Harvard:master Oct 19, 2017
@JoostJM JoostJM deleted the add-precrop branch October 23, 2017 06:19
@JoostJM JoostJM added this to Implemented in PyRadiomics Performance Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
PyRadiomics Performance
  
Implemented
Development

Successfully merging this pull request may close these issues.

None yet

1 participant