- 博客(18)
- 收藏
- 关注
原创 java基础学习[1]
可变参数方法中的形参可当数组使用;实参可为数组;形参个数大于等于0;可变参数方法中可变参数与普通参数混用时,可变参数应在最后位置;一个可变参数方法中至多只能出现一个可变参数返回值返回给调用的函数,对于理解递归很关键全局变量有默认值,局部变量没有;全局变量与局部变量可以重名,方法调用时遵循就近原则;局部变量的存在跟随其存在的方法,全局变量跟随其存在的类;全局变量可以被其他类使用,局部变量只能在所属方法中使用;全局变量可加修饰符,局部变量不可类利用构造器对属性进行初始化;构造器没有返回值,void也不能.
2022-01-13 16:54:09
157
原创 cuda error cublas_status_internal_error when calling和cuda_status_not_initialized
torch版本过高,从1.8.0降为1.7.1后问题消失,注意torchvision版本的降低
2021-03-19 20:20:38
572
1
原创 ubuntu+opencv(py)+opencv(c++)
Ubuntu 16.04 + Qt 5.11 +opencv 3.4完美配置(亲测,最简单完美的方法)Ubuntu16.04安装Opencv3.4.1教程(最靠谱)Ubuntu16.04+Opencv3.3的安装教程在ubuntu16.04下安装opencv3.4.5(超详细)在Ubuntu16.04下安装OpenCV环境,详细执行步骤和测试案例,良心填坑帖Ubuntu16.04下安装Q...
2019-12-15 19:39:37
192
原创 编辑一个用于迭代法的计算器
1.数组序号需声明为整型2.注意计算过程中的各种数字形式的变化,整型除法与浮点数除法3.指数e与数字间不能有括号,如e-5合法e(-5)不合法4.注意数组序号的更新...
2019-12-05 16:46:49
2526
原创 MATLAB图像处理(4)——相机标定
张正友标定:https://zhuanlan.zhihu.com/p/35223115https://zhuanlan.zhihu.com/p/35309172https://zhuanlan.zhihu.com/p/35391837https://zhuanlan.zhihu.com/p/35392121https://zhuanlan.zhihu.com/p/35476851相机标定...
2019-08-26 22:29:45
350
原创 ubuntu16.04+cuda+cudnn+pytorch
Ubuntu16.04+Python3.6+Cuda9.2+Cudnn7.2+Pytorch0.4.1 https://blog.csdn.net/s124295707070/article/details/86019084字符界面login https://blog.csdn.net/qq_35277038/article/details/81056936
2019-08-26 22:29:03
427
原创 python部分函数说明索引
python 面向对象 http://www.cnblogs.com/Eva-J/articles/7293890.html#_label2numpy.copy https://blog.csdn.net/yyhhlancelot/article/details/81462736isinstance https://www.cnblogs.com/sweet521/p/3976634....
2019-03-09 14:49:49
292
转载 MATLAB图像处理学习(3)——边缘检测
边缘检测最通用的方法是检测亮度值的不连续性,通过一阶二阶导数检测拉普拉斯算子很少直接被用于边缘检测,因为二阶导数对噪声有无法接受的敏感性,它的幅度会产生双边缘,而且它不能检测边缘的方向。然而,当与其他边缘检测技术组合使用时,拉普拉斯算子是一种有效的补充方法。例如,虽然它的双边缘使得它不适合直接用于边缘检测,但该性质可用于边缘定位。边缘检测的基本意图是使用如下两个基本准则之一在图像中找到亮度快速变...
2018-12-16 14:36:12
782
转载 MATLAB图像处理学习(2)——点、线检测
1、点检测(1)|R|>=T,则可说在掩模的中心位置已检测出了一个孤立的点。T为非负阈值。MATLAB中用imfilter实现。对掩模的要求是。当掩模的中心位于一个孤立点时,掩模的响应必须最强,而在亮度不变的区域中响应为零。(2)点检测的另一种方法是在所有大小为m x n的邻域中找到最大和最小像素值的差超过t的指定值的点。2、线检测令R1、R2、R3、R4表示下图中掩模从左到右...
2018-12-15 23:48:05
2705
原创 Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return the length of last word in the string.If the last word does not exist, return 0.Note: A word is defin...
2018-09-02 00:14:30
128
原创 Maximum Subarray(Kadane's algorithm)
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.Example:Input: [-2,1,-3,4,-1,2,1,-5,4], Output: 6 Explanat...
2018-08-31 23:47:44
246
原创 三元运算符?:(Search Insert Position)
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array....
2018-08-24 23:23:13
170
原创 ++i与i++,不创建额外空间变更数组(Remove Element,Remove Duplicates from Sorted Array)
Given an array nums and a value val, remove all instances of that value in-place and return the new length.Do not allocate extra space for another array, you must do this by modifying the input arra...
2018-08-23 23:49:20
131
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人