Format Code

This commit is contained in:
2026-03-16 20:36:25 +08:00
Unverified
parent 3ea1e48f4c
commit aa7ab9c429
4 changed files with 17 additions and 15 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
// 图像通道分离与合并
#include<opencv2/opencv.hpp>
#include<iostream>
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace std;
using namespace cv;
@@ -13,7 +13,7 @@ int main()
// 定义向量数组接收通道
vector<Mat> channels;
// 拆分
split(result,channels);
split(result, channels);
Mat b = channels[0];
Mat g = channels[1];
@@ -31,9 +31,9 @@ int main()
channels_to_merge.push_back(r);
merge(channels_to_merge, merged_img);
imshow("merged",merged_img);
imshow("merged", merged_img);
waitKey(0);
return(0);
return (0);
}