Automatic Segmentation of Femur Bone Features and Analysis of Osteoporosis