Image segmentation: a watershed transformation algorithm