18 #include "../AtpCommon.h" 21 using namespace ossim;
23 int main(
int argc,
char *argv[])
33 cout<<
"\nUsage: "<<argv[0]<<
"<mensuration-input.json>\n"<<endl;
43 const Json::Value& pbJson = root[
"photoblock"];
46 vector<shared_ptr<Image> >& imageList = photoblock.
getImageList();
52 NEWMAT::SymmetricMatrix cov;
54 int numImages = imageList.size();
57 for (
int i=0; i<numImages; i++)
60 unsigned int index = imageList[i]->getEntryIndex();
71 vector<ossimDpt> observations;
79 for (
unsigned int n=0;
n<tpList.size();
n++)
81 for (
unsigned int i=0; i<numImages; i++)
83 tpList[
n]->getImagePoint(i, imageId, imagePoint, cov);
84 observations.push_back(imagePoint);
89 cout <<
"\n intersection GPT: "<<resultGpt<<
"\n"<<cov3d<<endl;
91 cout<<
"\nDone!"<<endl;
100 CWARN <<
"ossim-foo 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()
ossimSensorModelTuple::IntersectStatus intersect(const DptSet_t obs, ossimEcefPoint &pt, NEWMAT::Matrix &covMat) const
Multi-image intersection method.
ossimProjection * createProjection(const ossimFilename &filename, ossim_uint32 entryIdx) const
virtual const char * what() const
Returns the error message.
int main(int argc, char *argv[])
os2<< "> n<< " > nendobj n
static ossimProjectionFactoryRegistry * instance()
TiePointList & getTiePointList()
static ossimInit * instance()
void addImage(ossimSensorModel *image)
Method to add an image to the tuple.