上一页 1 ··· 5 6 7 8 9
摘要: 在项目程序中经常看到动态链接库,非常好奇,想自己实现一下,于是乎尝试一波。就因为这种好奇,每天都被bug所困扰。。。 1. 训练caffemodel 在windows环境下搭建caffe无果,转投Ubuntu。。。 用的caffe--example--mnist中的文件,新建文件夹的话注意改路径,下 阅读全文
posted @ 2021-10-03 21:17 湾仔码农 阅读(102) 评论(0) 推荐(0)
摘要: 源码: BitwiseAnd //dst = src1 & src2 public static void BitwiseAnd(InputArray src1, InputArray src2, OutputArray dst, InputArray mask = null); 是对二进制数据进行 阅读全文
posted @ 2021-09-17 21:04 湾仔码农 阅读(354) 评论(0) 推荐(0)
摘要: 看项目代码时,发现了Rect的神奇用法,rect = rect + point。于是了解了一下Rect类。 1. 构造函数 public Rect(Point location, Size size); public Rect(int x, int y, int width, int height) 阅读全文
posted @ 2021-09-17 21:02 湾仔码农 阅读(1047) 评论(0) 推荐(0)
摘要: 1. 查找轮廓 FindContours public static void FindContours(InputOutputArray image, //输入8-bit单通道的图片 out Mat[] contours, //一组数组,contours[i]是一条轮廓,而contours[i][ 阅读全文
posted @ 2021-09-17 20:48 湾仔码农 阅读(723) 评论(0) 推荐(0)
摘要: 1. 创建一个数组 1.1 使用构造函数 cv::Mat a; //默认构造函数 cv::Mat b = cv::Mat(); //默认构造函数 cv::Mat c = cv::Mat(3, 3, CV_8UC1); //指定类型的二维数组 cv::Mat d = cv::Mat(cv::Size( 阅读全文
posted @ 2021-08-29 18:43 湾仔码农 阅读(3619) 评论(0) 推荐(0)
摘要: 1. 设计思想 智能指针是行为类似于指针的类对象,但这种对象还有其他功能。首先,看下面的函数: void remodel(std::string & str) { std::string * ps = new std::string(str); ... if (weird_thing()) thro 阅读全文
posted @ 2021-08-28 18:14 湾仔码农 阅读(319) 评论(0) 推荐(0)
摘要: 引用是变量的别名。也就是说,它是某个已存在变量的另一个名字。一旦把引用初始化为某个变量,就可以使用该引用名称或变量名称来指向变量。 1.创建引用 int i = 0; int& r = i;//r是一个出初始化为i的整型引用,r和i的内存地址是相同的。 2. 引用和指针的区别 引用和指针很像,它们都 阅读全文
posted @ 2021-07-17 18:07 湾仔码农 阅读(76) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9