Skip to content

transform to squeeze undesired unitary dimensions (#299)#313

Merged
Nic-Ma merged 2 commits intoProject-MONAI:masterfrom
martaranzini:299_squeeze
Apr 27, 2020
Merged

transform to squeeze undesired unitary dimensions (#299)#313
Nic-Ma merged 2 commits intoProject-MONAI:masterfrom
martaranzini:299_squeeze

Conversation

@martaranzini
Copy link
Copy Markdown
Collaborator

Fixes #299 .

Description

A new transform SqueezeDim() was added to remove undesired unitary dimensions (wrapping numpy squeeze), so as to be available for data preparation and for composition with other transforms. The SqueezeDimd() was also added as the respective wrapper for dict inputs.

Status

Ready

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or new feature that would cause existing functionality to change)
  • New tests added to cover the changes
  • Docstrings/Documentation updated

Copy link
Copy Markdown
Contributor

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much for your quick PR!
Looks good to me, you implemented all the requirements I raised in that issue #299 .
Thanks.

@Nic-Ma Nic-Ma merged commit 700f994 into Project-MONAI:master Apr 27, 2020
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.

Squeezing functionality in Monai transforms

2 participants