[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

HuginBase::PTools Namespace Reference


Classes

class  HuginBase::PTools::Transform
 Holds transformations for Image -> Pano and the other way. More...
class  HuginBase::PTools::AlignInfoWrap
 class around the central align info struct of the panotools library 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 createAdjustPrefs (aPrefs &p, TrformStr &transf)
 create an empty aPrefs structure, suitable for transforming a input picture into an output picture.
void createAdjustTrform (TrformStr &trf)
 prepare a Trform struct for the adjust operation, image -> pano see use createAdjustPrefs(), setAdjustSrcImg() and setAdjustDestImg() to specify the images and transformation options
void freeTrform (TrformStr &trf)
 free the resources associated with a TrformStr.
void freeImage (Image &img)
 free the pointer storage needed by Image
void setAdjustSrcImg (TrformStr &trf, aPrefs &ap, int width, int height, unsigned char *imageData, const VariableMap &vars, const Lens::LensProjectionFormat format, bool correctDistortions)
 set a new input image for inserting into the panorama.
void setAdjustDestImg (TrformStr &trf, aPrefs &ap, int width, int height, unsigned char *imageData, const PanoramaOptions &opts)
 set a new output image for the panorama
void setOptVars (optVars &opt, const std::set< std::string > &optvars)
 set variables to optimize
unsigned int optimize (PanoramaData &pano, const char *userScript)
 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 void HuginBase::PTools::calcCtrlPointErrors PanoramaData &  pano  ) 
 

Update the Ctrl Point errors without optimizing.

void HuginBase::PTools::createAdjustPrefs aPrefs &  p,
TrformStr &  transf
 

create an empty aPrefs structure, suitable for transforming a input picture into an output picture.

the input/output pictures must be specified with: setAdjustSrcImg() and setAdjustDestImg()

void HuginBase::PTools::createAdjustTrform TrformStr &  trf  ) 
 

prepare a Trform struct for the adjust operation, image -> pano see use createAdjustPrefs(), setAdjustSrcImg() and setAdjustDestImg() to specify the images and transformation options

void HuginBase::PTools::freeImage Image &  img  ) 
 

free the pointer storage needed by Image

does NOT free the data referenced by image

void HuginBase::PTools::freeTrform TrformStr &  trf  ) 
 

free the resources associated with a TrformStr.

createAdjustTrform() must have been used to create trf

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

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

void initCPrefs cPrefs &  p,
const VariableMap vars
 

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

void HuginBase::PTools::setAdjustDestImg TrformStr &  trf,
aPrefs &  ap,
int  width,
int  height,
unsigned char *  imageData,
const PanoramaOptions &  opts
 

set a new output image for the panorama

void HuginBase::PTools::setAdjustSrcImg TrformStr &  trf,
aPrefs &  ap,
int  width,
int  height,
unsigned char *  imageData,
const VariableMap vars,
const Lens::LensProjectionFormat  format,
bool  correctDistortions
 

set a new input image for inserting into the panorama.

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

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.

void HuginBase::PTools::setOptVars optVars &  opt,
const std::set< std::string > &  optvars
 

set variables to optimize


Generated on Mon Sep 20 01:01:36 2010 for Hugintrunk by doxygen 1.3.9.1