A Knowledge Based Technique for Automatic Segmentation of the Hip Femoral Cartilage in CT Images