python中图像通道分离与合并实例
作者:s941015n 时间:2021-04-02 00:09:48
我就废话不多说了,直接上代码吧!
import cv2
img = cv2.imread("1.jpg")
b, g, r = cv2.split(img) #分离函数
merged = cv2.merge([b,g,r]) #合并函数
cv2.imshow('image',img)
cv2.imshow("Blue 1", b)
cv2.imshow("Green 1", g)
cv2.imshow("Red 1", r)
cv2.imshow("merged 1", merged)
cv2.waitKey(0)
cv2.destroyAllWindows()
来源:https://blog.csdn.net/s941015n/article/details/79665306
标签:python,图像,通道,分离,合并
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
利用Python2下载单张图片与爬取网页图片实例代码
2023-06-25 00:57:22
![](https://img.aspxhome.com/file/2023/4/81494_0s.jpg)
python测试开发django之使用supervisord 后台启动celery 服务(worker/beat)
2023-10-14 05:55:53
手把手带你了解Python数据分析--matplotlib
2022-05-21 22:07:18
![](https://img.aspxhome.com/file/2023/4/87654_0s.png)
Python+OpenCV内置方法实现行人检测
2023-10-19 12:52:47
![](https://img.aspxhome.com/file/2023/7/81857_0s.jpg)
Python实现聚类K-means算法详解
2023-04-22 07:48:36
![](https://img.aspxhome.com/file/2023/2/105812_0s.png)
抛砖引玉Web2.0设计指南
2008-06-30 12:49:00
![](https://img.aspxhome.com/file/UploadPic/up/2008063013584749.gif)
全网首秀之Pycharm十大实用技巧(推荐)
2023-08-09 16:11:00
![](https://img.aspxhome.com/file/2023/9/63259_0s.png)
python httpx的具体使用
2021-05-31 21:42:28
在win10和linux上分别安装Python虚拟环境的方法步骤
2023-09-06 18:40:01
python实现QQ空间自动点赞功能
2022-06-27 14:23:54
中国移动G3笔记本全Flash 网站
2009-04-27 12:51:00
![](https://img.aspxhome.com/file/UploadPic/20094/27/g3_1-35s.jpg)
python 调用pyautogui 实时获取鼠标的位置、移动鼠标的方法
2021-01-03 05:25:29
![](https://img.aspxhome.com/file/2023/9/101069_0s.jpg)
在Pycharm中使用GitHub的方法步骤
2021-04-27 04:46:48
![](https://img.aspxhome.com/file/2023/4/83654_0s.png)
浅谈django 模型类使用save()方法的好处与注意事项
2021-05-17 10:43:59
python字典排序的方法
2021-06-16 03:43:40
![](https://img.aspxhome.com/file/2023/6/75276_0s.png)
Python的函数使用详解
2021-11-22 15:34:25
![](https://img.aspxhome.com/file/2023/5/85335_0s.png)
ASP读取MySQL数据库出现乱码的解决办法
2010-03-08 14:25:00
Pytorch中torch.cat()函数举例解析
2023-01-09 15:42:15
![](https://img.aspxhome.com/file/2023/7/86357_0s.jpg)
Python提取频域特征知识点浅析
2021-10-31 08:01:31
![](https://img.aspxhome.com/file/2023/3/75323_0s.jpg)
pytorch 实现查看网络中的参数
2023-10-28 22:08:37