The use of an active appearance model for automated prostate segmentation in magnetic resonance