当前位置:网站首页>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 .
边栏推荐
- 我在深圳,到哪里开户比较好?现在网上开户安全么?
- 如何优雅的写 Controller 层代码?
- 怎样购买打新债 开户是安全的吗
- How to open a new bond? Is it safe to open an account
- Example of PHP observer mode [useful in the laravel framework]
- 【直播回顾】战码先锋第七期:三方应用开发者如何为开源做贡献
- Is it safe to open an account for how many new bonds you can apply for
- 基于AM335X开发板 ARM Cortex-A8——Acontis EtherCAT主站开发案例
- 工具及方法 - 在Source Insight中使用代码格式化工具
- [Architect (Part 41)] installation of server development and connection to redis database
猜你喜欢

FreeRTOS overview and experience

TP-LINK 1208路由器教程(2)
![[digital ic/fpga] booth multiplier](/img/42/3da3b1d3cc82cb9c0694241148011b.png)
[digital ic/fpga] booth multiplier

u盘安装kali并且持久化

美团基于 Flink 的实时数仓平台建设新进展

Ten thousand campus developers play AI in a fancy way. It's enough to see this picture!

万名校园开发者花式玩AI,亮点看这张图就够啦!

Basic path test of software test on the function of the previous day

《梦华录》要大结局了,看超前点映不如先来学学它!

Libuv的安装及运行使用
随机推荐
Turn 2D photos into 3D models to see NVIDIA's new AI "magic"!
Nacos source code - Interface read configuration
How can I open an account with new bonds? Is it safe
怎样申购打新债 开户是安全的吗
GLOG from getting started to getting started
2022年有什么低门槛的理财产品?钱不多
如何优雅的写 Controller 层代码?
深圳市人民医院程立新课题组提出多组学数据在肝细胞癌的诊断与预后分析的新方法meGPS
《opencv学习笔记》-- 离散傅里叶变换
ahk实现闹钟
《opencv学习笔记》-- CV::Mat类
Single gene pan cancer + simple experiment can be published 7 points+
[206] use PHP language to generate the code of go language
Google ranging for PHP wechat development
ArrayList#subList这四个坑,一不小心就中招
[深度学习][pytorch][原创]crnn在高版本pytorch上训练loss为nan解决办法
Programmers spend most of their time not writing code, but...
Audio knowledge (III) -- MFCCs code implementation
Chenglixin research group of Shenzhen People's hospital proposed a new method of multi group data in the diagnosis and prognosis analysis of hepatocellular carcinoma megps
AXI低功耗接口



