-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (21 loc) · 862 Bytes
/
main.cpp
File metadata and controls
31 lines (21 loc) · 862 Bytes
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
#include "PreProcess.h"
int main( int argc, char * argv[] )
{
if( argc < 9 )
{
std::cerr << "Usage: " << std::endl;
std::cerr << argv[0] << " inputImageFile outputFilename lowerThreshold upperThreshold alpha beta conductance numberOfIterations" << std::endl;
return EXIT_FAILURE;
}
std::string inputFilename = argv[1];
std::string outputFilename = argv[2];
float lowerThreshold = atof(argv[3]);
float upperThreshold = atof(argv[4]);
float alpha = atof(argv[5]);
float beta = atof(argv[6]);
float conductance = atof(argv[7]);
int numberOfIterations = atoi(argv[8]);
PreProcess preProcess;
preProcess.RunPreProcess(inputFilename, outputFilename, lowerThreshold, upperThreshold, alpha, beta, conductance, numberOfIterations);
return EXIT_SUCCESS;
}