题意:在一条布满地雷的路上,你现在的起点在1处。在N个点处布有地雷,1 7 #include 8 #include 9 #include10 #include11 using namespace std;12 13 struct Matrix14 {15 double mat[2][2];1...
分类:
其他好文 时间:
2015-04-08 00:38:28
阅读次数:
159
col 列名 for(mat) 格式 :可对列进行格式化(a100 是针对varchar 的格式,显示100个字符,可以a60,a80),
例如:col file_name format a100;
col 列名:显示当前列的格式
clear column:清除所有列的格式
//主機名
HOST HOSTNAME;
//幫助
HELP INDEX;
//顯示當前環境變量值
SHOW...
分类:
数据库 时间:
2015-04-07 10:02:52
阅读次数:
176
execexec语句用来执行储存在字符串或文件中的Python语句, 我们可以运行一个包含Python语句的字符串>>> exec "print 'Hello Python'"Hello Python但是exec可能会干扰Python语句的命名空间, 从而影响到原来的函数运行>>> from mat...
分类:
其他好文 时间:
2015-04-06 17:13:00
阅读次数:
101
这次使用的是经典教材——冈萨雷斯 数字图像处理(第二版)
P152-154 4.5同态滤波器 附上下载地址http://dl.dbank.com/c0atzs7h2g#
理论部分就不叨叨了,直接上代码,写的感觉有点问题,求指导。void HomoFilter(Mat srcImg, Mat &dst)
{
srcImg.convertTo(srcImg, CV_64FC1);
dst...
分类:
其他好文 时间:
2015-04-04 10:45:32
阅读次数:
191
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2015-03-31 17:40:27
阅读次数:
114
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2015-03-31 17:29:00
阅读次数:
100
用load函数导入mat文件大家都会。可是今天我拿到一个数据,文件后缀名竟然是‘.data’。该怎么读呢?我仅仅好用matlab界面Workspace区域的“import data”button手工导入该文件。恩,还好,竟然成功了。顺便提一下,这个“import data”button功能非常强大,...
分类:
其他好文 时间:
2015-03-31 14:33:36
阅读次数:
100
OpenCV学习(2)--cv::Mat转化为QImage...
分类:
其他好文 时间:
2015-03-31 06:50:05
阅读次数:
148
#include #include "highgui.h"#include "cv.h"#include "cxcore.h"#include "math.h"using namespace std;using namespace cv;//绘制1维直方图Mat draw1DHistogram(Ma...
分类:
其他好文 时间:
2015-03-30 22:48:37
阅读次数:
270
本文结合OpenCV的CSV风格格式化输出与流缓冲重定向,比较巧妙地实现了“将Mat 矩阵数据存储到CSV文件”功能;同时我自己写了read_csv函数,实现了从CSV文件读取数据到Mat矩阵中的功能。...
分类:
其他好文 时间:
2015-03-30 09:32:18
阅读次数:
1767