-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Maisi morphological funcs #7893
Conversation
Signed-off-by: Can-Zhao <canz@nvidia.com>
Hi @Can-Zhao , do you think it would be too much work to make this a general transform? I think erode/dilate is general medical image operations, which may be used elsewhere. So making this a general utility function or transform may be helpful. |
It's a good idea, but maybe not in this PR... |
Signed-off-by: Can-Zhao <canz@nvidia.com>
Okay, we can make these functions in |
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.
Thanks for the PR, overall looks good to me. Several comments inline.
Hi @Can-Zhao, please help take a look at the format issue: https://github.com/Project-MONAI/MONAI/actions/runs/9754160317/job/26920608008?pr=7893#step:7:387. Thanks! |
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> Signed-off-by: Can Zhao <69829124+Can-Zhao@users.noreply.github.com>
Signed-off-by: Can-Zhao <canz@nvidia.com>
…to maisi_mor_canz
Signed-off-by: Can-Zhao <canz@nvidia.com>
Signed-off-by: Can-Zhao <canz@nvidia.com>
Signed-off-by: Can-Zhao <canz@nvidia.com>
for more information, see https://pre-commit.ci
Signed-off-by: Can-Zhao <canz@nvidia.com>
Signed-off-by: Can-Zhao <canz@nvidia.com>
@KumoLiu Have you met this error? File "/workspace/MONAI/monai/utils/misc.py", line 27, in |
Nevermind, forgot I should do "pip install --upgrade --force-reinstall setuptools" |
Hi @Can-Zhao, please take a look at the ci error: https://github.com/Project-MONAI/MONAI/actions/runs/9755561869/job/26924281793?pr=7893#step:13:19908 |
Signed-off-by: Can-Zhao <canz@nvidia.com>
I'm confused why it cannot import the func. As python -m tests.test_morphological_ops is runnable on my machine. Nevertheless, I changed the way to import. If not working, I will need your help. |
We can leave it here for now. And as @mingxin-zheng said, when we refactored it to inherit Transform next time, we can move it under transforms folder. |
Cool! Then it seems this PR can be merged after passing the tests. Thanks! |
/build |
Fixes # .
Description
Maisi morphological funcs
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.