geocpset.cpp File Reference

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

#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 (HuginBase::Panorama &pano, size_t img1, size_t img2, HuginBase::PTools::Transform &transform1, HuginBase::PTools::Transform &transform2, double x, double y)
bool sortByDistance (hugin_utils::FDiff2D p1, hugin_utils::FDiff2D p2)
void AddGeometricControlPoint (HuginBase::Panorama &pano, size_t img1, size_t img2)
void SetGeometricControlPointsUnconnected (HuginBase::Panorama &pano, const int minOverlap)
void SetGeometricControlPointsOverlap (HuginBase::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 ( HuginBase::Panorama pano,
size_t  img1,
size_t  img2 
)

Definition at line 69 of file geocpset.cpp.

References CheckAndAddPoint(), HuginBase::PTools::Transform::createTransform(), 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 ( HuginBase::Panorama pano,
size_t  img1,
size_t  img2,
HuginBase::PTools::Transform transform1,
HuginBase::PTools::Transform transform2,
double  x,
double  y 
)

Definition at line 39 of file geocpset.cpp.

References HuginBase::Panorama::addCtrlPoint(), HuginBase::Panorama::getImage(), and HuginBase::PTools::Transform::transformImgCoord().

Referenced by AddGeometricControlPoint().

int main ( int  argc,
char *  argv[] 
)

Definition at line 305 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(), hugin_utils::stripPath(), AppBase::DocumentData::SUCCESSFUL, and usage().

void SetGeometricControlPointsOverlap ( HuginBase::Panorama pano,
const int  minOverlap 
)

Definition at line 220 of file geocpset.cpp.

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

Referenced by main().

void SetGeometricControlPointsUnconnected ( HuginBase::Panorama pano,
const int  minOverlap 
)

Definition at line 108 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::ControlPoint::X_Y, HuginBase::BaseSrcPanoImage::YawisLinked(), and HuginBase::BaseSrcPanoImage::YawisLinkedWith().

Referenced by main().

bool sortByDistance ( hugin_utils::FDiff2D  p1,
hugin_utils::FDiff2D  p2 
)

Definition at line 63 of file geocpset.cpp.

References hugin_utils::TDiff2D< T >::squareLength().

Referenced by AddGeometricControlPoint().

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

Definition at line 287 of file geocpset.cpp.

References cout, and hugin_utils::GetHuginVersion().


Generated on 14 Feb 2016 for Hugintrunk by  doxygen 1.4.7