当前位置:网站首页>Separation and merging of channels
Separation and merging of channels
2022-07-24 17:09:00 【When will we get ashore?】
Sample code :
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(" Channel mixing ", dsc);int fromto[] = { 0,2,1,1,2,0 };
mixChannels(&image,1, &dsc,1, fromto,3);
}
mixChannels Statement :
CV_EXPORTS void mixChannels(const Mat* src, size_t nsrcs, Mat* dst, size_t ndsts,
const int* fromTo, size_t npairs);
The first parameter : Input matrix
The second parameter : Enter the number of matrices
The third parameter : The output matrix
Fourth parameter : Number of output matrices
Fifth parameter : Copy list
Sixth parameter : Number of copy lists
Channel separation results :

Channel merge results :

Channel mixing results :

over!!!
边栏推荐
- ShardingSphere数据库读写分离
- 电脑监控是真的吗?4个实验一探究竟
- Apachecon Asia 2022 opens registration: pulsar technology issues make a big debut
- QT graphical interface beginner project - unmanned aerial vehicle group combat simulation
- Delay and jitter in network
- ufw 端口转发
- opencv自带颜色操作
- Concept of IP, classification of IP, IP multiplexing technology
- Using unity to do simulation, I don't allow this chart plug-in, you don't know
- PAT甲级——A + B 格式
猜你喜欢

会议OA项目进度(二)

Want to make sandbox games? Then you must not miss this plug-in (unity3d)
![为什么被调函数内部不能用 sizeof(arr) / size(arr[0]) 计算数组长度?](/img/e6/1d2213f3eb9bd0ff537a66d2b01f98.png)
为什么被调函数内部不能用 sizeof(arr) / size(arr[0]) 计算数组长度?

Internet Download Manager配置

Sword finger offer 22. the penultimate node in the linked list

DBF menu driver: librarydatabaseproject

Canvas 从入门到劝朋友放弃(图解版)

Problems encountered in upgrading chrome to version 80 - solutions to system login failure

小端格式和大端格式(Little-Endian&Big-Endian)

NATBypass 端口转发
随机推荐
Template method mode
HCNP Routing&Switching之DHCP中继
Duplicate content in lookup table
地表最强程序员装备“三件套”,你知道是什么吗?
One article of quantitative framework backtrader: understand indicator indicators
Programming language exercises (I)
Parental delegation mechanism
Internet Download Manager Configuration
What is the meaning of void 0? Is undefined changeable?
EF LINQ Miscellany
Using unity to do simulation, I don't allow this chart plug-in, you don't know
工信安全中心牵头搭建数据流通平台 蚂蚁集团等厂商提供技术支持
QT generation connection Library
Still developing games with unity? Then you're out. Try unity to build an answer system
Meeting OA project progress (I)
查数据库实际数据增长情况
图像像素的逻辑操作
Small end format and big end format (little endian & big endian)
Summary of ROS master-slave communication experience
MySQL basic commands