cv::watershed now also accepts CV_8UC1 images

cv::watershed only accepted CV_8UC3 images, but I usually want to perform watershed transform on grayscale images. These small changes allow watershed to accept CV_8UC1 images.