just do it

与其苟延残喘,不如纵情燃烧

摘要: 图像深度 1 bit : 用一位来存储,那么这个像素点的取值范围就是0或者1,那么我们看来这幅图片要么是黑色要么是白色。 4 bit : 取值范围为0 到 ( 2 的4次方 1 ) 8 bit : 来存储像素点的取值范围为 0 到 ( 2 的8次方 1 ) 以此类推,我们把 计算机存储单个像素点所用 阅读全文
posted @ 2019-05-13 10:31 elong1995 阅读(1258) 评论(1) 推荐(2) 编辑
摘要: error OpenCV(4.0.0) Error: Assertion failed (size.width 0 && size.height 0) in cv::imshow, file C:\build\master_winpack build win64 vc14\opencv\module 阅读全文
posted @ 2019-05-11 11:21 elong1995 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 三种方法 + 迭代器 创建一个Mat::Iterator对象it,通过it=Mat::begin()来的到迭代首地址,递增迭代器知道it==Mat::end()结束迭代; + 指针 调用函数 Mat::ptr(i) 来得到第i行的首地址地址,然后在行内访问像素 + 动态防问at at的使用 gray 阅读全文
posted @ 2019-05-10 21:53 elong1995 阅读(1141) 评论(0) 推荐(0) 编辑
摘要: 内联函数的使用可以避免函数调用的开销 对于以上函数,函数体只有一行,执行起来比求原来的表达还要慢。 在大多数机器上,一次函数调用包含一系列工作:调用前要先保存寄存器,并在返回是恢复;如果需要,可能还要拷贝实参;程序转向一个新的位置继续执行。这些操作由编译器自己完成,将它称为函数调用的基本开销。这就是 阅读全文
posted @ 2019-05-10 21:27 elong1995 阅读(214) 评论(0) 推荐(0) 编辑
摘要: + 其实你我这美梦气数早已尽,重来也是无用 阅读全文
posted @ 2019-05-10 14:42 elong1995 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 学习仿射变换时用到waitKey()实现图片旋转显示 waitKey(30) for(;;){ if (waitKey(30) = 0)//返回30ms内按下的键值,否则返回 1. break; } 其中()内的值表示等待时间(ms),如代码中表示等待30ms,waitKey(30)返回值为30ms 阅读全文
posted @ 2019-05-09 13:13 elong1995 阅读(1277) 评论(0) 推荐(0) 编辑
摘要: 距离⟶范数⟶内积 向量空间+范数⟶ 赋范空间+线性结构⟶线性赋范空间+内积运算⟶内积空间+完备性⟶希尔伯特空间 内积空间+有限维⟶欧几里德空间 赋范空间+完备性⟶巴拿赫空间 见&维基百科 阅读全文
posted @ 2019-05-07 14:48 elong1995 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 读取本地视频&打开摄像头 OpenCV中VideoCapture中有三个构造函数 + VideoCapture(); + VideoCapture(const String& filename, int apiPreference = CAP_ANY); + VideoCapture(int ind 阅读全文
posted @ 2019-05-06 15:13 elong1995 阅读(10496) 评论(0) 推荐(0) 编辑
摘要: + Make English as your working language. + Practice makes perfect. + All experience comes from mistakes. + Don t be one of the leeches. + Either stand 阅读全文
posted @ 2019-05-06 14:39 elong1995 阅读(214) 评论(0) 推荐(0) 编辑
摘要: ``` class Solution { public: vector twoSum(vector& nums, int target) { vector s; if(nums.size()==0&&target==0) { return s; } for(int i=0; i 阅读全文
posted @ 2019-05-06 12:46 elong1995 阅读(88) 评论(0) 推荐(0) 编辑