Atlas and snake based segmentation of organs at risk in radiotherapy in head MRIs