Python
Life_XY
这个作者很懒,什么都没留下…
展开
-
Python 绘制 误差 箱线图 error boxplot
Python 绘制 误差 箱线图 error boxplot两个比较好的参考网址:http://blog.bharatbhole.com/creating-boxplots-with-matplotlib/http://blog.csdn.net/u012176591/article/details/44700551原创 2015-11-24 08:58:00 · 10550 阅读 · 1 评论 -
Python cv2 图像自适应灰度直方图均衡化处理
Python cv2 图像自适应灰度直方图均衡化处理__author__ = 'Administrator'import numpy as npimport cv2ct_img = np.load('G:\Project\MMWHS_2017\dataset\ct_mri_case.tar\ct_mri_case\send1\ct_img.npy')mri_img = np.原创 2017-04-25 11:47:07 · 10083 阅读 · 1 评论 -
[Python] Python 旋转、flip Nifti三维数据 (Python Rotate and Flip Nifti volume)
__author__ = 'xin yang'import osimport nibabel as nibimport numpy as npimport mathsrc_us_folder = 'G:/Temp/Data/src/us'src_seg_folder = 'G:/Temp/Data/src/seg'aug_us_folder = 'G:/Temp/Data/原创 2017-01-18 23:08:15 · 10561 阅读 · 0 评论 -
Ubuntu, Pycharm, Theano, nvcc not found
Ubuntu, Pycharm, Theano, nvcc not foundRefer to this best answer: http://stackoverflow.com/questions/21486528/environment-path-different-when-using-venv/21488010#21488010Then, what you need to do原创 2016-03-25 22:10:07 · 1504 阅读 · 0 评论 -
Theano / Numpy, "ImportError: libatlas.so.3gf: cannot open shared object file"
Theano / Numpy, "ImportError: libatlas.so.3gf: cannot open shared object file"If you got the "ImportError: libatlas.so.3gf: cannot open shared object file: No such file or directory" as I di原创 2016-06-18 19:07:52 · 1661 阅读 · 0 评论 -
Numpy 二维矩阵 乘以 三维矩阵 (Numpy, 2D matrix multiplies 3D matrix)
Numpy 二维矩阵 乘以 三维矩阵 (Numpy, 2D matrix multiplies 3D matrix)Learn to apply the broadcast rule in Numpy.========goal: element-wise matrix multiplicationarguments:A: 2×3×4B: 2×4C = A*B (* me原创 2016-07-10 21:10:46 · 11703 阅读 · 0 评论 -
Python 读取文件夹下文件列表 自然排序
Python 读取文件夹下文件列表 自然排序import fnmatchimport osa_list = fnmatch.filter(os.listdir('F:/image'), '*.png')>>> import natsort>>> natsort.natsorted(a_list)That's all!原创 2016-06-03 20:12:22 · 13541 阅读 · 0 评论 -
Windows7 下安装Theano (Install Theano in Windows 7)
Install Theano in Window 7OS: Win 7GPU: NVIDIA GeForce GTX TITANXCUDA: 7.5It's OK for me to follow the Theano offical website to install all the needed components, including:1. Visual Stud原创 2016-05-19 21:46:10 · 1213 阅读 · 0 评论 -
Theano 中 scan 函数的参数解释
Theano 中 scan 函数的参数解释待更新原创 2016-03-23 22:40:59 · 579 阅读 · 0 评论 -
Python 安装 更新 Scipy
Python 安装 更新 Scipy 参考网站:问题提出:http://stackoverflow.com/questions/26575587/cant-install-scipy-through-pip资源网站:http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy原创 2015-12-07 20:20:05 · 3865 阅读 · 0 评论 -
利用 Python 实现多线程多任务提交 - matlab 函数示例
利用 Python 实现多线程多任务提交、运行可先参考博客文章:https://segmentfault.com/a/1190000000414339原创 2016-01-14 19:44:40 · 2207 阅读 · 0 评论 -
Python 中利用 matplotlib 进行曲线的部分填充 fill_betweenx
Python 中利用 matplotlib 进行曲线的部分填充 fill_betweenx实现效果:代码:def Plot_LSH_Curve(b, r, Sim_T): s = np.arange(0, 1, 0.01) p = 1 - np.power(1 - np.power(s, r), b) fig = plt.figure() ax原创 2015-11-20 19:55:47 · 18758 阅读 · 0 评论 -
Python ndarray padding
Python ndarray paddingWith the bug about np.lib.pad reported here: https://github.com/numpy/numpy/issues/7353 and the corresponding update here: https://github.com/numpy/numpy/pull/7354#issuecomme原创 2017-05-28 20:38:09 · 3126 阅读 · 0 评论