Added Defaults to calc_tiles_min_overlap for overlap and round

Added tests for min_overlap and even_split tile gen
This commit is contained in:
skunkworxdark
2023-12-08 18:16:13 +00:00
parent cd15d8b7a9
commit fed2bdafeb
2 changed files with 238 additions and 2 deletions

View File

@ -159,7 +159,7 @@ def calc_tiles_even_split(
def calc_tiles_min_overlap(
image_height: int, image_width: int, tile_height: int, tile_width: int, min_overlap: int, round_to_8: bool
image_height: int, image_width: int, tile_height: int, tile_width: int, min_overlap: int = 0, round_to_8: bool = False
) -> list[Tile]:
"""Calculate the tile coordinates for a given image shape under a simple tiling scheme with overlaps.