Skip to content

Geometric transform -- Flip - #7508

Draft
KumoLiu wants to merge 19 commits into
Project-MONAI:geometricfrom
KumoLiu:flip-geometric
Draft

KumoLiu wants to merge 19 commits into
Project-MONAI:geometricfrom
KumoLiu:flip-geometric

Conversation

@KumoLiu

@KumoLiu KumoLiu commented Feb 29, 2024

Copy link
Copy Markdown
Contributor

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 and others added 6 commits March 1, 2024 00:19
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
@KumoLiu KumoLiu added this to the Geometric Transform API milestone Mar 1, 2024
@KumoLiu KumoLiu self-assigned this Mar 1, 2024
KumoLiu added 2 commits March 6, 2024 14:26
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>

@vikashg vikashg left a comment

Copy link
Copy Markdown
Collaborator

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

KumoLiu commented Mar 8, 2024

Copy link
Copy Markdown
Contributor Author

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.



def flip(img, sp_axes, lazy, transform_info):
def flip_image(img, sp_axes, lazy, transform_info):

@atbenmurray atbenmurray Mar 8, 2024 •

Copy link
Copy Markdown
Collaborator

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
1 of 7 tasks
KumoLiu and others added 11 commits May 30, 2024 11:38
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
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 <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

3 participants