1.opencv 3.0之后 CV_RGB2GRAY 改成 COLOR_RGB2GRAY
2.CV_[位数][带符号与否][类型前缀]C[通道数]
3.point 类 Point p;p.x=1;p.y=2; Point2f p(1,2),定义二维点
4.Scalar(a,b,c)颜色表示,红色为C 绿色为b 蓝色为a
5.计算程序运行时间
double time0=static_cast(getTickCount());
time0=((double)getTickCount()-time0);
6.访问图片的像素
Mat test(3,3,8UC1);
uchar *data=test.ptr(0)[1];
//指向第一行第二个元素的地址
7 ORB
1.KeyPoint 是一个存放角点的数据类
cv::KeyPoint::KeyPoint ( float x,
float y,
float _size,
float _angle = -1,
float _response = 0,
int _octave = 0,
int _class_id = -1
)
descriptorMatcherType Descriptor matcher type. Now the following matcher types are supported:
BruteForce (it uses L2 )//暴力匹配
BruteForce-L1
BruteForce-Hamming
BruteForce-Hamming(2)
FlannBased
1.特征点提取
Ptr FeatureDetector::create(const string& detectorType)
2.特征描述符提取
Ptr