This paper presents the modelling and segmentation with correction of inhomogeneity in magnetic resonance imaging of shoulder. For that purpose a new heuristic is proposed using a morphological method and a pyramidal Gaussian decomposition (Discrete Gabor Transform). After the application of these filters, an automatic segmentation of a bone is possible despite of other semiautomatic methods present in the literature.