opencv3 图像处理(一)图像缩放( python与c++ 实现)
摘要:opencv3 图像处理 之 图像缩放( python与c++实现 ) 一. 主要函数介绍 1) 图像大小变换 Resize () 原型: 说明: src 表示输入图像。 dst表示输出图像。 intinterpolation插值方法,有以下四种: CV_INTER_NN 最近邻插值, CV_INT
阅读全文
posted @
2018-01-05 16:02
o(∩_∩)o...
阅读(12547)
推荐(1)
ubuntu 编译运行 opencv C++ 项目
摘要:ubuntu 编译运行 opencv C++ 项目 环境 ubuntu 16.04 opencv3.4.0 一、 编译方法 1)命令行 g++ imageResize.cpp o resize 或者 g++ $(pkg config cflags libs opencv) imageResize.c
阅读全文
posted @
2018-01-05 15:58
o(∩_∩)o...
阅读(4463)
推荐(0)
C++的类型转换函数
摘要:C++的类型转换函数 reinterpret_cast、const_cast、static_cast和dynamic_cast 前三个类型转换是在编译时实现转换,dynamic_cast是在运行时进行类型转换的。 reinterpret_cast(expression) const_cast( ex...
阅读全文
posted @
2012-06-28 23:03
o(∩_∩)o...
阅读(3613)
推荐(0)
链表
摘要:#include "stdafx.h" #include #include #include #include using namespace std; const int MAX_SIZE = 256; struct node { char *str; struct...
阅读全文
posted @
2012-01-10 00:49
o(∩_∩)o...
阅读(218)
推荐(0)
c++ 从文件中读取字符串 按字典排序 并统计个数
摘要:#include #include #include #include #include #include #include using namespace std; const int MAX_SIZE = 40; void GetWords(vector &vec) { char ...
阅读全文
posted @
2012-01-06 00:07
o(∩_∩)o...
阅读(3222)
推荐(0)
c++ 字典排序 并统计字符串个数
摘要:#include #include #include #include #include #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { vector vec; vec.push_back("Thi...
阅读全文
posted @
2012-01-05 23:35
o(∩_∩)o...
阅读(2903)
推荐(0)
c/c++ 字符串分割 (strtok)
摘要:int main() { vector strvec; char str[] ="addd,bs,cgwg, we;f d*e"; const char * split = ",* ;"; char * p; p = strtok (str,split); while(p!=NULL) { stri...
阅读全文
posted @
2012-01-05 23:31
o(∩_∩)o...
阅读(2996)
推荐(0)
【转】函数指针与指针传参
摘要:1.函数指针 函数指针形式说明如下: (*指针变量名)(); 其调用格式如下所示: int max(int x,int y); //定义函数max int (*funcp)();//定义返回值为整型的函数指针 funcp=max;//将函数名(函数入口地址)传给funcp,使其指向函数 //上两行代...
阅读全文
posted @
2011-01-09 12:36
o(∩_∩)o...
阅读(1265)
推荐(0)
C/C++结构体总结(一)
摘要:1 #include"iostream" 2 usingnamespacestd; 3 4 structTestStruct 5 ...
阅读全文
posted @
2010-11-29 20:25
o(∩_∩)o...
阅读(20120)
推荐(1)
C/C++ 位操作 总结
摘要:1 2 #include<bitset> 3 #include<iostream> 4 #include<string> 5 #include<limits> 6 ...
阅读全文
posted @
2010-11-20 00:00
o(∩_∩)o...
阅读(389)
推荐(0)