无法使用CV_32UC1 [英] Can not use CV_32UC1

查看:849
本文介绍了无法使用CV_32UC1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在矩阵中存储32位无符号整数。

I need to store 32 bit unsigned integers in a matrix.

当我尝试创建矩阵时:

Mat frameV(frameT1.rows-2*R, frameT1.cols-2*R, CV_32UC1 );

这会导致编译错误:

error C2065: 'CV_32UC1' : undeclared identifier

我需要CV_32UC1。

Although CV_8UC1 works but I need CV_32UC1.

我使用MSVC 2010和OpenCV 2.4.3。

I am using MSVC 2010 and OpenCV 2.4.3.

推荐答案

没有类型 CV_32UC1 。这是因为OpenCV不支持32位 unsigned int 类型。 OpenCV支持的最大整数类型是可由 CV_32SC1 指定的32位 int

There is no such type as CV_32UC1. This is because OpenCV does not support 32 bit unsigned int type. The largest integral type supported by OpenCV is 32 bit int which can be specified by the CV_32SC1.

这篇关于无法使用CV_32UC1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆