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
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.
void createAdjustTrform (TrformStr &trf)
void freeImage (Image &img)
 free the pointer storage needed by Image
unsigned int optimize (PanoramaData &pano, const char *script=0)
 optimize the images imgs, for variables optvec, using vars as start.
void calcCtrlPointErrors (PanoramaData &pano)
 Update the Ctrl Point errors without optimizing.


Function Documentation

IMPEX VariableMapVector HuginBase::PTools::GetAlignInfoVariables ( const AlignInfo &  gl  ) 

Definition at line 285 of file PanoToolsInterface.cpp.

Referenced by optimize().

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

Definition at line 319 of file PanoToolsInterface.cpp.

Referenced by calcCtrlPointErrors(), and optimize().

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.

Referenced by HuginBase::PTools::Transform::updatePTData().

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

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 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 cerr, 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(), HuginBase::AutoOptimise::OptimiseVisitor::discover_vertex(), HuginBase::getCPoutsideLimit_pair(), HuginBase::PTOptEstimator::leastSquaresEstimate(), main(), main2(), LensCalFrame::Optimize(), optimize_old(), HuginBase::PTOptimizer::runAlgorithm(), and HuginBase::SmartOptimise::smartOptimize().

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 HuginBase::getCPoutsideLimit(), main(), PT::UpdateSrcImagesCmd::processPanorama(), PT::MergePanoCmd::processPanorama(), PT::ChangeCtrlPointCmd::processPanorama(), PT::AddCtrlPointsCmd::processPanorama(), PT::AddCtrlPointCmd::processPanorama(), PT::SetVariableCmd::processPanorama(), PT::UpdateImagesVariablesCmd::processPanorama(), PT::UpdateCPsCmd::processPanorama(), and PT::wxLoadPTProjectCmd::processPanorama().


Generated on 24 Nov 2014 for Hugintrunk by  doxygen 1.4.7