- 博客(6)
- 收藏
- 关注
原创 opencv Ptr源码分析
来研究一下opencv中的Ptr类,所谓的智能指针...//////////////////// generic_type ref-counting pointer class for C/C++ objects /////////////////////////*! Smart pointer to dynamically allocated objects. This is
2016-03-24 15:55:15 3636
原创 opencv AutoBuffer源码分析
今天让我们来学习库是如何实现动态维护内存的,方便我们以后自己实现的时候作参考...定义:/*! Automatically Allocated Buffer Class The class is used for temporary buffers in functions and methods. If a temporary buffer is usually small (a
2016-03-24 10:56:45 6899
原创 opencv2.0 saturate_cast<?> 研究
opencv对于强制类型转换写了自己的模板类,我们来研究一下.../////////////// saturate_cast (used in image & signal processing) ///////////////////template static inline _Tp saturate_cast(uchar v) { return _Tp(v); }template
2016-03-06 02:29:21 2443
原创 opencv2.0 DataType 实现
上一篇 opencv2.0 DataType 我们看了DataType的组成,这一篇就来研究一下他们的成员函数。Point_(在operations.hpp里)//7个构造函数template inline Point_::Point_() : x(0), y(0) {}template inline Point_::Point_(_Tp _x, _Tp _y) : x(_x
2016-03-06 01:30:49 1429
原创 opencv2.0 DataType
从2.0开始,opencv采用c++来重写代码,既然是c++,自然少不了模板类,所以DataType是模板类的集合。官方的描述:class DataType¶Template “trait” class for OpenCV primitive data types. A primitive OpenCV data type is one ofunsigned ch
2016-03-05 14:56:01 2081
原创 OpenCV CvMat 初窥
小小研究了一下CvMat里面的宏,发现设计人员对位运算的使用 "别具匠心",值得我们学习!研究结果:/****************************************************************************************\* Matrix type (CvMat)
2016-03-03 02:41:15 1081
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人