OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimAtpTool.h
Go to the documentation of this file.
1 //**************************************************************************************************
2 //
3 // OSSIM Open Source Geospatial Data Processing Library
4 // See top level LICENSE.txt file for license information
5 //
6 //**************************************************************************************************
7 
8 #ifndef ossimAtpTool_HEADER
9 #define ossimAtpTool_HEADER 1
10 
13 #include <ossim/base/ossimRefPtr.h>
14 #include <ossim/reg/PhotoBlock.h>
15 #include <ossim/util/ossimTool.h>
16 #include <memory>
17 
18 namespace ATP
19 {
21 {
22 public:
23  enum Method { METHOD_UNASSIGNED=0, GET_ALGO_LIST, GET_PARAMS, GENERATE };
24 
25  static const char* DESCRIPTION;
26 
27  ossimAtpTool();
28 
29  virtual ~ossimAtpTool();
30 
31  virtual void setUsage(ossimArgumentParser& ap);
32 
33  virtual bool initialize(ossimArgumentParser& ap);
34 
35  virtual bool execute();
36 
37  virtual ossimString getClassName() const { return "ossimAtpTool"; }
38 
39  virtual void getKwlTemplate(ossimKeywordlist& kwl);
40 
41  virtual void loadJSON(const Json::Value& json);
42 
43  virtual void saveJSON(Json::Value& json) const { json = m_responseJSON; }
44 
45 private:
46  void getAlgorithms();
47  void getParameters();
48  void generate();
49 
53  void doPairwiseMatching();
54 
56  bool m_verbose;
58  unsigned int m_algorithm;
60  std::string m_configuration;
61  Json::Value m_responseJSON;
62  std::shared_ptr<ossim::PhotoBlock> m_photoBlock;
63 };
64 }
65 #endif /* #ifndef ossimAtpTool_HEADER */
std::ostream * m_outputStream
Definition: ossimAtpTool.h:55
std::string m_configuration
Definition: ossimAtpTool.h:60
Represents serializable keyword/value map.
unsigned int m_algorithm
Definition: ossimAtpTool.h:58
virtual void saveJSON(Json::Value &json) const
Fetch product as JSON object when applicable Always returns true since using exception on error...
Definition: ossimAtpTool.h:43
static const char * DESCRIPTION
Definition: ossimAtpTool.h:25
THESE FUNCTIONS REQUIRE OPENCV.
Json::Value m_responseJSON
Definition: ossimAtpTool.h:61
virtual ossimString getClassName() const
Definition: ossimAtpTool.h:37
#define OSSIM_DLL
std::shared_ptr< ossim::PhotoBlock > m_photoBlock
Definition: ossimAtpTool.h:62
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23