1
cbsw 2013-12-07 23:28:44 +08:00
用opencv库吧
|
3
deanguqiang 2013-12-08 00:19:24 +08:00 via iPad
numpy?
|
4
lsj5031 2013-12-08 05:19:45 +08:00
PIL 有内置的gaussian_blur
|
6
MingZhe OP @deanguqiang 可否详细点,我知道numpy可以处理矩阵,不知道能不能生成我所说的那个矩阵。感谢!
|
7
deanguqiang 2013-12-08 08:44:30 +08:00 via iPad
|
8
lsj5031 2013-12-08 08:54:36 +08:00
|
9
MingZhe OP |
10
ruoyu0088 2013-12-08 12:51:17 +08:00
可以这样写,得到@deanguqiang 贴的那个页面的矩阵:
import numpy as np from scipy import stats x = stats.norm(0, 0.84089642).pdf(np.arange(-3, 4)) g = np.outer(x, x) |
11
efi 2013-12-08 13:48:18 +08:00
|
12
aec4d 2013-12-08 14:06:08 +08:00
matplotlib.image.imread()?
|