first working version of fov_segmentation