C++
小鹿( ﹡ˆoˆ﹡ )
这个作者很懒,什么都没留下…
展开
-
(opencv)保存和读取文件、MATLAB将双目标定后的数据转换为.xml文件
一、保存文件#include<opencv2/opencv.hpp>#include<iostream>using namespace std;using namespace cv;#include<vector>//保存.xml文件时需要注意2个问题://1 需要保存的Mat型变量定义时必须要初始化,否则程序编译会出错;//2 保存时变量的标识符命名中不能出现“.”int main(int argc, char* argv[]){ Size.原创 2022-01-18 23:28:23 · 5 阅读 · 0 评论 -
张正友双目标定以及相机内参的含义
#include <iostream>#include <sstream>#include <time.h>#include <stdio.h>#include <string>#include <opencv2/core.hpp>#include <opencv2/core/utility.hpp>#include <opencv2/imgproc.hpp>#include <open.原创 2021-12-22 15:14:17 · 7 阅读 · 0 评论 -
c++中static_cast用法与uchar/char的区别
1、c++中static_cast用法static_cast是指显性类型强制转换,如:int a = static_cast<int>(120.34);结果为a= 120. 和C语言学习时的显性意义一样,但是编译器会对此类型转换进行检查。另外还有3种转换:const属性用const_cast。基本类型转换用static_cast。多态类之间的类型转换用daynamic_cast。不同类型的指针类型转换用reinterpreter_cast。2、uchar与c原创 2022-03-29 23:10:56 · 1360 阅读 · 0 评论 -
Canny边缘检测源码
#include <iostream>#include <opencv2/core.hpp>#include <opencv2/highgui.hpp>#include <opencv2/imgproc.hpp>#include<vector>#include<Eigen/Core>#include <corecrt_math_defines.h>using namespace std;using name.原创 2022-03-24 19:59:06 · 4136 阅读 · 0 评论 -
(C++)数组作为函数参数
#include<iostream>#include<ctime>using namespace std;struct Student{ string name=""; int age=0; double score=0;};struct Teacher{ string name=""; int age=0; Student student[5];};void allocate(Teacher t[],int len){ string tna.原创 2022-01-17 00:00:51 · 1585 阅读 · 0 评论