from typing import Tuple


def calculate_center_coords(
    cell_index: Tuple[int, int], cell_size: Tuple[int, int]
) -> Tuple[int, int]:
    """Calculate cell center coordinates.

    :param cell_index: selected cell index
    :param cell_size: given cell size (height, width)
    :return: given cell center coordinates (y, x)
    """
    y = int(cell_size[0] * (cell_index[0] + 0.5))
    x = int(cell_size[1] * (cell_index[1] + 0.5))
    return y, x