博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Modern C++ Course [Lecture 9] {Templates, Iterators, Exceptions, Program input parameters, OpenCV}
阅读量:5075 次
发布时间:2019-06-12

本文共 1370 字,大约阅读时间需要 4 分钟。

 

 

 

 GP is a kind of programming that will generate code for you at compile time.

The core is to seperate algorithms from the data structure, and we do some abstraction over a data structure,

and then work with that abstraction instead of the actually type.

 

 

template errors are insanely big.

Vector is a template class.

 

 

 

 

 

 

 

 

 

http://en.cppreference.com/w/cpp/language/class_template

http://www.drdobbs.com/moving-templates-out-of-header-files/184403420

 

method 1:(Declare and define in header files) if declare and define both in header file, then we dont need to link files. (header on the library)

method 2:(Declare in NAME.h file) hpp is just a habit of naming such a file, and #include just means add those content of hpp file into header file

method3 : /

 

 

 

 

 

func .find in map object

 line 15 is an efficient way to check if 3 in map

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  

line 3-8: the first template

line 10-11: the 2nd template

 

question: what's the meaning of "::" in line 15? 

 

 

free BSD license:

free for commercial or non-commercial

 

 

 

 

 

 

 

 

 exr is an open format to store data, and opencv supports it

 

 

 

 

My implementation:

 

 Gotcha!

 

 

 

 

 

 

 

line3 type: unsigned char 3 channels

and  line 11 is: float 1 channel

 

 

 

now DNN is a new and better descriptor but it's slower.

 

 

 

build a KD tree and query for neighbor, much faster than brute force search 

 

 

 

SIFT is non free, and is in libopencv-nonfree

 

 

 

 

 

转载于:https://www.cnblogs.com/ecoflex/p/10213975.html

你可能感兴趣的文章
android中的Context类
查看>>
【转载】Jmeter接口测试+压力测试
查看>>
二分查找【转】
查看>>
05:派
查看>>
二维码生成与读取
查看>>
持久层框架之MyBatis
查看>>
用 Navicat 写mysql的游标
查看>>
HTML 标签说明
查看>>
机器学习 目标函数,损失函数
查看>>
r-cnn学习(二)
查看>>
第五章703N 刷openwrt 挂载u盘
查看>>
java之迭代器
查看>>
Postgresql源码分析: 动态Hash
查看>>
jsp中c:forEach自动添加序号和日期格式的设置
查看>>
洛谷 P4114 Qtree1
查看>>
谈一下自己收集资料和整理资料的经验
查看>>
bash shell
查看>>
Android Accessibility辅助功能类的学习
查看>>
编程书籍推荐
查看>>
WdatePicker 控件使用
查看>>