Gadolinium enhancement on the magnetic resonance imaging scan was quantified in both the femoral head and head-neck junction by volumetric analysis using custom magnetic resonance imaging analysis software .