当前位置:网站首页>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 .
边栏推荐
- 【206】使用php语言去生成go语言的代码
- Variable parameter template implements max (accepts multiple parameters, two implementation methods)
- 万名校园开发者花式玩AI,亮点看这张图就够啦!
- 12+!不同癌症中TMB与ICI反应之间的免疫相关因素研究
- 哪个商业保险养老险好?2022年商业养老保险产品排名
- GTEST from getting started to getting started
- Libuv的安装及运行使用
- d的10个0符
- 单基因泛癌+简单实验就能发表7分+
- 《opencv学习笔记》-- 分离颜色通道、多通道混合
猜你喜欢
随机推荐
2022年有什么低门槛的理财产品?钱不多
Popular science of data annotation: ten common image annotation methods
LS-DYNA beginner's experience
Ten thousand campus developers play AI in a fancy way. It's enough to see this picture!
Why are some old SEO methods still effective?
我真傻,招了一堆只会“谷歌”的程序员!
5 points + single gene pan cancer pure Shengxin idea!
PHP SMS notification + voice broadcast automatic double call
集群控制管理
[Architect (Part 41)] installation of server development and connection to redis database
Qt: 判断字符串是否为数字格式
GLOG从入门到入门
Is it safe to apply for new bonds to open an account
Concise tutorial | making cartoon heat map with PPT - EFP graph?!
可变参数模板实现max(接受多个参数,两种实现方式)
Basic path test of software test on the function of the previous day
FreeRTOS overview and experience
Identification of new prognostic DNA methylation features in uveal melanoma by 11+ based on methylation group and transcriptome analysis~
Influence of DEX optimization on arouter lookup path
11+! Methylation modification patterns based on m6A regulatory factors in colon cancer are characterized by different tumor microenvironment immune spectra











![[digital ic/fpga] booth multiplier](/img/42/3da3b1d3cc82cb9c0694241148011b.png)
