-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
base: geometric
Are you sure you want to change the base?
Conversation
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
for more information, see https://pre-commit.ci
Signed-off-by: YunLiu <[email protected]>
…o flip-geometric
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
There was a problem hiding this 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
Yes, I didn't complete the lazy implementation yet.
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): |
There was a problem hiding this comment.
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.
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]>
This reverts commit 4abaa8e.
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
…to flip-geometric
Signed-off-by: YunLiu <[email protected]>
for more information, see https://pre-commit.ci
Signed-off-by: YunLiu <[email protected]>
Part of #7486
Description
Geometric transform -- Flip
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.