get binary mask of roi