def onedim_conversion(length_or_speed: float, mm_per_pixel: float):
    """
    :param length_or_speed: in [px] or [px/s]
    :param mm_per_pixel: in [mm/px]
    :return: length i [mm] or speed in [mm/s]
    """
    return length_or_speed * mm_per_pixel