-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.cpp
executable file
·52 lines (38 loc) · 1.26 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include <cv.h>
#include <highgui.h>
#include "TranslateScale.hpp"
#include "Rotate.hpp"
#include "SIFTRegistration.hpp"
#include "Register.hpp"
#include "RoiInfo.hpp"
#include "Utils.hpp"
#include "chrono"
/*
*
* Created on: Jan 20, 2016
* Author: lohsy
* Improved on: Apr 01, 2018
* Author: mahsa
*
*/
using namespace cv;
int main (int argc, char** argv) {
bool log = false;
std::string cases [] = {"Patient1"};
std::string patients [] = {"Case1"};
int numImages [] = {100};
int firstSlice [] = {1};
std::string IDS [] = {"101"}; // does not matter just an indicator
double lambdas [] = {0.02}; // the weight for the affine matrix cost function
auto start = std::chrono::steady_clock::now();
for(int i=0; i< 1; i++) {
std::string id = IDS[0];
double lambda = lambdas[0];
std::string mumfordAppLocation = "/home/images/"+cases[i]+"/gray_levels.sh";
std::string roiSelectionApp = "/home/images/"+cases[i]+"/setRegionOfInterest.py";
Register r("/home/images/"+cases[i]+"/"+patients[i], patients[i], id, lambda, firstSlice[i], numImages[i],
mumfordAppLocation, roiSelectionApp, log);
}
auto end = std::chrono::steady_clock::now();
std::cout << "Duration in seconds: " << std::chrono::duration_cast<std::chrono::seconds>(end-start).count();
}