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
+4 -4
View File
@@ -1,6 +1,6 @@
// 修改像素
#include<opencv2/opencv.hpp>
#include<iostream>
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace std;
using namespace cv;
@@ -11,7 +11,8 @@ int main()
Mat image = imread(image_path);
Mat result = image.clone();
if (image.empty()) {
if (image.empty())
{
cout << "错误:无法加载图像,请检查路径是否正确。" << endl;
return -1;
}
@@ -24,5 +25,4 @@ int main()
waitKey(0);
return 0;
}