前言 本文将介绍 OpenCV 中的矩阵结构 CvMat
并提供一些很实用的技巧。CvMat的类型定义 1 typedef struct CvMat 2 { 3 int type; // 数据类型 4 int
step; // 行长度 5 int* refcou...
分类:
其他好文 时间:
2014-05-18 18:54:07
阅读次数:
1771
#ifndef __APP_WEBSOCKET_FRAME_H__
#define __APP_WEBSOCKET_FRAME_H__
#include "memory.hpp"
class buffer;
struct websocket_frame
{
websocket_frame();
~websocket_frame();
static const unsigned int f...
分类:
Web程序 时间:
2014-05-18 09:37:29
阅读次数:
332
class、interface、struct的区别...
分类:
其他好文 时间:
2014-05-18 04:04:55
阅读次数:
367
>__ 2 // C 运行时头文件 3 #include 4 #include 5
#include 6 #include 7 #include 8 #include 9 10 11 //定义结构,飞机子弹 12 struct BULLET{
13 int x...
前几天被OpenCV的直方图的数据结构CvHistogram弄得很纠结。上网一搜,也没什么相关的资料。现在有点头绪了,就写点东西,让后面的人好走一些吧。先来看看CvHistogram的定义:typedef
struct CvHistogram{ int type; CvArr* bins; floa...
分类:
其他好文 时间:
2014-05-17 22:55:27
阅读次数:
644
先序遍历和中序遍历非递归代码:#include #include using
namespace std;typedef struct BinaryTree { int data; struct BinaryTree *rchild,
*lchild;}BinaryTree;int cr...
分类:
其他好文 时间:
2014-05-17 21:56:50
阅读次数:
264
线段树中对一段区间操作的方法----记录增量。详细实现见代码。还要好好体会! 1 //Accepted
6688K 1485MS 2 #include 3 #include 4 #define imax 100005 5 struct node 6 { 7 int
l...
分类:
其他好文 时间:
2014-05-17 21:18:35
阅读次数:
312
1 //Accepted 2384K 1766MS 2 #include 3 #include
4 #define imax 50005 5 struct node 6 { 7 int l,r; 8 int tmax,tmin; 9
}f[3*imax];10 in...
分类:
其他好文 时间:
2014-05-17 21:16:33
阅读次数:
281
1 //Accepted 250MS 2480K 2 #include 3 #include 4
const int MAXN = 50005; 5 struct node 6 { 7 int l,r; 8 int add,sum; 9
}f[3*MAXN];10 int n;...
分类:
其他好文 时间:
2014-05-17 20:36:37
阅读次数:
316
#include //#include #include #define PORT 5150
#define DATA_BUFSIZE 8192 typedef struct { OVERLAPPED Ov...
分类:
其他好文 时间:
2014-05-17 18:37:33
阅读次数:
297