当前位置:网站首页>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()

边栏推荐
猜你喜欢

The 25 best free games on mobile in 2020

干货!教您使用工业树莓派结合CODESYS配置EtherCAT主站

DevOps流程demo(实操记录)

BIO,NIO,AIO实践学习笔记(便于理解理论)

Teach you simple steps to achieve industrial raspberries pie properly installed RS232 USB drive

BIO, NIO, AIO practical study notes (easy to understand theory)

disabledDate 日期选择器 datePicker

Successful indie developers deal with failure & imposters

GetEnumerator method and MoveNext and Reset methods in Unity

DevOps process demo (practical record)
随机推荐
传输层协议
RAID disk array
NAT experiment
link 和@improt的区别
The hook of the operation of the selenium module
前置++和后置++的区别
Billions of IT operations in the market, the product by strength to speak
docker部署完mysql无法连接
网络层协议介绍
[ingress]-ingress exposes services using tcp port
设置文本向两边居中展示
D39_Eulerian Angles and Quaternions
单臂路由实验和三层交换机实验
disabledDate 日期选择器 datePicker
人人AI(吴恩达系列)
Matplotlib绘图笔记
DevOps - Understanding Learning
CIPU, what impact does it have on the cloud computing industry?
Insight into the general trend of the Internet, after reading this article, you will have a thorough understanding of Chinese domain names
NB-IOT智能云家具项目系列实站