What's the difference between cvtype values in OPENCV?

后端 未结 3 1752
太阳男子
太阳男子 2020-12-05 07:11

I tried a lot of constant values but I cannot find any difference between cvtype values. What is it used for? I tried values like CV_8UC4 and CV_16S

3条回答
  •  暖寄归人
    2020-12-05 08:08

    The naming sheme for the types is CV_{U|S|F}C.

    So CV_8UC4 translates to: four channels of unsigned char and CV_16S translates to: 1 channel of signed 2-byte integer.

    Of course the topic is handled in the documentation. Here you can find more information.

提交回复
热议问题