type of mat in opencv

 

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325126613&siteId=291194637