Knowledge-based image processing with application to the landmarking of cephalograms