components = connected_components(mask) tumor_mask = select_component( components, recist_line )