scikit-image图像处理笔记

        scikit-image内置部分数据集,以及图像处理方法。介绍几个学来感觉有用的函数和方法。
        参考资料:《Python图像处理实战》
        安装方法:pip install scikit-image
        导入方法:

from skimage.io import imread, imsave, imshow, show, imread_collection, imshow_collection
from skimage import color, viewer, exposure, img_as_float, data
from skimage.transform import SimilarityTransform, warp, swirl
from skimage.util import invert, random_noise, montage

使用scikit-image内置的数据集

im = data.astronaut()
imshow(im), show()

scikit-image.astronaut
一次性同时读取和显示多个图像:

imread_collection? =>
Signature:
imread_collection(
    load_pattern,
    conserve_memory=True,
    plugin=None,
    **plugin_args,
)
Docstring:
Load a collection of images.

Parameters
----------
load_pattern : str or list
    List of objects to load. These are usually filenames, but may
    vary depending on the currently active plugin.  See the docstring
    for ``ImageCollection`` for the default behaviour of this parameter.
conserve_memory : bool, optional
    If True, never keep more than one in memory at a specific
    time.  Otherwise, images will be cached once they are loaded.

Returns
-------
ic : ImageCollection
    Collection of images.

Other Parameters
----------------
plugin_args : keywords
    Passed to the given plugin.
File:      c:\users\zhang\appdata\local\programs\python\python37\lib\site-packages\skimage\io\_io.py
Type:      function

使用方法:

ic = imread_collection(ic = imread_collection(['images/69015.jpg','images/210088.jpg', 'images/cat1.png'])
imshow_collection(ic)
# <Figure size 640x480 with 4 Axes>
show()

imread_collection

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ProfSnail

谢谢老哥嗷

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值