本文转载自:http://blog.csdn.net/aaa2832/article/details/194196791内存泄漏的排查方法Dalvik Debug Monitor Server (DDMS)是ADT插件的一部分,其中有两项功能可用于内存检查:·heap查看堆的分配情况·allocat...
分类:
其他好文 时间:
2015-02-02 17:55:26
阅读次数:
136
这题要注意的是 每次出发 起点和终点不同就可以算作不同路径思路: 从第一个起点开始dfs dp[x][y]记录从该点出发到达最后目的地有多少种走法#include#include#include#includeusing namespace std;int mat[200][200];int ...
分类:
其他好文 时间:
2015-02-02 00:33:17
阅读次数:
256
最近开始看《
??
OpenCV2 Computer Vision Application Programming Cookbook》这本书了,去年看的《learning opencv》,里边讲的都是c的接口,现在这本是基于opencv2.0以上版本的书,用c++接口,看这本才对。
Mat 这个容器可以存矩阵或者image,但是 Mat 容器的变量相互赋值时,为了节约内存的,拷贝复制...
分类:
其他好文 时间:
2015-02-01 21:55:03
阅读次数:
245
http://acm.hdu.edu.cn/showproblem.php?pid=2571思路: dp[i+1][j]=max(dp[i+1][j],dp[i][j]+mat[i+1][j]); dp[i][j+1]=max(dp[i][j+1],dp[i][j]+m...
分类:
其他好文 时间:
2015-02-01 17:41:45
阅读次数:
149
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-02-01 16:00:25
阅读次数:
137
由于assetbundle打包存在依赖的问题,所有资源要进行合理的分包零、代码代码都放在本地,包括NGUI等插件的代码、shader代码一、单位单位的模型贴图、动画一起打包二、UI1、公用图集一起打包(UIAtlas.prefab、UIAtlas.mat、UIAtlas.png)在进入游戏的时候加载...
分类:
编程语言 时间:
2015-01-31 19:17:02
阅读次数:
296
To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mat...
分类:
编程语言 时间:
2015-01-30 07:54:12
阅读次数:
296
从网上学习了MAT插件来查看内存使用情况,分析之后发现手上的应用对本地图片这边的内存损耗很大,查了相关资料之后发现,如果采用setImageBitmap、setImageResource这些来加载本地资源,会产生较大的损耗。因为这些方法在完成 decode 后,最终都是通过 Java 层的 crea...
分类:
移动开发 时间:
2015-01-29 19:21:44
阅读次数:
213
先看代码:
#include
#include
#include
#include
using namespace cv;
using namespace std;
typedef unsigned char byte;
void gradientGray(Mat &src, Mat &mag);
int main(){
Mat src = imread("1.jpg", ...
分类:
其他好文 时间:
2015-01-27 13:23:07
阅读次数:
342
#include#include#include#includeusing namespace std;int mat[120][120];int main(){ int c,n; int i,j,k; scanf("%d",&c); while(c--) { ...
分类:
其他好文 时间:
2015-01-26 18:39:18
阅读次数:
155