mirror of
https://github.com/qurator-spk/sbb_binarization.git
synced 2025-06-07 19:35:04 +02:00
Improved formatting
This commit is contained in:
parent
1baa70e382
commit
1c7e8c5e21
1 changed files with 1 additions and 8 deletions
|
@ -81,14 +81,7 @@ class SbbBinarizer:
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
cv2.imwrite(str(save_path), full_image)
|
cv2.imwrite(str(save_path), full_image)
|
||||||
|
|
||||||
def _patches_to_image(
|
def _patches_to_image(self, patches: np.ndarray, image_height: int, image_width: int, patch_height: int, patch_width: int):
|
||||||
self,
|
|
||||||
patches: np.ndarray,
|
|
||||||
image_height: int,
|
|
||||||
image_width: int,
|
|
||||||
patch_height: int,
|
|
||||||
patch_width: int
|
|
||||||
):
|
|
||||||
height = math.ceil(image_height / patch_height) * patch_height
|
height = math.ceil(image_height / patch_height) * patch_height
|
||||||
width = math.ceil(image_width / patch_width) * patch_width
|
width = math.ceil(image_width / patch_width) * patch_width
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue