OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimAtpTool.h>
Public Types | |
enum | Method { METHOD_UNASSIGNED =0, GET_ALGO_LIST, GET_PARAMS, GENERATE } |
Public Member Functions | |
ossimAtpTool () | |
virtual | ~ossimAtpTool () |
virtual void | setUsage (ossimArgumentParser &ap) |
Initializes the aurgument parser with expected parameters and options. More... | |
virtual bool | initialize (ossimArgumentParser &ap) |
Initializes from command line arguments. More... | |
virtual bool | execute () |
Writes product to output file if applicable. More... | |
virtual ossimString | getClassName () const |
virtual void | getKwlTemplate (ossimKeywordlist &kwl) |
Assigns a template keywordlist to string for initializing derived classes. More... | |
virtual void | loadJSON (const Json::Value &json) |
Reads processing params from JSON object provided. More... | |
virtual void | saveJSON (Json::Value &json) const |
Fetch product as JSON object when applicable Always returns true since using exception on error. More... | |
![]() | |
ossimTool () | |
virtual | ~ossimTool () |
virtual void | initialize (const ossimKeywordlist &kwl) |
Reads processing params from KWL and prepares for execute. More... | |
virtual const std::string & | getResponse () const |
Fetch product as string (typically JSON) when applicable, otherwise passes back empty string. More... | |
virtual void | clear () |
Disconnects and clears the DEM and image layers. More... | |
virtual void | abort () |
Kills current (asynchronous) process. More... | |
void | getAPI (std::string &out) const |
Outputs a JSON representation of the Utility's API. More... | |
std::string | getAPI () const |
void | getBuildDate (std::string &s) const |
Gets build date. More... | |
void | getRevision (std::string &s) const |
Gets revision. More... | |
void | getVersion (std::string &s) const |
Gets version. More... | |
virtual bool | isChipProcessor () const |
Overrides base class implementation to indicate this class supports getChip() calls. More... | |
void | setOutputStream (std::ostream *os) |
Redirects any console output to the supplied stream for logging or JNI application. More... | |
bool | helpRequested () const |
Returns true when the initialization detects a "--help" option, so caller can avoid subsequent execute() call. More... | |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
![]() | |
JsonInterface () | |
virtual | ~JsonInterface () |
Static Public Attributes | |
static const char * | DESCRIPTION |
Private Member Functions | |
void | getAlgorithms () |
void | getParameters () |
void | generate () |
void | doPairwiseMatching () |
When the ATP generator works with image pairs (crosscorr and descriptor), This method is used to loop over all image pairs and assemble the final tiepoint list for all. More... | |
Private Attributes | |
std::ostream * | m_outputStream |
bool | m_verbose |
bool | m_featureBased |
unsigned int | m_algorithm |
Method | m_method |
std::string | m_configuration |
Json::Value | m_responseJSON |
std::shared_ptr< ossim::PhotoBlock > | m_photoBlock |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
ossimKeywordlist | m_kwl |
std::ostream * | m_consoleStream |
bool | m_helpRequested |
std::string | m_response |
Definition at line 20 of file ossimAtpTool.h.
Enumerator | |
---|---|
METHOD_UNASSIGNED | |
GET_ALGO_LIST | |
GET_PARAMS | |
GENERATE |
Definition at line 23 of file ossimAtpTool.h.
ATP::ossimAtpTool::ossimAtpTool | ( | ) |
Definition at line 25 of file ossimAtpTool.cpp.
|
virtual |
Definition at line 34 of file ossimAtpTool.cpp.
|
private |
When the ATP generator works with image pairs (crosscorr and descriptor), This method is used to loop over all image pairs and assemble the final tiepoint list for all.
Definition at line 291 of file ossimAtpTool.cpp.
References ossim::JsonParam::asBool(), CINFO, ossim::JsonConfig::getParameter(), ATP::AtpConfig::instance(), m_algorithm, m_photoBlock, and m_responseJSON.
Referenced by generate().
|
virtual |
Writes product to output file if applicable.
The product may also beAlways returns true since using exception on error.
Implements ossimTool.
Definition at line 192 of file ossimAtpTool.cpp.
References CFATAL, GENERATE, generate(), GET_ALGO_LIST, GET_PARAMS, getAlgorithms(), getParameters(), m_method, m_outputStream, m_responseJSON, and ossimException::what().
|
private |
Definition at line 269 of file ossimAtpTool.cpp.
References ATP::AtpGenerator::ALGO_UNASSIGNED, ATP::AtpGenerator::CROSSCORR, ATP::AtpGenerator::DESCRIPTOR, doPairwiseMatching(), m_algorithm, and ATP::AtpGenerator::NASA.
Referenced by execute().
|
private |
Definition at line 240 of file ossimAtpTool.cpp.
References m_responseJSON.
Referenced by execute().
|
inlinevirtual |
Reimplemented from ossimTool.
Definition at line 37 of file ossimAtpTool.h.
|
virtual |
Assigns a template keywordlist to string for initializing derived classes.
Reimplemented from ossimTool.
Definition at line 236 of file ossimAtpTool.cpp.
|
private |
Definition at line 258 of file ossimAtpTool.cpp.
References ATP::AtpConfig::instance(), m_responseJSON, and ossim::JsonConfig::saveJSON().
Referenced by execute().
|
virtual |
Initializes from command line arguments.
This base class has some common arguments to read. The derived class should call this implementation in addition to setting its own arguments.
ap | Represents command line. |
Reimplemented from ossimTool.
Definition at line 65 of file ossimAtpTool.cpp.
References CFATAL, GENERATE, GET_ALGO_LIST, GET_PARAMS, ossimTool::initialize(), loadJSON(), ossimTool::m_helpRequested, m_method, m_outputStream, m_verbose, and ossimArgumentParser::read().
|
virtual |
Reads processing params from JSON object provided.
If all good, the object is ready for subsequent call to execute().
Reimplemented from ossimTool.
Definition at line 122 of file ossimAtpTool.cpp.
References ATP::AtpGenerator::ALGO_UNASSIGNED, ossim::JsonParam::asString(), CINFO, ATP::AtpGenerator::CROSSCORR, ATP::AtpGenerator::DESCRIPTOR, ossim::JsonConfig::diagnosticLevel(), GENERATE, GET_ALGO_LIST, GET_PARAMS, ossim::JsonConfig::getParameter(), ATP::AtpConfig::instance(), ossim::JsonConfig::loadJSON(), m_algorithm, m_configuration, m_method, m_photoBlock, ATP::AtpGenerator::NASA, and ATP::AtpConfig::readConfig().
Referenced by initialize().
|
inlinevirtual |
Fetch product as JSON object when applicable Always returns true since using exception on error.
json | Returns non-empty object if valid response available. |
Reimplemented from ossimTool.
Definition at line 43 of file ossimAtpTool.h.
|
virtual |
Initializes the aurgument parser with expected parameters and options.
It does not output anything. To see the usage, the caller will need to do something like:
ap.getApplicationUsage()->write(<ostream>);
This base class has some common arguments to add. The derived class should call this implementation in addition to setting its own arguments.
Reimplemented from ossimTool.
Definition at line 38 of file ossimAtpTool.cpp.
References ossimApplicationUsage::addCommandLineOption(), ossimArgumentParser::getApplicationName(), ossimArgumentParser::getApplicationUsage(), ossimApplicationUsage::setCommandLineUsage(), and ossimTool::setUsage().
|
static |
Definition at line 25 of file ossimAtpTool.h.
|
private |
Definition at line 58 of file ossimAtpTool.h.
Referenced by doPairwiseMatching(), generate(), and loadJSON().
|
private |
Definition at line 60 of file ossimAtpTool.h.
Referenced by loadJSON().
|
private |
Definition at line 57 of file ossimAtpTool.h.
|
private |
Definition at line 59 of file ossimAtpTool.h.
Referenced by execute(), initialize(), and loadJSON().
|
private |
Definition at line 55 of file ossimAtpTool.h.
Referenced by execute(), and initialize().
|
private |
Definition at line 62 of file ossimAtpTool.h.
Referenced by doPairwiseMatching(), and loadJSON().
|
private |
Definition at line 61 of file ossimAtpTool.h.
Referenced by doPairwiseMatching(), execute(), getAlgorithms(), and getParameters().
|
private |
Definition at line 56 of file ossimAtpTool.h.
Referenced by initialize().