用法:
skimage.io.use_plugin(name, kind=None)
為指定操作設置默認插件。如果尚未加載該插件,它將被加載。
- name:str
插件的名稱。
- kind:{‘imsave’, ‘imread’, ‘imshow’, ‘imread_collection’, ‘imshow_collection’},可選
設置此函數的插件。默認情況下,插件設置為所有函數。
參數:
例子:
要將 Matplotlib 用作默認圖像閱讀器,您可以編寫:
>>> from skimage import io >>> io.use_plugin('matplotlib', 'imread')
要查看可用插件的列表,請運行
io.available_plugins
。請注意,這列出了已定義的插件,但如果您的係統沒有安裝所需的庫,則完整列表可能不可用。
相關用法
- Python skimage.io.MultiImage用法及代碼示例
- Python skimage.io.ImageCollection用法及代碼示例
- Python skimage.io.show用法及代碼示例
- Python skimage.feature.graycomatrix用法及代碼示例
- Python skimage.color.lab2lch用法及代碼示例
- Python skimage.draw.random_shapes用法及代碼示例
- Python skimage.feature.blob_doh用法及代碼示例
- Python skimage.feature.blob_dog用法及代碼示例
- Python skimage.filters.unsharp_mask用法及代碼示例
- Python skimage.registration.optical_flow_tvl1用法及代碼示例
- Python skimage.filters.rank.noise_filter用法及代碼示例
- Python skimage.exposure.histogram用法及代碼示例
- Python skimage.filters.gaussian用法及代碼示例
- Python skimage.feature.graycoprops用法及代碼示例
- Python skimage.segmentation.active_contour用法及代碼示例
- Python skimage.feature.corner_orientations用法及代碼示例
- Python skimage.exposure.adjust_gamma用法及代碼示例
- Python skimage.morphology.h_minima用法及代碼示例
- Python skimage.filters.threshold_otsu用法及代碼示例
- Python skimage.feature.structure_tensor用法及代碼示例
注:本文由純淨天空篩選整理自scikit-image.org大神的英文原創作品 skimage.io.use_plugin。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。