Compute offset between ground-truth and fg masks