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