Skip to content

2380 fix inverse bug of CenterScaleCropd transform#2383

Merged
Nic-Ma merged 5 commits intoProject-MONAI:devfrom
Nic-Ma:2380-fix-center-scale-crop
Jun 17, 2021
Merged

2380 fix inverse bug of CenterScaleCropd transform#2383
Nic-Ma merged 5 commits intoProject-MONAI:devfrom
Nic-Ma:2380-fix-center-scale-crop

Conversation

@Nic-Ma
Copy link
Contributor

@Nic-Ma Nic-Ma commented Jun 17, 2021

Fixes #2380 .

Description

The CenterScaleCropd inherited from CenterSpatialCropd before and used the inverse function of super class.
Below PR changed the super class and caused issue #2380 :
a49a63c#diff-89a2deab37fbf5ef93565148b6137404dea3e6aea900aa0a5e027a98007e76b2L406

This PR fixed this issue and added unit tests for CenterScaleCropd.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@Nic-Ma Nic-Ma changed the title [WIP] 2380 fix inverse issue of CenterScaleCropd transform [WIP] 2380 fix inverse bug of CenterScaleCropd transform Jun 17, 2021
Signed-off-by: Nic Ma <nma@nvidia.com>
@Nic-Ma Nic-Ma changed the title [WIP] 2380 fix inverse bug of CenterScaleCropd transform 2380 fix inverse bug of CenterScaleCropd transform Jun 17, 2021
@Nic-Ma Nic-Ma marked this pull request as ready for review June 17, 2021 02:14
@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Jun 17, 2021

/black

@Nic-Ma Nic-Ma requested review from ericspod, rijobro and wyli June 17, 2021 02:15
Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
@Nic-Ma Nic-Ma merged commit 6e65fe6 into Project-MONAI:dev Jun 17, 2021
@Nic-Ma Nic-Ma deleted the 2380-fix-center-scale-crop branch July 2, 2021 23:38
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.

4 participants