An automatic color segmentation algorithm with application to identification of skin tumor borders