PanoToolsOptimizerWrapper.cpp File Reference

wraps around PTOptimizer More...

#include <hugin_config.h>
#include <sstream>
#include <hugin_utils/utils.h>
#include <stdlib.h>
#include "PanoToolsInterface.h"
#include "PanoToolsOptimizerWrapper.h"

Include dependency graph for PanoToolsOptimizerWrapper.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  HuginBase
namespace  HuginBase::PTools

Functions

unsigned int optimize (PanoramaData &pano, const char *userScript)
 optimize the images imgs, for variables optvec, using vars as start.


Detailed Description

wraps around PTOptimizer

!!derives from PT/PTOptimise.h

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
$Id$

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition in file PanoToolsOptimizerWrapper.cpp.


Function Documentation

IMPEX unsigned int HuginBase::PTools::optimize PanoramaData &  pano,
const char *  script = 0
 

optimize the images imgs, for variables optvec, using vars as start.

saves the control point distances in cps.

Parameters:
panorama description
imgs vector with all image numbers that should be used.
optvect vector of vector of variable names
cps control points
progDisplay progress display
Returns:
0:good, 1:parser error, 2: parameter error

Definition at line 60 of file PanoToolsOptimizerWrapper.cpp.

References fill_set(), HuginBase::PTools::GetAlignInfoCtrlPoints(), HuginBase::PTools::GetAlignInfoVariables(), HuginBase::PanoramaData::getNrOfImages(), HuginBase::PanoramaData::getOptimizeVector(), HuginBase::PanoramaData::getOptions(), makefile::path, HuginBase::PanoramaData::printPanoramaScript(), HuginBase::UIntSet, HuginBase::PanoramaData::updateCtrlPointErrors(), and HuginBase::PanoramaData::updateVariables().

Referenced by HuginLines::_getVerticalLines(), AutoPanoSiftMultiRow::automatch(), HuginBase::AutoOptimise::OptimiseVisitor::discover_vertex(), HuginBase::getCPoutsideLimit_pair(), HuginBase::PTOptEstimator::leastSquaresEstimate(), main(), main2(), PanoDetector::matchMultiRow(), LensCalFrame::Optimize(), optimize_old(), HuginBase::PTOptimizer::runAlgorithm(), OptimizePanel::runOptimizer(), and HuginBase::SmartOptimise::smartOptimize().


Generated on Fri Aug 29 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1