triskele/include/Appli/Option.hpp
Git Merciol db7037f624 modifié : include/Appli/Option.hpp
modifié :         src/Appli/Option.cpp
	modifié :         src/apGenerator.cpp
2018-02-25 19:57:12 +01:00

43 lines
1.0 KiB
C++

#ifndef _OTB_TRISKELE_OPTION_HPP
#define _OTB_TRISKELE_OPTION_HPP
#include <iostream>
#include <vector>
#include <boost/thread.hpp>
#include "triskeleBase.hpp"
#include "IImage.hpp"
#include "Appli/Selected.hpp"
namespace otb {
namespace triskele {
using namespace ::triskele;
// ========================================
class Option {
public:
bool debugFlag;
IImage inputImage;
IImage outputImage;
Point topLeft = NullPoint;
Size size = NullSize;
Selected selectedBand;
vector<DimImg> areaThresholds;
vector<double> sdThresholds, moiThresholds;
unsigned int coreCount = boost::thread::hardware_concurrency ();
bool maxTreeFlag = false, minTreeFlag = false, tosTreeFlag = false;
bool oneBand = false;
Option ();
Option (int argc, char** argv);
void usage (string msg = "", bool hidden = false);
void parse (int argc, char** argv);
};
}//namespace triskele
}//namespace otb
#endif //_OTB_TRISKELE_OPTION_HPP