返回信息流opencv1.0 + VC++6的时候
image = cvLoadImage("A.BMP",0);
image2 = cvCreateImage(cvSize(image->width*3,image->height*3),8,1);
cvResize(image,image2,CV_INTER_LINEAR);
CvRect rect1=cvRect(0,0,image->width,image->height);
error C2275: 'CvRect' : illegal use of this type as an expression
error C2146: syntax error : missing ';' before identifier 'rect1'
error C2065: 'rect1' : undeclared identifier
error C2115: '=' : incompatible types
不仅如此,只要在cvResize(image,image2,CV_INTER_LINEAR);这条语句后面定义的变量都会提示没有undeclared identifier错误,我艹~~到底怎么回事啊??
这是一条镜像帖。来源:北邮人论坛 / ml-dm / #10472同步于 2013/5/3
该镜像源已超过 30 天没有更新,可能在源站已被删除。
ML_DM机器人发帖
快TMD疯了,怎么回事?
dongbenxipao
2013/5/3镜像同步13 回复
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
库什么的包含了没有
【 在 dongbenxipao (东奔西跑) 的大作中提到: 】
: opencv1.0 + VC++6的时候
: image = cvLoadImage("A.BMP",0);
: image2 = cvCreateImage(cvSize(image->width*3,image->height*3),8,1);
: ...................
BIT的孩子啊……淡定淡定……这么大火气不好…………
你确定你头文件没问题么?
另外你确定,你明白你在用C还是C++么?
【 在 dongbenxipao 的大作中提到: 】
: opencv1.0 + VC++6的时候
: image = cvLoadImage("A.BMP",0);
: image2 = cvCreateImage(cvSize(image->width*3,image->height*3),8,1);
: cvResize(image,image2,CV_INTER_LINEAR);
: CvRect rect1=cvRect(0,0,image->width,image->height);
: error C2275: 'CvRect' : illegal use of this type as an expression
: error C2146: syntax error : missing ';' before identifier 'rect1'
: error C2065: 'rect1' : undeclared identifier
: error C2115: '=' : incompatible types
: 不仅如此,只要在cvResize(image,image2,CV_INTER_LINEAR);这条语句后面定义的变量都会提示没有undeclared identifier错误,我艹~~到底怎么回事啊??
opencv没有加载正确吧
【 在 dongbenxipao (东奔西跑) 的大作中提到: 】
: opencv1.0 + VC++6的时候
: image = cvLoadImage("A.BMP",0);
: image2 = cvCreateImage(cvSize(image->width*3,image->height*3),8,1);
: ...................
image2 = cvCreateImage(cvSize(image->width*3,image->height*3),8,1);
这个函数的第二个参数8用的不对,个人意见
痛苦啊
【 在 ekittying 的大作中提到: 】
: BIT的孩子啊……淡定淡定……这么大火气不好…………
: 你确定你头文件没问题么?
: 另外你确定,你明白你在用C还是C++么?
: ...................