This article introduced the watershed algorithm for the segmentation, illustrated the segmation process by implementing this algo-rithm. By comparing with another three related algorithm, this article revealed both the advantages and drawbacks of the watershed algorithm.