- 博客(6)
- 收藏
- 关注
转载 Convert mat to numpy array , numpy gradient
1.mat to array:arr = np.asarray(mat)2.matlab and numpy gradient:第二列减第一列,第三列减第一列除以2,第四列减第二列,......,最后一列减前一列。(行同理)import cv2import numpy as np...#image readimg = cv2.imread(imgpath)img_a
2016-06-02 19:19:16
3841
转载 Reasons for feature scaling
Feature scaling speeds up gradient descent by avoiding many extra iterations that are required when one or more features take on much larger values than the rest.参考:http://stackoverflow.
2016-05-29 20:23:47
798
原创 matlab 错误使用*
Error:错误使用 * MTIMES 不完全支持整数类。至少有一个输入必须为标量。要按元素进行 TIMES 计算,请改用 TIMES (.*)。解决方法:对于图像,double_P=im2double(P);涉及到矩阵运算的话,原矩阵A强制转换成double(A)
2016-04-13 19:52:40
17920
转载 MATLAB对文件进行批量重命名
http://blog.sciencenet.cn/blog-412191-615814.html对文件夹中所有文件重命名但是此程序只能对当前目录下的文件进行转换(?)clear allclcfilename=uigetfile('*.*', 'MultiSelect', 'on');for i=1:length(filename) oldname=filename{i}
2016-02-29 19:23:52
1947
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人