Toward automatic atlas-based surgical planning for septoplasty