logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Git常用命令

目录本地分支和远程分支建立追踪关系的三种方式git branchgit pullgit push本地分支和远程分支建立追踪关系的三种方式1、手动建立追踪关系git branch --set-upstream-to=<远程主机名>/<远程分支名> <本地分支名>2、push时建立追踪关系git push -u &...

#git#github
从带时间戳的图像数据集中挑选想要的图像时间戳

#include &lt;iostream&gt;#include &lt;vector&gt;#include &lt;string&gt;#include &lt;set&gt;#include &lt;fstream&gt;#include &lt;opencv2/opencv.hpp&gt;in

相似变换Sim3推导(C++实现)

 C++实现:#include &lt;iostream&gt;#include &lt;opencv2/opencv.hpp&gt;using namespace cv;using namespace std;Mat ComputeSim3(Mat &amp;P1, Mat &amp;P2);// Sim3仿真void main(){Mat p1_

多线程并行

#include <iostream>#include <omp.h>#include <thread>#include <chrono>void print(size_t i) {std::this_thread::sleep_for(std::chrono::milliseconds(3000+i));std::cout << i &

文章图片
#java#开发语言
区域连通算法(C++实现)

#include &lt;iostream&gt;#include &lt;stack&gt;#include &lt;opencv2/opencv.hpp&gt;using namespace std;using namespace cv;void main(){Mat input_img = imread("1.jpg");/

随机数生成(均匀分布、正态分布、C++)

一、生成均匀分布的随机数1. rand生成的随机数在0到RAND_MAX(2147483647)之间,在stdlib中定义,使用 % 结合 / 可生成某个范围内的随机数,但是这里生成的随机数是唯一确定的。#include <iostream>int main () {for (int i = 0; i < 10; ++i) {std::cout << rand() &

(C/C++)(读/写)(二进制文件/文本文件)

C++写二进制文件std::ofstreamfout("a.dat",std::ios::binary);intnNum=20;std::stringstr("Hello,world");fout.write((char*)&amp;nNum,sizeof(int));fout.write(str.c_str(),sizeof(char)*(str.

随机数生成(均匀分布、正态分布、C++)

一、生成均匀分布的随机数1. rand生成的随机数在0到RAND_MAX(2147483647)之间,在stdlib中定义,使用 % 结合 / 可生成某个范围内的随机数,但是这里生成的随机数是唯一确定的。#include <iostream>int main () {for (int i = 0; i < 10; ++i) {std::cout << rand() &

off文件的格式、写入和显示

一、介绍物体文件格式(.off)文件用于表示给定了表面多边形的模型的几何体。这里的多边形可以有任意数量的顶点。普林斯顿形状Banchmark中的.off文件遵循以下标准:1、.off文件为ASCII文件,以OFF关键字开头。 2、下一行是该模型的顶点数,面数和边数。边数可以忽略,对模型不会有影响(可以为0)。3、顶点以x,y,z坐标列出,每个顶点占一行。4、在顶点列表之后是...

利用openssl对数据进行md5加密 (Linux/C++)

一、Linux进行md5加密1、md5加密(1)交互式输入$ opensslOpenSSL> md51234abcd(stdin)= ef73781effc5774100f87fe2f437a435#输入完后按crtl+d三次OpenSSL> md51234abcd(stdin)= 3d7e6a56bd7757aee22a30a1ca75cdd0 #输入完后按回车

    共 15 条
  • 1
  • 2
  • 请选择