码迷,mamicode.com
首页 >  
搜索关键字:mat    ( 14954个结果
opencv实现canopy算法
#include "stdafx.h"using namespace cv;int main(int argc, char** argv){ Mat img=imread("d:/pic/lena.jpg"); imshow("src",img); CV_Assert(!img.e...
分类:编程语言   时间:2015-07-23 07:03:11    阅读次数:149
PAT 1094. The Largest Generation(BFS)
CODE: #include #include #include using namespace std; bool mat[105][105]; bool root[105]; int n,m; int R; int cnt[105]; int ans1,ans2; struct TNode { int num; int level; }; void BFS() { ...
分类:其他好文   时间:2015-07-21 12:51:41    阅读次数:128
poj 3620 Avoid The Lakes(dfs)
#include#include#include#includeusing namespace std;int mat[200][200];int vis[200][200];int ans,n,m,rt;int op[4][2]={0,-1,0,1,1,0,-1,0};bool isok(int ...
分类:其他好文   时间:2015-07-20 12:46:36    阅读次数:116
VC2010和OpenCV2.4.9中imread这个函数不能正确读入图片的解决
最近在帮老板做安全带检测的项目。之前django和前端还有好多好多整理,到时候等8月下旬闭关的时候再来整理了。先把如题的问题说一下。一开始是imshow show不出来,有人会说为什么不用IplImage的结构,但是尼玛Mat结构好操作呀。嗯,好操作。后来发现是imread进不来。额,最后原因是li...
分类:其他好文   时间:2015-07-20 12:26:36    阅读次数:199
LeeCode-Remove Element
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-07-20 10:42:29    阅读次数:83
数据结构公共代码
#include//字符串函数头文件 #include//字符函数头文件 #include//malloc等 #include//标准输入输出头文件,包括EOF(=^Z或F6),NULL等 #include//atoi(),exit() #include//eof() #include<mat...
分类:其他好文   时间:2015-07-19 18:04:26    阅读次数:125
OpenCV imread读取图片,imshow展示图片,出现cv:Exception at memory location异常
问题如上。环境:VS2013。代码如下:#include "stdafx.h"#include "opencv2\opencv.hpp"using namespace cv;int _tmain(int argc,_TCHAR* argv[]){ Mat image=imread("read1...
分类:其他好文   时间:2015-07-18 09:35:25    阅读次数:398
抽象数据类型的表示与实现
#include//字符串函数头文件 #include//字符函数头文件 #include//malloc等 #include//标准输入输出头文件,包括EOF(=^Z或F6),NULL等 #include//atoi(),exit() #include//eof() #include<mat...
分类:其他好文   时间:2015-07-17 19:04:16    阅读次数:176
记一次内存泄露排查
最后在实现一个无限循环的ViewPager,展示图片,功能实现了,但是运行一段时间之后会挂掉。多亏了AndroidStudio的Memory Monitor,发现了内存一直在增长。怎么触发gc内存都不会减少,确定了内存泄露了,但是不知哪里出问题了。一时想到的排查内存泄露的工具,就是MAT了,但是没找...
分类:其他好文   时间:2015-07-17 17:47:39    阅读次数:207
MAT分析JVM DUMP时的两个时常被错误理解的误区
Shallow中的数据并不是有多少,占多少。而是在64位JVM DUMP中16个字节起步,然后8个字节的倍数增加,你会发现1个byte字段和2个byte字段都是站16个字节,到5个byte字段时占24个字节,其中16个字节起步中还有隐藏的占用开销。这么做是为了字节对齐,64位下是8字节的倍数,32位...
分类:其他好文   时间:2015-07-17 15:54:55    阅读次数:210
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!