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
I think you should check the channel of the image.Maye it's not grayscaled image.
It is, which is why it is giving an error. It expects a 3 channel image.
I agree this is annoying - even if you can add 2 dummy channels.
I guess I have something to do in the weekend then.. I really need it :P