Image processing toolbox of Matlab provides a morphological skeletonization operator. But this function is sensitive to noises. The aliasing shape's skeleton computed by this operator involves many extra branches. In order to eliminate the influence of aliasing noises, a combined method is introduced. The method combines the morphological thinning and skeletonization operators, and takes their advantages. It is not sensitive to noises, and can eliminate the extra branches.