用法:
class skimage.io.MultiImage(filename, conserve_memory=True, dtype=None, **imread_kwargs)
基礎:
skimage.io.collection.ImageCollection
包含來自多幀圖像的所有幀的類。
- load_pattern:str 或 str 列表
要加載的模式 glob 或文件名。路徑可以是絕對的或相對的。
- conserve_memory:布爾型,可選
是否僅通過緩存單個幀來節省內存。默認為真。
- load_func:可調用的
imread
默認情況下。請參閱下麵的注釋。
參數:
其他參數:
注意:
如果
conserve_memory=True
可以減少內存占用,但是性能可能會受到影響,因為必須更頻繁地從文件中讀取幀。最後訪問的幀被緩存,所有其他幀都必須從文件中讀取。
當前實現對 Tiff 文件使用
tifffile
,否則使用 PIL。例子:
>>> from skimage import data_dir
>>> img = MultiImage(data_dir + '/multipage.tif') >>> len(img) 2 >>> for frame in img: ... print(frame.shape) (15, 10) (15, 10)
相關用法
- Python skimage.io.use_plugin用法及代碼示例
- 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.MultiImage。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。