16 #include "../AtpCommon.h" 17 #include "../src/AtpGenerator.h" 20 using namespace ossim;
23 int main(
int argc,
char *argv[])
33 cout<<
"\nUsage: "<<argv[0]<<
"<mensuration-input.json>\n"<<endl;
44 AtpConfig& config = AtpConfig::instance();
45 const Json::Value& parameters = root[
"parameters"];
48 const Json::Value& pbJson = root[
"photoblock"];
51 vector<shared_ptr<Image> >& imageList = photoblock.
getImageList();
54 shared_ptr<AtpGenerator> generator (
new AtpGenerator(AtpGenerator::CROSSCORR));
55 generator->setRefImage(imageList[0]);
56 generator->setCmpImage(imageList[1]);
57 generator->initialize();
69 generator->m_annotatedRefImage->write();
70 generator->m_annotatedCmpImage->write();
72 cout<<
"\nDone!"<<endl;
82 CWARN <<
"atp-pax-test caught unhandled exception!" << std::endl;
void initialize(int &argc, char **argv)
std::basic_ifstream< char > ifstream
Class for char input file streams.
void addOptions(ossimArgumentParser &parser)
This code was derived from https://gist.github.com/mshockwave.
Class for representing MSP PhotoBlock.
ImageList & getImageList()
void setTiePoints(ossim::TiePointList &atpList)
Used for testing.
virtual const char * what() const
Returns the error message.
Base class for OSSIM-based ATP generators.
THESE FUNCTIONS REQUIRE OPENCV.
int main(int argc, char *argv[])
TiePointList & getTiePointList()
static ossimInit * instance()
virtual void loadJSON(const Json::Value ¶ms_json_node)
Reads the params controlling the process from the JSON node named "parameters".
Singleton class maintaining parameters affecting the automatic tie point generation.