-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Generalize SobelGradients to 3D and Any Axis
#5189
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
Conversation
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
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 your update, it looks good to me now!
wyli
left a comment
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.
perhaps this need some refactoring for 3d as well
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
…update-sobel-direction
|
Hi @drbeh, Thanks! |
@drbeh and I were discussing this in another thread, opencv uses the separable implementation |
|
Sorry - inadvertantly closed the PR |
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
b126b91 to
7eb6ae5
Compare
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
SobelGradients to include directionSobelGradients to 3D and Any Axis
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
wyli
left a comment
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.
The api looks good to me
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
|
/black |
|
/build |
|
/build |
Fixes #5188 ### Description This PR reimplement `SobelGradients` and `SobelGradientsd` using separable kernels and generalize it to images with any spatial dimension (2D, 3D, etc.) and option to calculate the gradient along any given axis. ### 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). - [x] New tests added to cover the changes. - [x] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [x] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [x] In-line docstrings updated. Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com> Signed-off-by: KumoLiu <yunl@nvidia.com>
Fixes Project-MONAI#5188 ### Description This PR reimplement `SobelGradients` and `SobelGradientsd` using separable kernels and generalize it to images with any spatial dimension (2D, 3D, etc.) and option to calculate the gradient along any given axis. ### 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). - [x] New tests added to cover the changes. - [x] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [x] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [x] In-line docstrings updated. Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com> Signed-off-by: Yiheng Wang <vennw@nvidia.com>
Fixes Project-MONAI#5188 ### Description This PR reimplement `SobelGradients` and `SobelGradientsd` using separable kernels and generalize it to images with any spatial dimension (2D, 3D, etc.) and option to calculate the gradient along any given axis. ### 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). - [x] New tests added to cover the changes. - [x] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [x] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [x] In-line docstrings updated. Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com> Signed-off-by: Yiheng Wang <vennw@nvidia.com>



Fixes #5188
Description
This PR reimplement
SobelGradientsandSobelGradientsdusing separable kernels and generalize it to images with any spatial dimension (2D, 3D, etc.) and option to calculate the gradient along any given axis.Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.