|
Hugin trunk 0.1
|
program to align a set of well overlapping images (~90%) More...
#include <hugin_config.h>#include <fstream>#include <sstream>#include <iostream>#include <vigra/error.hxx>#include <vigra/cornerdetection.hxx>#include <vigra/localminmax.hxx>#include <hugin_utils/utils.h>#include <vigra_ext/Pyramid.h>#include <vigra_ext/Correlation.h>#include <vigra_ext/InterestPoints.h>#include <vigra_ext/impexalpha.hxx>#include <panodata/Panorama.h>#include <panotools/PanoToolsOptimizerWrapper.h>#include <panodata/StandardImageVariableGroups.h>#include <algorithms/optimizer/PTOptimizer.h>#include <nona/Stitcher.h>#include <algorithms/basic/CalculateOptimalROI.h>#include <lensdb/LensDB.h>#include <getopt.h>#include <hugin_utils/openmp_lock.h>#include <tiff.h>
Go to the source code of this file.
Classes | |
| struct | Parameters |
| struct | SortImageVectorEV |
Namespaces | |
| namespace | detail |
Typedefs | |
| typedef std::multimap< double, vigra::Diff2D > | MapPoints |
Variables | |
| int | g_verbose = 0 |
| static hugin_omp::Lock | lock |
program to align a set of well overlapping images (~90%)
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, see http://www.gnu.org/licenses/.
Definition in file align_image_stack.cpp.
Definition at line 117 of file align_image_stack.cpp.
| void alignStereoWindow | ( | HuginBase::Panorama & | pano, |
| bool | pop_out | ||
| ) |
Definition at line 335 of file align_image_stack.cpp.
References HuginBase::Panorama::getCtrlPoints(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), image1Nr, image2Nr, HuginBase::Panorama::setCtrlPoints(), threshold(), HuginBase::ControlPoint::X, and HuginBase::ControlPoint::X_Y.
Referenced by main2().
| void autoCrop | ( | HuginBase::Panorama & | pano | ) |
Definition at line 437 of file align_image_stack.cpp.
References HuginBase::Panorama::getOptions(), HuginBase::Panorama::setOptions(), HuginBase::PanoramaOptions::setROI(), and threshold().
Referenced by main2().
| void createCtrlPoints | ( | HuginBase::Panorama & | pano, |
| int | img1, | ||
| const ImageType & | leftImg, | ||
| const ImageType & | leftImgOrig, | ||
| int | img2, | ||
| const ImageType & | rightImg, | ||
| const ImageType & | rightImgOrig, | ||
| int | pyrLevel, | ||
| double | scale, | ||
| unsigned | nPoints, | ||
| unsigned | grid, | ||
| double | corrThresh = 0.9, |
||
| bool | stereo = false |
||
| ) |
Definition at line 238 of file align_image_stack.cpp.
References HuginBase::Panorama::addCtrlPoint(), detail::FindInterestPointsPartial(), FineTuneInterestPoints(), g_verbose, threshold(), and HuginBase::ControlPoint::X.
Referenced by main2().
| void FineTuneInterestPoints | ( | HuginBase::Panorama & | pano, |
| int | img1, | ||
| const ImageType & | leftImg, | ||
| const ImageType & | leftImgOrig, | ||
| int | img2, | ||
| const ImageType & | rightImg, | ||
| const ImageType & | rightImgOrig, | ||
| const MapPoints & | points, | ||
| unsigned | nPoints, | ||
| int | pyrLevel, | ||
| int | templWidth, | ||
| int | sWidth, | ||
| double | scaleFactor, | ||
| double | corrThresh, | ||
| bool | stereo | ||
| ) |
Definition at line 144 of file align_image_stack.cpp.
References HuginBase::Panorama::addCtrlPoint(), vigra_ext::CorrelationResult::curv, DEBUG_DEBUG, detail::FineTunePoint(), g_verbose, lock, vigra_ext::CorrelationResult::maxi, vigra_ext::CorrelationResult::maxpos, threshold(), hugin_utils::TDiff2D< T >::x, HuginBase::ControlPoint::X_Y, hugin_utils::TDiff2D< T >::y, and HuginBase::ControlPoint::Y.
Referenced by createCtrlPoints().
Definition at line 1039 of file align_image_stack.cpp.
References Parameters::alignedPrefix, Parameters::alignToFirst, HuginBase::LensDB::LensDB::Clean(), Parameters::corrThresh, Parameters::cpErrorThreshold, Parameters::crop, Parameters::dontRemapRef, Parameters::fisheye, g_verbose, hugin_utils::getExtension(), Parameters::gpu, Parameters::grid, Parameters::hdrFile, Parameters::hfov, hugin_utils::initGPU(), hugin_utils::IsRawExtension(), Parameters::linear, Parameters::loadDistortion, Parameters::nPoints, Parameters::optCenter, Parameters::optDistortion, Parameters::optHFOV, Parameters::optX, Parameters::optY, Parameters::optZ, Parameters::pop_out, Parameters::ptoFile, Parameters::pyrLevel, Parameters::sortImagesByEv, Parameters::stereo, Parameters::stereo_window, hugin_utils::stripPath(), threshold(), usage(), and hugin_utils::wrapupGPU().
| int main2 | ( | std::vector< std::string > | files, |
| Parameters | param | ||
| ) |
Definition at line 539 of file align_image_stack.cpp.
References HuginBase::Panorama::activateImage(), HuginBase::Panorama::addImage(), Parameters::alignedPrefix, alignStereoWindow(), Parameters::alignToFirst, autoCrop(), Parameters::corrThresh, Parameters::cpErrorThreshold, createCtrlPoints(), Parameters::crop, Parameters::dontRemapRef, Parameters::fisheye, HuginBase::PanoramaOptions::FULL_FRAME_FISHEYE, HuginBase::BaseSrcPanoImage::FULL_FRAME_FISHEYE, g_verbose, HuginBase::Panorama::getActiveImages(), HuginBase::Panorama::getCtrlPoints(), HuginBase::Panorama::getCtrlPointsForImage(), HuginBase::Panorama::getImage(), HuginBase::getImagesinROI(), HuginBase::Panorama::getNrOfCtrlPoints(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), HuginBase::Panorama::getSrcImage(), Parameters::gpu, Parameters::grid, HuginBase::PanoramaOptions::HDR, Parameters::hdrFile, Parameters::hfov, HuginBase::PanoramaOptions::huberSigma, vigra::importImageAlpha(), Parameters::linear, Parameters::loadDistortion, Parameters::nPoints, Parameters::optCenter, Parameters::optDistortion, Parameters::optHFOV, HuginBase::PTools::optimize(), Parameters::optX, Parameters::optY, Parameters::optZ, HuginBase::PanoramaOptions::OUTPUT_HDR, HuginBase::PanoramaOptions::OUTPUT_LDR, HuginBase::PanoramaOptions::outputExposureValue, HuginBase::PanoramaOptions::outputFormat, HuginBase::PanoramaOptions::outputMode, HuginBase::PanoramaOptions::outputPixelType, Parameters::pop_out, ptinfoDlg(), Parameters::ptoFile, ptProgress(), Parameters::pyrLevel, HuginBase::SrcPanoImage::readEXIF(), HuginBase::PanoramaOptions::RECTILINEAR, vigra_ext::reduceNTimes(), HuginBase::PanoramaOptions::remapUsingGPU, HuginBase::BaseSrcPanoImage::RESPONSE_LINEAR, HuginBase::Nona::SetAdvancedOption(), HuginBase::Panorama::setCtrlPoints(), HuginBase::PanoramaOptions::setHeight(), HuginBase::PanoramaOptions::setHFOV(), HuginBase::Panorama::setOptimizeVector(), HuginBase::Panorama::setOptions(), HuginBase::PanoramaOptions::setProjection(), HuginBase::PanoramaOptions::setWidth(), Parameters::sortImagesByEv, Parameters::stereo, Parameters::stereo_window, HuginBase::Nona::stitchPanorama(), threshold(), HuginBase::PanoramaOptions::TIFF_m, HuginBase::PanoramaOptions::tiff_saveROI, HuginBase::Panorama::WritePTOFile(), and HuginBase::ControlPoint::X.
Definition at line 521 of file align_image_stack.cpp.
Referenced by main2().
Definition at line 517 of file align_image_stack.cpp.
Referenced by main2().
Definition at line 64 of file align_image_stack.cpp.
References hugin_utils::GetHuginVersion().
| int g_verbose = 0 |
Definition at line 62 of file align_image_stack.cpp.
Referenced by createCtrlPoints(), FineTuneInterestPoints(), main(), and main2().
|
static |
Definition at line 118 of file align_image_stack.cpp.
Referenced by FineTuneInterestPoints().