本文簡要介紹 python 語言中 scipy.misc.face
的用法。
用法:
scipy.misc.face(gray=False)#
獲取浣熊臉的 1024 x 768 彩色圖像。
raccoon-procyon-lotor.jpg 在http://www.public-domain-image.com
- gray: 布爾型,可選
如果 True 返回 8 位 grey-scale 圖像,否則返回彩色圖像
- face: ndarray
浣熊臉的圖像
參數 ::
返回 ::
例子:
>>> import scipy.misc >>> face = scipy.misc.face() >>> face.shape (768, 1024, 3) >>> face.max() 255 >>> face.dtype dtype('uint8')
>>> import matplotlib.pyplot as plt >>> plt.gray() >>> plt.imshow(face) >>> plt.show()
相關用法
- Python SciPy misc.ascent用法及代碼示例
- Python SciPy misc.derivative用法及代碼示例
- Python SciPy misc.central_diff_weights用法及代碼示例
- Python SciPy misc.electrocardiogram用法及代碼示例
- Python SciPy mstats.trim用法及代碼示例
- Python SciPy matlab.loadmat用法及代碼示例
- Python SciPy mstats.winsorize用法及代碼示例
- Python SciPy mstats.argstoarray用法及代碼示例
- Python SciPy matlab.savemat用法及代碼示例
- Python SciPy mstats.trima用法及代碼示例
- Python SciPy mstats.tmin用法及代碼示例
- Python SciPy mstats.tmax用法及代碼示例
- Python SciPy mstats.kruskalwallis用法及代碼示例
- Python SciPy mstats.sem用法及代碼示例
- Python SciPy mstats.zscore用法及代碼示例
- Python SciPy mstats.zmap用法及代碼示例
- Python SciPy mstats.mode用法及代碼示例
- Python SciPy mstats.hmean用法及代碼示例
- Python SciPy mstats.variation用法及代碼示例
- Python SciPy mstats.compare_medians_ms用法及代碼示例
- Python SciPy mstats.gmean用法及代碼示例
- Python SciPy mstats.pearsonr用法及代碼示例
- Python SciPy mstats.kruskal用法及代碼示例
- Python SciPy mstats.tmean用法及代碼示例
- Python SciPy mstats.mquantiles用法及代碼示例
注:本文由純淨天空篩選整理自scipy.org大神的英文原創作品 scipy.misc.face。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。