Many image registration methods use head surface, brain surface, or inner/outer surface of the skull to estimate rotation and translation parameters. The inner surface of the skull is also used for intracranial volume segmentation which is considered the first step in segmentation and analysis of brain images. The surface is usually characterized by a set of edge or contour points extracted from cross-sectional images. Automatic extraction of contour points is complicated by discontinuity of edges in the back of the eyes and ears and sometimes by a previous surgery or an inadequate field of view. We have developed an automated method for contour extraction that connects discontinuities using a multiresolution pyramid. Steps of the method are: (1) Contour points are found by an edge-tracking algorithm; (2) A multiresolution pyramid of contour points is constructed; (3) Contour points of reduced images are found; (4) From the continuous contour found at the lowest resolution, contour points at a higher resolution are found; (5) Step 4 is repeated until contour points at the highest resolution (original image) are found. The method runs fast and has been successful in extracting contours from MRI and CT images. We illustrate the method and its performance using MRI and CT images of the human brain.