Problem using connectedComponents() in opencv 3 using Visual Studio 2012 [closed]
Every time I try to use connectedComponents() function of opencv in my program, the execution of the program gets Aborted with error code R6010. This is what i get on the terminal OpenCV Error: Assertion failed (L.channels() == 1 && I.channels() == 1) in connectedComponents_sub1, file /source/opencv-3.0.0/modules/imgproc/src/connectedcomponents.cpp, line 341
similar to findContours(), you need a binary 1 channel image as input
It worked berak. Thanks alot!!!