Skip to content

Commit cca256a

Browse files
committed
feat(image): add utils submodule
1 parent 387c052 commit cca256a

8 files changed

Lines changed: 484 additions & 181 deletions

File tree

‎VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.11.2
1+
0.12

‎src/vicentin/image/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
from . import differentiation
2+
from . import regularization
3+
from . import utils

‎src/vicentin/image/differentiation/diff.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def sobel(
116116
Computes image gradients using the Sobel operator.
117117
118118
The Sobel operator calculates the gradient approximation by convolving the image with
119-
two $3 \times 3$ kernels. These kernels emphasize high-frequency changes (edges) while providing
119+
two $3 \\times 3$ kernels. These kernels emphasize high-frequency changes (edges) while providing
120120
slight Gaussian smoothing orthogonal to the derivative direction to reduce noise.
121121
122122
Kernels:
@@ -218,7 +218,7 @@ def grad(
218218

219219
def laplacian(
220220
img: Any,
221-
method: Optional[str] = None,
221+
method: Optional[str] = "direct",
222222
boundary: Optional[str] = "reflect",
223223
backend: Optional[str] = None,
224224
) -> Any:

‎src/vicentin/image/utils.py‎

Lines changed: 0 additions & 178 deletions
This file was deleted.

‎src/vicentin/image/utils/__init__.py‎

Whitespace-only changes.

0 commit comments

Comments
 (0)