CvMat的矩阵结构 1 typedef struct CvMat 2 { 3 //矩阵中元素的类型 4 int type; 5 //行数据长度 6 int step; 7 8 /* for internal use only */ 9 int* r...
分类:
其他好文 时间:
2014-07-16 20:17:24
阅读次数:
187
var str='1250' ; alert( Number(str) ); //得到1250 alert(parseInt(str)); //得到1250var str1='00100'; alert( Number(str1) ); //得到100 alert(parseInt(str1)...
分类:
Web程序 时间:
2014-07-16 19:45:21
阅读次数:
151
1.Mat基础在计算机内存中,数字图像是已矩阵的形式保存的。OpenCV2中,数据结构Mat是保存图像像素信息的矩阵,它主要包含两部分:矩阵头和一个指向像素数据的矩阵指针。矩阵头主要包含,矩阵尺寸、存储方法、存储地址和引用次数等。矩阵头的大小是一个常数,不会随着图像的大小而改变,但是保存图像像素数据...
分类:
其他好文 时间:
2014-07-16 19:31:07
阅读次数:
273
HDU 4565 So Easy!
类似fib的构造
设Fn = x + y*sqrt(b)
啪啦啪啦
#include
#include
#include
#include
#include
using namespace std;
typedef vector vec;
typedef vector mat;
typedef long long ll;
ll a, b,...
分类:
其他好文 时间:
2014-07-12 21:34:01
阅读次数:
349
注释多行:选中,CTRL+R反注释:CTRL+T绘图-属性选项线型颜色标记符号- 实线b蓝色. 点s 方块: 虚线g绿色o 圆圈d 菱形-. 点划线r红色× 叉号∨朝下三角符号-- 双划线c青色+ 加号∧朝上三角符号m品红* 星号朝右三角符号k黑色p 五角星w白色h 六角星
分类:
其他好文 时间:
2014-07-12 15:07:11
阅读次数:
218
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...
分类:
其他好文 时间:
2014-07-06 13:38:13
阅读次数:
168
上一篇转载的文章(http://blog.csdn.net/carson2005/article/details/36900161)介绍了图像旋转的原理,这里给出代码实现;
直接上代码了,细节请参考上面的链接;
void ImgRotate(cv::Mat grayImg, float theta, cv::Mat imgOut)
{
int oldWidth = grayImg.c...
分类:
其他好文 时间:
2014-07-06 12:13:48
阅读次数:
217
NSString *tempA = @"123";NSString *tempB = @"456";1,字符串拼接NSString *newString = [NSString stringWithFormat:@"%@%@",tempA,tempB];2,字符转intint intString =...
分类:
其他好文 时间:
2014-07-05 22:33:48
阅读次数:
239
步骤/方法
分三个步骤
在头文件中声明函数例如
afx_msg void onNum(UINT uID)
在.cpp文件中添加函数体
void CCalculatorDlg::OnNum(UINT uID)
{
UINT index=uID-IDC_NUM_0;
CString num;
num.Format(_T("%d"),index);
A...
分类:
其他好文 时间:
2014-07-04 00:38:58
阅读次数:
307
问题:证明\[\sum_{k=1}^{n}\frac{1}{k}\notin\mathbb N,\forall n\geq2.\]证明 首先根据Chebyshev定理,在$(\frac{n}{2},n]$上必存在素数$p$,那么显然$p\mid n!$且\[p\mid\frac{n!}{k},k=....
分类:
其他好文 时间:
2014-07-03 23:41:26
阅读次数:
370