Itseez/opencv — pull request #2392 by hgaiser (2014-02-22 13:15:27+00:00)
Title: 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.