chore: fix typos (#11467)

* chore: fix typos

Signed-off-by: snoppy <michaleli@foxmail.com>

* Apply suggestions from code review

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>

---------

Signed-off-by: snoppy <michaleli@foxmail.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
Snoppy
2024-06-17 21:27:07 +08:00
committed by GitHub
parent 31d1cd8402
commit 1cfca52db7
4 changed files with 11 additions and 11 deletions

View File

@ -141,7 +141,7 @@ def transform(
center_x, center_y = (x // 2 for x in kernel.shape)
# Use padded image when applying convolotion
# Use padded image when applying convolution
# to not go out of bounds of the original the image
transformed = np.zeros(image.shape, dtype=np.uint8)
padded = np.pad(image, 1, "constant", constant_values=constant)