OpenCV中文网站

 找回密码
 立即注册
搜索
热搜: 安装 配置
查看: 3370|回复: 1

帮忙看看代码错误

[复制链接]
发表于 2008-12-23 09:41:45 | 显示全部楼层 |阅读模式
int result;
    CvMat stubA;
        CvMat *imgA = (CvMat*)arrA;
    CvMat stubB;
        CvMat *imgB = (CvMat*)arrB;
    CvMat pstubA;
        CvMat *pyrA = (CvMat*)pyrarrA;
    CvMat pstubB;
        CvMat *pyrB = (CvMat*)pyrarrB;
    CvSize img_size;


这是函数的一段代码,不知道为什么错了,VC报错为:

error C2143: syntax error : missing ';' before 'type'
error C2275: 'CvMat' : illegal use of this type as an expression
        c:\program files\opencv\cxcore\include\cxtypes.h(574) : see declaration of 'CvMat'
error C2146: syntax error : missing ';' before identifier 'stubA'
error C2065: 'stubA' : undeclared identifier
error C2275: 'CvMat' : illegal use of this type as an expression
        c:\program files\opencv\cxcore\include\cxtypes.h(574) : see declaration of 'CvMat'
error C2065: 'imgA' : undeclared identifier
error C2275: 'CvMat' : illegal use of this type as an expression
        c:\program files\opencv\cxcore\include\cxtypes.h(574) : see declaration of 'CvMat'
error C2146: syntax error : missing ';' before identifier 'stubB'
error C2065: 'stubB' : undeclared identifier
error C2275: 'CvMat' : illegal use of this type as an expression
        c:\program files\opencv\cxcore\include\cxtypes.h(574) : see declaration of 'CvMat'
error C2065: 'imgB' : undeclared identifier
error C2275: 'CvMat' : illegal use of this type as an expression
        c:\program files\opencv\cxcore\include\cxtypes.h(574) : see declaration of 'CvMat'
error C2146: syntax error : missing ';' before identifier 'pstubA'
error C2065: 'pstubA' : undeclared identifier
error C2275: 'CvMat' : illegal use of this type as an expression
        c:\program files\opencv\cxcore\include\cxtypes.h(574) : see declaration of 'CvMat'
error C2065: 'pyrA' : undeclared identifier
error C2275: 'CvMat' : illegal use of this type as an expression
        c:\program files\opencv\cxcore\include\cxtypes.h(574) : see declaration of 'CvMat'
error C2146: syntax error : missing ';' before identifier 'pstubB'
error C2065: 'pstubB' : undeclared identifier
error C2275: 'CvMat' : illegal use of this type as an expression
        c:\program files\opencv\cxcore\include\cxtypes.h(574) : see declaration of 'CvMat'
error C2065: 'pyrB' : undeclared identifier
error C2275: 'CvSize' : illegal use of this type as an expression
        c:\program files\opencv\cxcore\include\cxtypes.h(1025) : see declaration of 'CvSize'

哪位老师可以帮我看看,请赐教!
回复

使用道具 举报

发表于 2008-12-23 12:18:20 | 显示全部楼层

帮忙看看代码错误

1,你的代码太不完整了,请贴完整,而且用code标签。
2,这个问题请发到openCV新兵页面,显然和本版面一点都不符合。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|OpenCV中文网站

GMT+8, 2024-5-2 16:04 , Processed in 0.008376 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表