**## 方法一
Visual studio + opencv**
//文件夹下图像的批量读取
//图像批量处理并保存
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <fstream>
using namespace std;
using namespace cv;
int main(int argc, char** argv)
{
cv::String path = "D:\\C++Project\\Image\\image_Test02\\"; //待处理图片文件夹地
String savedfilename;
vector<cv::String> filenames;
Mat srcImg, dstImg;
glob(path, filenames); //opencv里面用来读取指定路径下文件名的一个很好用的函数
char ad[55] = {
0 };
int dx = 0;
for (int i = 0