The document presents a novel method for medical image segmentation of the hip joint using a combination of top-down and bottom-up approaches, transferring ground truth segmentation from a database of trained images to test images. The methodology utilizes the Hausdorff distance for shape matching and simulated annealing optimization for finding optimal image transformations. This approach aims to improve the accuracy of segmentation by overcoming challenges such as poor contrast and image noise in medical imaging.