Skip to content

Commit d8be8f4

Browse files
authored
Update backend.py
1 parent b20e4dc commit d8be8f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

APP-GUI/backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ def local_thresholding(self, grayscale_image, threshold_algorithm, kernel_size=5
22452245
thresholded_window, _, _ = threshold_algorithm(window)
22462246
thresholded_image[
22472247
i : i + (kernel_size // 2), j : j + (kernel_size // 2)
2248-
] = thresholded_window[(kernel_size//2)+1: ,(kernel_size//2)+1:]
2248+
] = thresholded_window[(kernel_size//2): -1 ,(kernel_size//2):-1]
22492249

22502250
return thresholded_image
22512251

0 commit comments

Comments
 (0)