Hugintrunk
0.1
|
program to set "geometric" control points More...
#include <fstream>
#include <sstream>
#include <getopt.h>
#include <panodata/Panorama.h>
#include <algorithms/basic/CalculateOverlap.h>
#include <algorithms/nona/ComputeImageROI.h>
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[]) |
program to set "geometric" control points
Definition in file geocpset.cpp.
void AddGeometricControlPoint | ( | HuginBase::Panorama & | pano, |
size_t | img1, | ||
size_t | img2 | ||
) |
Definition at line 66 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 36 of file geocpset.cpp.
References HuginBase::Panorama::addCtrlPoint(), HuginBase::Panorama::getImage(), HuginBase::SrcPanoImage::isInside(), and HuginBase::PTools::Transform::transformImgCoord().
Referenced by AddGeometricControlPoint().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 302 of file geocpset.cpp.
References HuginBase::Panorama::getNrOfImages(), hugin_utils::GetOutputFilename(), hugin_utils::getPathPrefix(), HuginBase::Panorama::ReadPTOFile(), SetGeometricControlPointsOverlap(), SetGeometricControlPointsUnconnected(), hugin_utils::stripPath(), usage(), and HuginBase::Panorama::WritePTOFile().
void SetGeometricControlPointsOverlap | ( | HuginBase::Panorama & | pano, |
const int | minOverlap | ||
) |
Definition at line 217 of file geocpset.cpp.
References AddGeometricControlPoint(), HuginBase::CalculateImageOverlap::calculate(), HuginBase::Panorama::getCtrlPoints(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::CalculateImageOverlap::getOverlap(), and HuginBase::ControlPoint::X_Y.
Referenced by main().
void SetGeometricControlPointsUnconnected | ( | HuginBase::Panorama & | pano, |
const int | minOverlap | ||
) |
Definition at line 105 of file geocpset.cpp.
References AddGeometricControlPoint(), HuginBase::CalculateImageOverlap::calculate(), HuginBase::Panorama::getCtrlPoints(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::CalculateImageOverlap::getOverlap(), HuginBase::CalculateImageOverlap::limitToImages(), set_contains(), and HuginBase::ControlPoint::X_Y.
Referenced by main().
bool sortByDistance | ( | hugin_utils::FDiff2D | p1, |
hugin_utils::FDiff2D | p2 | ||
) |
Definition at line 60 of file geocpset.cpp.
References hugin_utils::TDiff2D< T >::squareLength().
Referenced by AddGeometricControlPoint().
|
static |
Definition at line 284 of file geocpset.cpp.
References hugin_utils::GetHuginVersion().