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

Geometric transform -- Flip #7508

Draft
wants to merge 15 commits into
base: geometric
Choose a base branch
from

Conversation

KumoLiu
Copy link
Contributor

@KumoLiu KumoLiu commented Feb 29, 2024

Part of #7486

Description

Geometric transform -- Flip

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 --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@KumoLiu KumoLiu added this to the Geometric Transform API milestone Mar 1, 2024
@KumoLiu KumoLiu self-assigned this Mar 1, 2024
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Copy link

@vikashg vikashg left a comment

Choose a reason for hiding this comment

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

Hi @KumoLiu
The code looks good to me. However, it will be nice to maintain a Jupyter notebook where we can test it from a user perspective along with some sample data and annotations.
I went through the code and it looks compatible to me (although, I will admit I have a limited understanding of the lazy implementation).
So, if you can start a sample notebook along with the pull request it will be easier for me to review and test failures.

Same goes for the other pull request.
Thank you
Vikash

@KumoLiu
Copy link
Contributor Author

KumoLiu commented Mar 8, 2024

although, I will admit I have a limited understanding of the lazy implementation

Yes, I didn't complete the lazy implementation yet.

if you can start a sample notebook along with the pull request it will be easier for me to review and test failures.

Yes, can add one, and also, I added some unittests.

@@ -229,7 +240,7 @@ def orientation(img, original_affine, spatial_ornt, lazy, transform_info) -> tor
return out.copy_meta_from(meta_info) if isinstance(out, MetaTensor) else out # type: ignore


def flip(img, sp_axes, lazy, transform_info):
def flip_image(img, sp_axes, lazy, transform_info):
Copy link
Contributor

@atbenmurray atbenmurray Mar 8, 2024

Choose a reason for hiding this comment

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

Same deal as with #7509. We should pull flip implementation out of flip_image and flip_geom.

@atbenmurray atbenmurray mentioned this pull request Apr 11, 2024
7 tasks
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Fixes Project-MONAI#7703 


### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] 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 --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

None yet

3 participants