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:

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)
static 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(), HuginBase::PanoramaOptions::getHeight(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::getWidth(), HuginBase::PanoramaOptions::setROI(), sortByDistance(), 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 HuginBase::append(), cerr, cout, fill_set(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), hugin_utils::getPathPrefix(), HuginBase::Panorama::printPanoramaScript(), HuginBase::Panorama::readData(), HuginBase::Panorama::setFilePrefix(), SetGeometricControlPointsOverlap(), SetGeometricControlPointsUnconnected(), and usage().

void SetGeometricControlPointsOverlap ( Panorama pano,
const int  minOverlap 
)

Definition at line 227 of file geocpset.cpp.

References AddGeometricControlPoint(), HuginBase::CalculateImageOverlap::calculate(), cout, HuginBase::Panorama::getCtrlPoints(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::CalculateImageOverlap::getOverlap(), 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::Panorama::getCtrlPoints(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::CalculateImageOverlap::getOverlap(), HuginBase::CalculateImageOverlap::limitToImages(), set_contains(), 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::TDiff2D< T >::squareLength().

Referenced by AddGeometricControlPoint().

static void usage ( const char *  name  )  [static]

Definition at line 294 of file geocpset.cpp.

References cout.


Generated on 29 Nov 2014 for Hugintrunk by  doxygen 1.4.7