Assessment of the 3-D shape and mechanics of the proximal femur using a shape template and a bone mineral density image