-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
35 lines (28 loc) · 867 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <iostream>
#include "src/include/GrabCutter.h"
using namespace std;
int main() {
cout << "--- MAIN START ---" << endl;
auto grabCutter = make_unique<GrabCutter>(R"(D:\Code\C\clionCpp\GrabCut\output\)");
std::string imageFileName = "ex3.jpg";
grabCutter->start(R"(D:\Code\C\clionCpp\GrabCut\test_textures\)" + imageFileName);
cout << "--- MAIN FINISH ---" << endl;
return 0;
}
//int main (int argc,char *argv[]){
// if(argc!=2 && argc!=3){
// cout<<"Wrong number of parameters ("<<argc<<"). Should be 1 or 2."<<endl;
// return -1;
// }
//
// cout << "--- START ---" << endl;
//
// auto outputPath="./";
// if(argc==3){
// outputPath=argv[2];
// }
// auto grabCutter = make_unique<GrabCutter>(outputPath);
// grabCutter->start(argv[1]);
//
// cout << "--- FINISH ---" << endl;
//}