scipy
文章
11stats
统计函数 实现概率论和数理统计相关的功能
12ndimage
ndimage用途SciPy的ndimage子模块专用于图像处理。这里,ndimage表示一个n维图像。图像处理中一些最常见的任务如下: 输入/输出/显示图像 基本操作:裁剪,翻转,旋转等图像过滤 去噪,锐化等图像分割 标记对应于不同对象的像素 分类 特征提取 注册/配准 示例1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374# 导入图像from scipy import miscf = misc.face()misc.imsave('face.png', f) # uses the Image module (PIL)import matplotlib.pyplot as pltplt.imshow(f)plt.show()# 基本信息from scipy import miscf = misc.f...
13io
IO loadmat加载一个MATLAB文件 savemat保存为一个MATLAB文件 whosmat列出MATLAB文件中的变量 12345678910import scipy.io as sioimport numpy as np#Save a mat filevect = np.arange(10)sio.savemat('array.mat', {'vect':vect})#Now Load the Filemat_file_content = sio.loadmat('array.mat')print (mat_file_content)
14cluster
聚类cluster.vqProvides routines for k-means clustering, generating code books from k-means models and quantizing vectors by comparing them with centroids in a code book. function introduction whiten(obs[, check_finite]) Normalize a group of observations on a per feature basis.每行元素除以该行的标准差。 vq(obs, code_book[, check_finite]) Assign codes from a code book to observations. kmeans(obs, k_or_guess[, iter, thresh, …]) Performs k-means on a set of observation vectors forming k clusters. km...
18constant
数字常量物理常量












