Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
HuginBase::PTools Namespace Reference

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...
 

Function Documentation

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().

IMPEX CPVector HuginBase::PTools::GetAlignInfoCtrlPoints ( const AlignInfo &  gl)

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 
)
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 
)