connectedComponents() not working
I have problem using connectedComponents() .Error shows at line 341
My magic crystal balls tells me that the type of your matrix is wrong. Do you pass an image with multiple channels (e.g. CV_8UC3). How do you create or load your image?
Asked: 2016-08-17 05:58:24 -0600
Seen: 618 times
Last updated: Aug 17 '16
aaannd the error is ?
please also show, how you try to call it !
connectedComponents(image, labels, connectivity=8, type=CV_32S) ,show error at this line of connectedcomponents.cpp ( CV_Assert(L.channels() == 1 && I.channels() == 1);)