delta.utilities.stitch_pic

delta.utilities.stitch_pic(results: ndarray[Any, dtype[Any]], loc_y: List[Tuple[int, int]], loc_x: List[Tuple[int, int]]) ndarray[Any, dtype[Any]]

Stitch segmentation back together from the windows of create_windows()

Parameters
results3D array

Segmentation outputs from the seg model with dimensions (nb_of_windows, target_size[0], target_size[1])

loc_ylist

List of lower and upper bounds for windows over the y axis

loc_xlist

List of lower and upper bounds for windows over the x axis

Returns
stitch_norm2D array

Stitched image.