2019年7月15日
posted @ 2019-07-15 10:02
苏州城外啲微笑
阅读(586)
推荐(0)
2019年5月28日
摘要:
使用CUDA加速CPU程序的步骤:1.通过性能分析工具(如vs)找到CPU程序最耗时的多个地方,并确定耗时程序的入口函数2.将CPU函数进行清理 1.将循环部分的代码找出来。 2.将函数内所用到的数据从C++类结构变成C的结构体。 3.标准化输入输出,保证其为C结构,并与原程序的数据进行无缝对接。
阅读全文
posted @ 2019-05-28 10:44
苏州城外啲微笑
阅读(1726)
推荐(0)
2019年5月17日
摘要:
opencv 3.0 灰度图 转 彩图 applyColorMap matlab有个imagesc,在opencv中 没有对应的函数 代码 minMaxLoc()函数功能:查找全局最小和最大数组元素并返回它们的值和它们的位置。 参数解释参数1:InputArray类型的src,输入单通道数组(图像)
阅读全文
posted @ 2019-05-17 17:01
苏州城外啲微笑
阅读(1941)
推荐(0)
摘要:
一、图像线性混合 线性混合就是,对两幅图像(f0(x)和f1(x))或两段视频(同样为(f0(x)和f1(x))产生时间上的画面叠化(cross-dissolve)效果,就像幻灯片放映和电影制作中的那样。函数表示为: 1、opencv函数-addWeighted函数 addWeighted函数计算如
阅读全文
posted @ 2019-05-17 16:26
苏州城外啲微笑
阅读(189)
推荐(0)
2019年5月16日
摘要:
一、对应关系 1.Visual Studio与VC之间的版本对应支持关系 vc6 - VC6.0vc7 - VS2002 vc7.1 - VS2003 vc8 - VS2005 vc9 - VS2008vc10 - VS2010vc11 - VS2012vc12 - VS2013vc13 - VS2
阅读全文
posted @ 2019-05-16 15:40
苏州城外啲微笑
阅读(161)
推荐(0)
2019年5月13日
摘要:
CUDA矩阵乘法 参考:《深入浅出谈CUDA》
阅读全文
posted @ 2019-05-13 14:34
苏州城外啲微笑
阅读(399)
推荐(0)
2019年5月9日
摘要:
转自:http://luofl1992.is-programmer.com/posts/38830.html CUDA编程之快速入门:https://www.cnblogs.com/skyfsm/p/9673960.html CUDA编程中,习惯称CPU为Host,GPU为Device。编程中最开始
阅读全文
posted @ 2019-05-09 15:15
苏州城外啲微笑
阅读(287)
推荐(0)
2019年5月7日
摘要:
1 #include 2 3 4 time_t start, end; 5 start = clock(); 6 7 /*********************** 8 9 代码 10 11 ***********************/ 12 end = clock(); 13 cout << "total time is " << end - start <...
阅读全文
posted @ 2019-05-07 17:51
苏州城外啲微笑
阅读(153)
推荐(0)
2019年5月6日
摘要:
下载安装: 1.vs2013 下载网址:https://www.visualstudio.com/zh-cn/downloads/download-visual-studio-vs.aspx 2.cuda下载地址:https://developer.nvidia.com/cuda-downloads
阅读全文
posted @ 2019-05-06 16:22
苏州城外啲微笑
阅读(1195)
推荐(0)
2019年4月30日
摘要:
1 import threading 2 from time import sleep,ctime 3 4 def print1(): 5 for i in range(10): 6 print(i,end='') 7 print(' 0123456789 %s' % ctime()) 8 sleep(4) 9 ...
阅读全文
posted @ 2019-04-30 16:17
苏州城外啲微笑
阅读(166)
推荐(0)