当前位置:网站首页>Opencv learning notes -- Separation of color channels and multi-channel mixing
Opencv learning notes -- Separation of color channels and multi-channel mixing
2022-06-24 12:05:00 【cc_ rong】
Catalog
Separate the color channels
Separate channel function :split() take The multi-channel array is separated into several single channel arrays
void split(const Mat& src, Mat*mvbegin);
Parameters 1:onst Mat& Type of src, Separate multichannel arrays .
Parameters 2: Output array or output vector Containers .
According to the effect :
Code :
Mat srcImg1; vector<Mat> channel; srcImg1 = imread("E:\\img\\logo6.png"); split(srcImg1, channel); imshow(" Source graph srcImg1", srcImg1); imshow(" Blue weight ", channel.at(0)); imshow(" Green component ", channel.at(1)); imshow(" Red component ", channel.at(2));
Color channel RGB, stay opencv In Chinese, it means BGR B: blue G: green R: red
Multichannel mixing
Multi channel mixing is the merging of multiple channels .
merge() function Combine multiple arrays into a multi-channel array .
void merge(InputArrayOfArrays mv, OutputArray dst)
Parameters 1,mv. The merged input matrix or vector Array of containers , In this parameter All matrices must be the same Size and depth .
Parameters 2,dst. Output matrix , and mv[0] Have the same size and depth , And the number of channels is in the matrix array Total number of channels .
边栏推荐
- 《梦华录》要大结局了,看超前点映不如先来学学它!
- Insurance app aging service evaluation analysis 2022 issue 06
- Single gene pan cancer + simple experiment can be published 7 points+
- Adobe Photoshop using the box selection tool for selection tutorial
- 打新债可以申请多少 开户是安全的吗
- Istio best practice: graceful termination
- 2D 照片变身 3D 模型,来看英伟达的 AI 新“魔法”!
- FreeRTOS overview and experience
- Libuv的安装及运行使用
- 单基因泛癌+简单实验就能发表7分+
猜你喜欢
Libuv的安装及运行使用
《梦华录》要大结局了,看超前点映不如先来学学它!
工具及方法 - 在Source Insight中使用代码格式化工具
计组-总复习
Basic path test of software test on the function of the previous day
《opencv学习笔记》-- 离散傅里叶变换
"Meng Hua Lu" is about to have a grand finale. It's better to learn it first than to look ahead!
【数字IC/FPGA】Booth乘法器
电商红包雨是如何实现的?拿去面试用(典型高并发)
Understanding of homogeneous coordinates
随机推荐
11+ article - machine learning builds Protics framework - deeply reveals the impact of tumor infiltrating immune cells in different molecular subtypes on prognosis
Is it safe to open an account for how many new bonds you can apply for
[Architect (Part 41)] installation of server development and connection to redis database
数据标注科普:十种常见的图像标注方法
u盘安装kali并且持久化
5 points + single gene pan cancer pure Shengxin idea!
math_ Summation and derivation of proportional series & derivation of sum and difference of equal powers / difference between two nth power numbers/
集群控制管理
How to develop hospital information system (his) with SMS notification and voice function
Beauty of script │ VBS introduction interactive practice
FreeRTOS概述与体验
Single gene pan cancer + simple experiment can be published 7 points+
5W1H talk about open source - what is open source?
Opencv optical flow prediction and remap remapping function usage
[live review] battle code pioneer phase 7: how third-party application developers contribute to open source
Database migration tool flyway vs liquibase (II)
Why are some old SEO methods still effective?
《opencv学习笔记》-- CV::Mat类
11+文章-机器学习打造ProTICS框架-深度揭示了不同分子亚型中肿瘤浸润免疫细胞对预后的影响
Is it safe to open an account under the conditions of new bonds