geocpset.cpp File Reference

program to set "geometric" control points More...

#include <hugin_version.h>
#include <fstream>
#include <sstream>
#include <getopt.h>
#include <unistd.h>
#include <panodata/Panorama.h>
#include <algorithms/basic/CalculateOverlap.h>
#include <algorithms/nona/ComputeImageROI.h>

Include dependency graph for geocpset.cpp:

Include dependency graph

Go to the source code of this file.

Functions

bool CheckAndAddPoint (Panorama &pano, size_t img1, size_t img2, PTools::Transform &transform1, PTools::Transform &transform2, double x, double y)
bool sortByDistance (FDiff2D p1, FDiff2D p2)
void AddGeometricControlPoint (Panorama &pano, size_t img1, size_t img2)
void SetGeometricControlPointsUnconnected (Panorama &pano, const int minOverlap)
void SetGeometricControlPointsOverlap (Panorama &pano, const int minOverlap)
void usage (const char *name)
int main (int argc, char *argv[])


Detailed Description

program to set "geometric" control points

Author:
T. Modes

Definition in file geocpset.cpp.


Function Documentation

void AddGeometricControlPoint Panorama pano,
size_t  img1,
size_t  img2
 

Definition at line 75 of file geocpset.cpp.

References CheckAndAddPoint(), HuginBase::estimateOutputROI(), hugin_utils::FDiff2D, HuginBase::PanoramaOptions::getHeight(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::getWidth(), HuginBase::PanoramaOptions::setROI(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

Referenced by SetGeometricControlPointsOverlap(), and SetGeometricControlPointsUnconnected().

bool CheckAndAddPoint Panorama pano,
size_t  img1,
size_t  img2,
PTools::Transform &  transform1,
PTools::Transform &  transform2,
double  x,
double  y
 

Definition at line 45 of file geocpset.cpp.

References HuginBase::Panorama::addCtrlPoint(), HuginBase::Panorama::getImage(), and HuginBase::SrcPanoImage::isInside().

Referenced by AddGeometricControlPoint().

int main int  argc,
char *  argv[]
 

Definition at line 312 of file geocpset.cpp.

References cerr, cout, fill_set(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), hugin_utils::getPathPrefix(), makefile::ifstream, makefile::ofstream, HuginBase::Panorama::printPanoramaScript(), HuginBase::Panorama::readData(), HuginBase::Panorama::setFilePrefix(), SetGeometricControlPointsOverlap(), SetGeometricControlPointsUnconnected(), makefile::string, HuginBase::UIntSet, and usage().

void SetGeometricControlPointsOverlap Panorama pano,
const int  minOverlap
 

Definition at line 227 of file geocpset.cpp.

References AddGeometricControlPoint(), HuginBase::CalculateImageOverlap::calculate(), cout, HuginBase::CPVector, HuginBase::Panorama::getCtrlPoints(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::CalculateImageOverlap::getOverlap(), HuginBase::UIntSet, HuginBase::BaseSrcPanoImage::YawisLinked(), and HuginBase::BaseSrcPanoImage::YawisLinkedWith().

Referenced by main().

void SetGeometricControlPointsUnconnected Panorama pano,
const int  minOverlap
 

Definition at line 114 of file geocpset.cpp.

References AddGeometricControlPoint(), HuginBase::CalculateImageOverlap::calculate(), cout, HuginBase::CPVector, HuginBase::Panorama::getCtrlPoints(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::CalculateImageOverlap::getOverlap(), HuginBase::CalculateImageOverlap::limitToImages(), set_contains(), HuginBase::UIntSet, HuginBase::BaseSrcPanoImage::YawisLinked(), and HuginBase::BaseSrcPanoImage::YawisLinkedWith().

Referenced by main().

bool sortByDistance FDiff2D  p1,
FDiff2D  p2
 

Definition at line 69 of file geocpset.cpp.

References hugin_utils::FDiff2D, and hugin_utils::TDiff2D< T >::squareLength().

void usage const char *  name  )  [static]
 

Definition at line 294 of file geocpset.cpp.

References cout.


Generated on Thu Sep 18 01:25:42 2014 for Hugintrunk by  doxygen 1.3.9.1