前言 本文将介绍 OpenCV 中的矩阵结构 CvMat
并提供一些很实用的技巧。CvMat的类型定义 1 typedef struct CvMat 2 { 3 int type; // 数据类型 4 int
step; // 行长度 5 int* refcou...
分类:
其他好文 时间:
2014-05-18 18:54:07
阅读次数:
1771
C#代码如下: public interface IConfigInfo { } public
class A : IConfigInfo { } public class b { void bb(IConfigInfo a) { Type t =
a.GetType(); } }VB.net代码如...
分类:
其他好文 时间:
2014-05-18 18:53:46
阅读次数:
188
package com.dhy.phonedial;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflate...
分类:
移动开发 时间:
2014-05-18 15:58:42
阅读次数:
342
MainActivity如下:
package cc.cn;
import java.util.HashMap;
import org.json.JSONObject;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import com.android.volley....
分类:
移动开发 时间:
2014-05-18 15:18:31
阅读次数:
297
利用d3,js将数据可视化,可以做到数据与代码的分离,方便以后修改数据。
这次利用d3.js绘制了一个五维的雷达图,即将多个对象的五种属性在一张图上对比。
数据写入data.csv、数据类型写入type.csv文件。
效果如下图所示
源码连接:http://download.csdn.net/detail/svap1/7358123
使用是只需调用 radar()函数即可,如...
分类:
Web程序 时间:
2014-05-18 05:55:45
阅读次数:
372
1、 复合数据类型——记录类型
Ø 语法格式
type 类型名 is record (
字段1 字段1类型 [not null]:=表达式1;
字段2 字段2类型 [not null] :=表达式2;
… )
Ø 说明:记录之间相互赋值要求两个记录类型完全相同。
Ø 案例
举例1
--创建表并插入记录...
分类:
数据库 时间:
2014-05-18 05:08:33
阅读次数:
549
MainActivity如下:
package cc.y;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.os.Bundle;
import and...
分类:
移动开发 时间:
2014-05-18 03:54:44
阅读次数:
365
linux中的经典宏定义 offsetof
定义:offsetof在linux内核的include/linux/stddef.h中定义。 #define offsetof(TYPE, MEMBER)
((size_t) &((TYPE *)0)->MEMBER)说明:获得结构体(TYPE)的变量成员...
分类:
系统相关 时间:
2014-05-18 01:30:21
阅读次数:
515
1.为何要引入Partial Type
通常,我们在一个.cs文件中维护一个类,这也是一种一般约定,也算一个良好的编程风格,但是有些时候,这个类或类型非常庞大,这对可读性、维护性来说成了一种约定的限制。
当我们接触过一些 ORM 框架的自动生成代码映射的功能时,会发现,当我们使用工具生成了一些基本....
分类:
其他好文 时间:
2014-05-17 23:01:38
阅读次数:
400
前几天被OpenCV的直方图的数据结构CvHistogram弄得很纠结。上网一搜,也没什么相关的资料。现在有点头绪了,就写点东西,让后面的人好走一些吧。先来看看CvHistogram的定义:typedef
struct CvHistogram{ int type; CvArr* bins; floa...
分类:
其他好文 时间:
2014-05-17 22:55:27
阅读次数:
644