18 lines
374 B
C++
18 lines
374 B
C++
#include <iostream>
|
|
#include "opencv2/opencv.hpp"
|
|
|
|
using namespace std;
|
|
using namespace cv;
|
|
|
|
int main(int argc, char* argv[]) {
|
|
if (argc < 3) {
|
|
cerr << "useage: " << argv[0] << " <image_file1> <image_file2> [<image_file3>...]" << endl;
|
|
exit(EXIT_FAILURE);
|
|
}
|
|
vector<Mat> imgs;
|
|
for (int i = 1; i < argc; i++) {
|
|
Mat img = imread(argv[i]);
|
|
|
|
imgs.push_back(img);
|
|
}
|
|
} |