Generalize SobelGradients to 3D and Any Axis#5189
Conversation
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
wyli
left a comment
There was a problem hiding this comment.
perhaps this need some refactoring for 3d as well
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
…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 <[email protected]>
b126b91 to
7eb6ae5
Compare
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
Signed-off-by: Behrooz <[email protected]>
SobelGradients to include directionSobelGradients to 3D and Any Axis
Signed-off-by: Behrooz <[email protected]>
|
/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 <[email protected]> Signed-off-by: KumoLiu <[email protected]>
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 <[email protected]> Signed-off-by: Yiheng Wang <[email protected]>
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 <[email protected]> Signed-off-by: Yiheng Wang <[email protected]>



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.