当前位置:网站首页>通道的分离与合并
通道的分离与合并
2022-07-24 17:05:00 【什么时候上岸?】
示例代码:
void demo::channels_demo(Mat& image)
{
vector<Mat> mv;
split(image, mv);
//imshow("red", mv[2]);
//imshow("green", mv[1]);
//imshow("blue", mv[0]);Mat dsc;
//mv[0] = 0;
mv[1] = 0;
merge(mv, dsc);
imshow("通道混合", dsc);int fromto[] = { 0,2,1,1,2,0 };
mixChannels(&image,1, &dsc,1, fromto,3);
}
mixChannels声明:
CV_EXPORTS void mixChannels(const Mat* src, size_t nsrcs, Mat* dst, size_t ndsts,
const int* fromTo, size_t npairs);
第一个参数:输入矩阵
第二个参数:输入矩阵的数量
第三个参数:输出矩阵
第四个参数:输出矩阵的数量
第五个参数:复制列表
第六个参数:复制列表的数量
通道分离结果:

通道合并结果:

通道混合结果:

over!!!
边栏推荐
- MODIS data WGet Download
- Interview question 01.02. determine whether it is character rearrangement
- Cross server, insert, search
- [technology] online seat selection demo of uniapp
- Apachecon Asia 2022 opens registration: pulsar technology issues make a big debut
- [GNN report] Tencent AI Lab Xu TingYang: graph generation model and its application in molecular generation
- QT embed Notepad under win10
- Comparison of array and object merging methods assign, merge, defaults, defaultsdeep in lodash
- Summary of ROS master-slave communication experience
- QT QML virtual keyboard
猜你喜欢

ArcGIS create vector

Comparison of array and object merging methods assign, merge, defaults, defaultsdeep in lodash
![[GNN report] Tencent AI Lab Xu TingYang: graph generation model and its application in molecular generation](/img/5f/c790baf8f8e62fca36fdb4492c38b2.png)
[GNN report] Tencent AI Lab Xu TingYang: graph generation model and its application in molecular generation

Implementation of side list menu (side menu) of wechat applet

portfwd 端口转发

Envi grid resampling

量化框架backtrader之一文读懂Indicator指标

Axi protocol (1): introduction to AMBA bus, introduction to Axi concept and background, characteristics and functions of Axi protocol

Small end format and big end format (little endian & big endian)

Axi protocol (2): five channels and two transactions of Axi architecture
随机推荐
Still developing games with unity? Then you're out. Try unity to build an answer system
AXI协议(2):AXI架构的五个通道和两种事务
一个实际使用SwiftUI 4.0中ViewThatFits自适应视图的例子
I'll teach you how to use NPs to build intranet penetration services. When you go out, you can easily connect your lightweight notebook to your home game console to play remotely
Axi protocol (1): introduction to AMBA bus, introduction to Axi concept and background, characteristics and functions of Axi protocol
The latest Zhejiang construction safety officer simulation question bank and answers in 2022
Matlab writes excel string and number merging
EF miscellaneous
Delay and jitter in network
CANN训练营学习2022第二季 模型系列 动漫风格化和AOE ATC调优
Canvas 从入门到劝朋友放弃(图解版)
MODIS data WGet Download
Mcd12q1 data shows multiple classifications in envi
The third edition of New Horizon College English reading and Writing Tutorial 4 graduation examination site (units 1,2,3,5,6)
How to effectively avoid memory leakage when customizing the handler?
2022-07-21 Daily: Wu Enda wrote: how to establish projects suitable for AI career
JS simulation realizes the principles of call, apply, bind and new
Long awaited full platform support - Open Source im project uniapp update of openim
[GNN report] Tencent AI Lab Xu TingYang: graph generation model and its application in molecular generation
Logisim group experiment 10 single cycle MIPS CPU