将Mat存储到vector<mat>中的报错

本文探讨了在C++中使用无限循环时遇到的具体错误,该错误发生在mat.inl.hpp文件中。通过分析代码片段for(;;){all.push_back(tempMat[i]);}

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

for( ; ; )

{

all.push_back(tempMat[i]);

}

报错如下:

中断发生在mat.inl.hpp中,如图

有懂的吗,请指教! 

/home/emb666/Desktop/loongxin_brk/src/Global/Global.hpp:23:9: error: 'Mat' does not name a type Mat *bin_frame; // 二值化图像的指针 ^~~ /home/emb666/Desktop/loongxin_brk/src/Global/Global.hpp:24:9: error: 'Mat' does not name a type Mat *canny_frame; // Canny 边缘检测图像的指针 ^~~ /home/emb666/Desktop/loongxin_brk/src/Global/Global.hpp:25:9: error: 'Mat' does not name a type Mat *grayscale_frame; // 灰度图像的指针 ^~~ /home/emb666/Desktop/loongxin_brk/src/Global/Global.hpp:27:9: error: 'Point' does not name a type; did you mean 'uint'? Point left_start_pos; // 左线条的起点 ^~~~~ uint /home/emb666/Desktop/loongxin_brk/src/Global/Global.hpp:28:9: error: 'Point' does not name a type; did you mean 'uint'? Point right_start_pos; // 右线条的起点 ^~~~~ uint /home/emb666/Desktop/loongxin_brk/src/Global/Global.hpp:29:9: error: 'Point' does not name a type; did you mean 'uint'? Point left_end_pos; // 左线条的终点 ^~~~~ uint /home/emb666/Desktop/loongxin_brk/src/Global/Global.hpp:30:9: error: 'Point' does not name a type; did you mean 'uint'? Point right_end_pos; // 右线条的终点 ^~~~~ uint /home/emb666/Desktop/loongxin_brk/src/Global/Global.hpp:32:9: error: 'vector' does not name a type; did you mean 'perror'? vector<Point> *left_line_contours; // 左线条的轮廓点集合指针 ^~~~~~ perror /home/emb666/Desktop/loongxin_brk/src/Global/Global.hpp:33:9: error: 'vector' does not name a type; did you mean 'perror'? vector<Point> *right_line_contours; // 右线条的轮廓点集合指针 ^~~~~~ perror /home/emb666/Desktop/loongxin_brk/src/Global/Global.hpp:48:12: error: 'vector' does not name a type; did you mean 'perror'? extern vector<Point> gTestRightPointContours;
最新发布
03-27
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值