当前位置:网站首页>scikit-image图像处理笔记
scikit-image图像处理笔记
2022-08-05 05:25:00 【ProfSnail】
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()

一次性同时读取和显示多个图像:
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()

边栏推荐
- Passing parameters in multiple threads
- Configuration of routers and static routes
- selenium模块的操作之拉钩
- 教您简单几步实现工业树莓派正确安装RS232转USB驱动
- ROS2下使用ROS1 bag的方法
- DevOps-了解学习
- Network Protocol Fundamentals - Study Notes
- Chengyun Technology was invited to attend the 2022 Alibaba Cloud Partner Conference and won the "Gathering Strength and Going Far" Award
- vs2017关于函数命名方面的注意事项
- 大小屏适配
猜你喜欢

The highlight moment of operation and maintenance starts with intelligence

5分钟完成mysql离线安装

The cocos interview answers you are looking for are all here!

NAT experiment

selenium学习

config.js相关配置汇总

Transformer详细解读与预测实例记录

单片机原理与应用复习

System basics - study notes (some command records)

The hook of the operation of the selenium module
随机推荐
selenium学习
[问题已处理]-jenkins流水线checkout超时
BIO,NIO,AIO实践学习笔记(便于理解理论)
网络协议基础-学习笔记
Quick question and quick answer - FAQ of Tencent Cloud Server
numpy.random使用文档
transport layer protocol
config.js related configuration summary
Nacos集群的搭建过程详解
NAT experiment
Network Troubleshooting Basics - Study Notes
Chengyun Technology was invited to attend the 2022 Alibaba Cloud Partner Conference and won the "Gathering Strength and Going Far" Award
单片机期末复习大题
设置文本向两边居中展示
The highlight moment of operation and maintenance starts with intelligence
From "dual card dual standby" to "dual communication", vivo took the lead in promoting the implementation of the DSDA architecture
Native JS takes you to understand the implementation and use of array methods
Tencent Internal Technology: Evolution of Server Architecture of "The Legend of Xuanyuan"
多行文本省略
Wireshark packet capture and common filtering methods