type indicates the type of elements in the matrix and the number of channels in the matrix. It is a series of predefined constants whose naming rules are CV_(number of bits) + (data type) + (number of channels), returned by type() , but the return value is int type, not OpenCV predefined macros (CV_8UC1, CV_64FC1...), which means that what you get with the type function is just an int type value, for example, the value returned by CV_8UC1 is 0, not CV_8UC1 .
The type of main.cpp in stixel-world is the returned value, and case CV_8U is also an int value
https://blog.csdn.net/zang141588761/article/details/50340709
https://blog.csdn.net/liji_digital/article/details/57075169
https://blog.csdn.net/u011484045/article/details/43573797