Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Watershed on gray image

Hello,

I am trying to perform the watershed transform on a grayscaled image (edge map, to be precise), but the opencv implementation of watershed gives me the error that my image is not in 3 dimensions.

segmentation.cpp:147: error: (-210) Only 8-bit, 3-channel input images are supported in function cvWatershed

Why would this not be supported? Should I modify the watershed algorithm or implement my own based on grayscale images?

Best regards, Hans