当前位置:网站首页>单通道图片的读入
单通道图片的读入
2022-06-12 06:03:00 【换个名字就很好】
flag 参数为cv2.IMREAD_GRAYSCALE或0表示读入的模式是灰度模式。
import cv2
pth = "a.png"
img = cv2.imread(pth, cv2.IMREAD_GRAYSCALE)
# or img = cv2.imread(pth, 0)
cv2.IMREAD_COLOR 或1 是默认,表示读入模式为彩色模式。
边栏推荐
- [C language basics] macro definition usage
- Leetcode-2048. Next larger numerical balance
- Directx11 advanced tutorial PBR (1) summary of physical phenomena of light
- 三年磨一剑:蚂蚁金服的研发效能洞察实践
- 网络加速谁更猛?CDN领域再现新王者
- China's elastic belt market trend report, technical dynamic innovation and market forecast
- C WMI query remote Win32_ Operatingsystem class
- First note
- Introduction to redis high availability
- Chapter 7 - pointer learning
猜你喜欢

Guns框架多数据源配置,不修改配置文件
![How to increase heap size of JVM [duplicate] - how to increase heap size of JVM [duplicate]](/img/65/a214d137e230b1a1190feb03660f2c.jpg)
How to increase heap size of JVM [duplicate] - how to increase heap size of JVM [duplicate]

IDEA常用配置

BlockingQueue interface introduction

Individual application for ov type SSL certificate

网络加速谁更猛?CDN领域再现新王者

MySQL 主从,6 分钟带你掌握

Review notes of naturallanguageprocessing based on deep learning

March 22, 2021

Getting started with houdininengine HDA and UE4
随机推荐
R语言大作业(四):上海市、东京 1997-2018 年GDP值分析
log4j 1. X upgrade to 2 Solution of X dependency incompatibility
Multiple ways 99.9% to solve the problem of garbled code after copying text from PDF
RTMP streaming +rtmp playback low delay solution in unity environment
Leetcode-646. Longest number pair chain
Leetcode-139. Word splitting
Une explication du 80e match bihebdomadaire de leetcode
交叉编译libev
Available RTMP and RTSP test addresses of the public network (updated in March, 2021)
Leetcode-1260. 2D mesh migration
nrf52832--官方例程ble_app_uart添加led特性,实现电脑uart和手机app控制开发板led开和关
Redis transaction
IO system - code example
Recursive implementation of exponential, permutation and combination enumerations
Leetcode-553. Optimal division
Redis cache data consistency and problems
Leetcode-1705. Maximum number of apples to eat
POI, easyexcel framework use
IDEA常用配置
Conversion of Halcon 3D depth map to 3D image