#include <hugin_config.h>
#include <fstream>
#include <sstream>
#include <vigra/error.hxx>
#include <vigra/impex.hxx>
#include <vigra/cornerdetection.hxx>
#include <vigra/localminmax.hxx>
#include <hugin_utils/utils.h>
#include <hugin_math/hugin_math.h>
#include "vigra/stdimage.hxx"
#include "vigra/stdimagefunctions.hxx"
#include "vigra/functorexpression.hxx"
#include "vigra/transformimage.hxx"
#include <vigra_ext/Pyramid.h>
#include <vigra_ext/Correlation.h>
#include <vigra_ext/InterestPoints.h>
#include <vigra_ext/utils.h>
#include <panodata/Panorama.h>
#include <panodata/StandardImageVariableGroups.h>
#include <panotools/PanoToolsOptimizerWrapper.h>
#include <algorithms/optimizer/PTOptimizer.h>
#include <nona/Stitcher.h>
#include <foreign/levmar/lm.h>
#include <hugin_version.h>
#include <unistd.h>
#include <tiff.h>
Include dependency graph for tca_correct.cpp:

Go to the source code of this file.
Classes | |
| struct | Parameters |
| struct | OptimData |
Defines | |
| #define | DEFAULT_OPTIMISATION_PARAMETER "abcvde" |
Functions | |
| void | usage (const char *name) |
| template<class IMAGET, class ACCESSORT, class IMAGES, class ACCESSORS> | |
| CorrelationResult | PointFineTune2 (const IMAGET &templImg, ACCESSORT access_t, vigra::Diff2D templPos, int templSize, const IMAGES &searchImg, ACCESSORS access_s, vigra::Diff2D searchPos, int sWidth) |
| fine tune a point with normalized cross correlation | |
| template<class ImageType> | |
| void | createCtrlPoints (Panorama &pano, const ImageType &img, int imgRedNr, int imgGreenNr, int imgBlueNr, double scale, int nPoints, int grid) |
| template<class ImageType> | |
| void | createCtrlPointsOld (Panorama &pano, const ImageType &img, int imgRedNr, int imgGreenNr, int imgBlueNr, double scale, double cornerThreshold) |
| void | get_optvars (OptimizeVector &_retval) |
| int | optimize_old (Panorama &pano) |
| double | weightHuber (double x, double sigma) |
| void | optGetError (double *p, double *x, int m, int n, void *data) |
| int | optVis (double *p, double *x, int m, int n, int iter, double sqerror, void *data) |
| void | optimize_new (PanoramaData &pano) |
| int | main2 (Panorama &pano) |
| template<class PixelType> | |
| int | processImg (const char *filename) |
| int | processPTO (const char *filename) |
| void | resetValues (Panorama &pano) |
| void | print_result (Panorama &pano) |
| int | main (int argc, char *argv[]) |
Variables | |
| int | g_verbose = 0 |
| Parameters | g_param |
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 tca_correct.cpp.
|
|
Definition at line 75 of file tca_correct.cpp. |
|
||||||||||||||||||||||||||||||||||||||||
|
Definition at line 390 of file tca_correct.cpp. References HuginBase::Panorama::addCtrlPoint(), cout, vigra_ext::destImage(), vigra_ext::findInterestPointsOnGrid(), g_verbose, celeste::max(), vigra_ext::CorrelationResult::maxi, vigra_ext::CorrelationResult::maxpos, PointFineTune2(), vigra_ext::srcImageRange(), vigra_ext::transformImage(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y. Referenced by main2(), and processImg(). |
|
||||||||||||||||||||||||||||||||||||
|
|
Definition at line 591 of file tca_correct.cpp. References g_param, HuginBase::OptimizeVector, and Parameters::optvars. Referenced by main2(), optimize_new(), and optimize_old(). |
|
||||||||||||
|
Definition at line 1008 of file tca_correct.cpp. References Parameters::blue_name, cerr, Parameters::cpErrorThreshold, g_param, g_verbose, Parameters::green_name, Parameters::grid, Parameters::load, Parameters::nPoints, Parameters::optMethod, Parameters::optvars, processPTO(), Parameters::ptoOutputFile, Parameters::red_name, Parameters::reset, Parameters::scale, and usage(). |
|
|
||||||||||||||||||||||||
|
|
Definition at line 704 of file tca_correct.cpp. References g_verbose, get_optvars(), HuginBase::PanoramaData::getNrOfCtrlPoints(), OptimData::huberSigma, OptimData::m_mapping, optGetError(), HuginBase::OptimizeVector, optVis(), OptimData::SaveToImgs(), and OptimData::ToX(). Referenced by main2(). |
|
|
Definition at line 605 of file tca_correct.cpp. References get_optvars(), HuginBase::PTools::optimize(), HuginBase::OptimizeVector, and HuginBase::Panorama::setOptimizeVector(). Referenced by main2(). |
|
||||||||||||||||||||||||||||||||
|
Definition at line 693 of file tca_correct.cpp. Referenced by optimize_new(). |
|
||||||||||||||||||||||||||||||||||||||||
|
fine tune a point with normalized cross correlation
takes a patch of
The result in returned in
Definition at line 264 of file tca_correct.cpp. References vigra_ext::correlateImage(), vigra_ext::correlateImageFast(), DEBUG_DEBUG, vigra_ext::destImage(), vigra_ext::CorrelationResult::maxi, vigra_ext::CorrelationResult::maxpos, hugin_utils::simpleClipPoint(), vigra_ext::srcImage(), vigra_ext::subpixelMaxima(), hugin_utils::TDiff2D< T >::toDiff2D(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y. Referenced by createCtrlPoints(), and createCtrlPointsOld(). |
|
|
Definition at line 924 of file tca_correct.cpp. References HuginBase::Panorama::getSrcImage(), vigra_ext::pow(), hugin_utils::roundi(), and shift. Referenced by main2(). |
|
||||||||||
|
|
Definition at line 884 of file tca_correct.cpp. References cerr, makefile::ifstream, main2(), HuginBase::Panorama::readData(), and HuginBase::Panorama::setFilePrefix(). Referenced by main(). |
|
|
Definition at line 903 of file tca_correct.cpp. References hugin_utils::FDiff2D, HuginBase::Panorama::getSrcImage(), HuginBase::BaseSrcPanoImage::setHFOV(), HuginBase::BaseSrcPanoImage::setRadialDistortion(), HuginBase::BaseSrcPanoImage::setRadialDistortionCenterShift(), and HuginBase::Panorama::setSrcImage(). Referenced by main2(). |
|
|
Definition at line 218 of file tca_correct.cpp. References cerr. |
|
||||||||||||
|
Definition at line 614 of file tca_correct.cpp. Referenced by optGetError(). |
|
|
Definition at line 112 of file tca_correct.cpp. Referenced by get_optvars(), main(), main2(), and processImg(). |
|
|
Definition at line 77 of file tca_correct.cpp. |
1.3.9.1