Hugintrunk
0.1
|
Classes | |
class | Transform |
Holds transformations for Image -> Pano and the other way. More... | |
Functions | |
VariableMapVector | GetAlignInfoVariables (const AlignInfo &gl) |
CPVector | GetAlignInfoCtrlPoints (const AlignInfo &gl) |
void | setDestImage (Image &image, vigra::Diff2D size, unsigned char *imageData, const PanoramaOptions::ProjectionFormat &format, const std::vector< double > &projParams, double destHFOV) |
set an output image, with properties from opts , that points to the bitmap data of imgData More... | |
void | initCPrefs (cPrefs &p, const VariableMap &vars) |
void | setFullImage (Image &image, vigra::Diff2D size, unsigned char *imageData, const VariableMap &vars, const Lens::LensProjectionFormat format, bool correctDistortions) |
fills image with a complete input image, including distortion correction parameters if correctDistortions is set. More... | |
void | createAdjustTrform (TrformStr &trf) |
void | freeImage (Image &img) |
free the pointer storage needed by Image More... | |
unsigned int | optimize (PanoramaData &pano, const char *script=0) |
optimize the images imgs , for variables optvec , using vars as start. More... | |
void | calcCtrlPointErrors (PanoramaData &pano) |
Update the Ctrl Point errors without optimizing. More... | |
IMPEX void HuginBase::PTools::calcCtrlPointErrors | ( | PanoramaData & | pano | ) |
Update the Ctrl Point errors without optimizing.
Definition at line 53 of file PanoToolsUtils.cpp.
References fill_set(), GetAlignInfoCtrlPoints(), HuginBase::PanoramaData::getNrOfCtrlPoints(), HuginBase::PanoramaData::getNrOfImages(), HuginBase::PanoramaData::getOptions(), HuginBase::PanoramaData::printPanoramaScript(), and HuginBase::PanoramaData::updateCtrlPointErrors().
Referenced by CheckProjectFile(), HuginBase::getCPoutsideLimit(), main(), CPListFrame::OnSelectButton(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), PanoCommand::wxApplyTemplateCmd::processPanorama(), PanoCommand::UpdateVariablesCmd::processPanorama(), PanoCommand::wxAddCtrlPointGridCmd::processPanorama(), PanoCommand::UpdateCPsCmd::processPanorama(), PanoCommand::UpdateImageVariablesCmd::processPanorama(), PanoCommand::UpdateImagesVariablesCmd::processPanorama(), PanoCommand::UpdateVariablesByParseExpression::processPanorama(), PanoCommand::SetVariableCmd::processPanorama(), PanoCommand::CenterPanoCmd::processPanorama(), PanoCommand::StraightenPanoCmd::processPanorama(), PanoCommand::AddCtrlPointsCmd::processPanorama(), PanoCommand::MergePanoCmd::processPanorama(), PanoCommand::UpdateSrcImageCmd::processPanorama(), PanoCommand::UpdateSrcImagesCmd::processPanorama(), PanoCommand::SetPanoOptionsCmd::processPanorama(), PanoCommand::RotatePanoCmd::processPanorama(), PanoCommand::TranslatePanoCmd::processPanorama(), PanoCommand::UpdateFocalLengthCmd::processPanorama(), PanoCommand::UpdateCropFactorCmd::processPanorama(), OptimizePanel::runOptimizer(), and PanoCommand::UpdateSingleCtrlPointError().
void HuginBase::PTools::createAdjustTrform | ( | TrformStr & | trf | ) |
Definition at line 520 of file PanoToolsInterface.cpp.
IMPEX void HuginBase::PTools::freeImage | ( | Image & | img | ) |
free the pointer storage needed by Image
does NOT free the data referenced by image
Definition at line 535 of file PanoToolsInterface.cpp.
Referenced by HuginBase::PTools::Transform::updatePTData(), and HuginBase::PTools::Transform::~Transform().
Definition at line 319 of file PanoToolsInterface.cpp.
References HuginBase::ControlPoint::error.
Referenced by calcCtrlPointErrors(), and optimize().
IMPEX VariableMapVector HuginBase::PTools::GetAlignInfoVariables | ( | const AlignInfo & | gl | ) |
Definition at line 285 of file PanoToolsInterface.cpp.
Referenced by optimize().
void HuginBase::PTools::initCPrefs | ( | cPrefs & | p, |
const VariableMap & | vars | ||
) |
Definition at line 370 of file PanoToolsInterface.cpp.
References const_map_get().
Referenced by setFullImage().
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
.
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 |
Definition at line 60 of file PanoToolsOptimizerWrapper.cpp.
References fill_set(), GetAlignInfoCtrlPoints(), GetAlignInfoVariables(), HuginBase::PanoramaData::getNrOfImages(), HuginBase::PanoramaData::getOptimizeVector(), HuginBase::PanoramaData::getOptions(), HuginBase::PanoramaData::printPanoramaScript(), HuginBase::PanoramaData::updateCtrlPointErrors(), and HuginBase::PanoramaData::updateVariables().
Referenced by HuginLines::_getVerticalLines(), AutoPanoSiftMultiRow::automatch(), CPEditorPanel::EstimatePoint(), HuginBase::getCPoutsideLimit_pair(), HuginBase::PTOptEstimator::leastSquaresEstimate(), main(), main2(), PanoDetector::matchMultiRow(), GLPreviewFrame::OnCreateCP(), GLPreviewFrame::OnRemoveCP(), LensCalFrame::Optimize(), optimize_old(), HuginBase::PTOptimizer::runAlgorithm(), OptimizePanel::runOptimizer(), HuginBase::SmartOptimise::smartOptimize(), and HuginBase::AutoOptimiseVisitor::Visit().
IMPEX void HuginBase::PTools::setDestImage | ( | Image & | image, |
vigra::Diff2D | size, | ||
unsigned char * | imageData, | ||
const PanoramaOptions::ProjectionFormat & | format, | ||
const std::vector< double > & | projParams, | ||
double | destHFOV | ||
) |
set an output image, with properties from opts
, that points to the bitmap data of imgData
Definition at line 334 of file PanoToolsInterface.cpp.
References DEBUG_DEBUG, and DEBUG_ERROR.
Referenced by HuginBase::PTools::Transform::updatePTData().
void HuginBase::PTools::setFullImage | ( | Image & | image, |
vigra::Diff2D | size, | ||
unsigned char * | imageData, | ||
const VariableMap & | vars, | ||
const Lens::LensProjectionFormat | format, | ||
bool | correctDistortions | ||
) |
fills image
with a complete input image, including distortion correction parameters if correctDistortions
is set.
Definition at line 444 of file PanoToolsInterface.cpp.
References HuginBase::BaseSrcPanoImage::CIRCULAR_FISHEYE, const_map_get(), DEBUG_FATAL, HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, HuginBase::BaseSrcPanoImage::FISHEYE_EQUISOLID, HuginBase::BaseSrcPanoImage::FISHEYE_ORTHOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_STEREOGRAPHIC, HuginBase::BaseSrcPanoImage::FISHEYE_THOBY, HuginBase::BaseSrcPanoImage::FULL_FRAME_FISHEYE, initCPrefs(), HuginBase::BaseSrcPanoImage::PANORAMIC, and HuginBase::BaseSrcPanoImage::RECTILINEAR.
Referenced by HuginBase::PTools::Transform::updatePTData().