原创 尋vector的極值
#include <vector> #include <algorithm> #include <iostream> int main() { std::vector<double> v{ 1.0, 2.0, 3.0,
原创 讀取txt文件中的三維座標,並且存儲在vector中,並將vector轉化爲二維數組
/* * 程序目標:讀取txt文件中的座標,並且存儲在vector、矩陣和數組中 * * 摘要: *1.這篇文章包含兩個基礎內容,文件流操作和vector操作,可以參考下面兩篇文章: *2.文件流操作:https://blog.csdn
原创 opencv 將視頻批量保存爲每幀圖片
#include <opencv2/opencv.hpp> #include <tchar.h> #include <stdio.h> #include <iostream> #include <math.h> #inclu
原创 雙目三維重建/基於opencv的BM法,匹配兩幅圖像,並將三維點保存爲txt文件
/* 使用matlab標定工具箱得到的相機參數*/ /* 兩張圖片尺寸,640*360. 下載地址 https://download.csdn.net/download/qq_41862779/10750370 */ #includ
原创 c++/逐行讀取txt文件
#include <fstream> #include <string> #include <iostream> using namespace std; int main() { ifstream in("1.txt