[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 Namespace Reference

mainly consists of wrapper around the pano tools library, to assist in ressource management and to provide a nicer interface. More...


Classes

class  HuginBase::PanoramaAlgorithm
class  HuginBase::TimeConsumingPanoramaAlgorithm
class  HuginBase::StitcherAlgorithm
 Just a conceptual base class... More...
class  HuginBase::ImageStitcherAlgorithm
 stitch to file output More...
class  HuginBase::FileOutputStitcherAlgorithm
 stitch to file output More...
class  HuginBase::CalculateCPStatistics
 just some common implementation; probably not so useful More...
class  HuginBase::CalculateCPStatisticsError
class  HuginBase::CalculateCPStatisticsRadial
class  HuginBase::CalculateMeanExposure
class  HuginBase::CalculateOptimalROI
struct  HuginBase::CalculateOptimalROI::nonrec
class  HuginBase::CalculateOptimalScale
class  HuginBase::SetWidthOptimal
class  HuginBase::CalculateImageOverlap
 class for calculating overlap of images More...
class  HuginBase::RotatePanorama
class  HuginBase::StraightenPanorama
class  HuginBase::CalculateFOV
class  HuginBase::CenterHorizontally
class  HuginBase::ComputeImageROI
class  HuginBase::CalculateFitPanorama
class  HuginBase::FitPanorama
class  HuginBase::NonaFileOutputStitcher
 This class will use the stitchPanorama function of nona. More...
class  HuginBase::NonaImageStitcher
class  HuginBase::NonaDifferenceImageStitcher
class  HuginBase::NonaHDRImageStitcher
struct  HuginBase::OverlapSizeCounter
 count pixels that are > 0 in both images More...
class  HuginBase::PhotometricOptimizer
struct  HuginBase::PhotometricOptimizer::VarMapping
struct  HuginBase::PhotometricOptimizer::OptimData
class  HuginBase::SmartPhotometricOptimizer
class  HuginBase::PTOptimizer
class  HuginBase::AutoOptimise
class  HuginBase::AutoOptimise::OptimiseVisitor
 a traverse functor to optimise the image links More...
class  HuginBase::SmartOptimizerStub
class  HuginBase::SmartOptimise
class  HuginBase::PanoramaMakefileExport
struct  HuginBase::PanoramaMakefileExport::PTPrograms
class  HuginBase::PointSampler
class  HuginBase::AllPointSampler
class  HuginBase::RandomPointSampler
class  HuginBase::SmallRemappedImageCache
 class to cache remapped images, loaded from the hugin small image cache. More...
class  HuginBase::GetRange< T1 >
class  HuginBase::ImageCache
 This is a cache for all the images we use. More...
struct  HuginBase::ImageCache::Entry
 information about an image inside the cache More...
struct  HuginBase::ImageCache::PyramidKey
 get a pyramid image.
class  HuginBase::PanoCommand< StringType >
 Default panorama cmd, provides undo with mementos. More...
class  HuginBase::ControlPoint
 represents a control point More...
class  HuginBase::DestPanoImage
 Holds information about the destination image. More...
class  HuginBase::ImageVariable< Type >
 An ImageVariable stores a value that can be linked to other ImageVariables of the same type. More...
class  HuginBase::ConstImageVariableGroup
 An ImageVariableGroup is a collection of image variables that can have some shared variable values. More...
class  HuginBase::ImageVariableGroup
 Same as above, but use a non const panorama. More...
class  HuginBase::PTOVariableConverterNoOp
 Parent class to anything that aids conversion between PTO file variables and the image variables of SrcPanoImg. More...
class  HuginBase::PTOVariableConverterSingle< code1, code2, code3, T >
 Object to group conversion functions for PTO format variables of up to three characters representing a single variable in SrcPanoImg. More...
class  HuginBase::PTOVariableConverterVectorChar< base_code, T, size >
 Object to group conversion functions for PTO format variables representing a std::vector variable in SrcPanoImg, using an identifying first character. More...
class  HuginBase::PTOVariableConverterVector< T, size >
 Object to group conversion functions for PTO format variables representing a std::vector variable in SrcPanoImg, using characters stating from 'a'. More...
class  HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >
 Object to group conversion functions for PTO format variables representing a hugin_utils::FDiff2D variable in SrcPanoImg. More...
class  HuginBase::Lens
class  HuginBase::MaskPolygon
 base class, which stores one polygon More...
struct  HuginBase::Keypoint
 structure that contains a single keypoint (SIFT, SURF, or similar) More...
struct  HuginBase::ImageOptions
 optimization & stitching options. More...
class  HuginBase::PanoImage
 This class holds an source image. More...
class  HuginBase::PanoramaMemento
 Memento class for a Panorama object. More...
class  HuginBase::Panorama
 Model for a panorama. More...
class  HuginBase::PanoramaData
 Model for a panorama. More...
class  HuginBase::PanoramaObserver
 this handler class will receive change events from the Panorama. More...
class  HuginBase::PanoramaDataMemento
 Memento class for a PanoramaData object. More...
class  HuginBase::ManagedPanoramaData
class  HuginBase::PanoramaOptions
 Panorama image options. More...
class  HuginBase::Variable
 a variable has a value and a name. More...
class  HuginBase::LinkedVariable
class  HuginBase::LensVariable
 A lens variable can be linked. More...
struct  HuginBase::PrintVar
 functor to print a variable. More...
class  HuginBase::BaseSrcPanoImage
 Base class containing all the variables, but missing some of the other important functions and with some daft accessors. More...
class  HuginBase::SrcPanoImage
 All variables of a source image. More...
class  HuginBase::ConstStandardImageVariableGroups
 Make an ImageVariableGroup for lenses and other common concepts. More...
class  HuginBase::StandardImageVariableGroups

Typedefs

typedef boost::adjacency_list<
boost::vecS, boost::vecS,
boost::undirectedS, boost::property<
boost::vertex_color_t, boost::default_color_type > > 
CPGraph
 graph of images, connected with control points.
typedef std::vector< std::set<
unsigned > > 
CPComponents
 components in a control point graph
typedef boost::property< boost::edge_weight_t,
float > 
OverlapEdgeProperty
typedef boost::adjacency_list<
boost::vecS, boost::vecS,
boost::undirectedS, boost::property<
boost::vertex_color_t, boost::default_color_type >,
OverlapEdgeProperty
OverlapGraph
 A graph that contains all image as nodes (vertexes), overlaps are given by edges.
typedef std::vector< ControlPointCPVector
typedef PTOVariableConverterNoOp PTOVariableConverterForFilename
 image_variables.h
typedef PTOVariableConverterNoOp PTOVariableConverterForSize
typedef PTOVariableConverterNoOp PTOVariableConverterForProjection
typedef PTOVariableConverterSingle<
'v'> 
PTOVariableConverterForHFOV
typedef PTOVariableConverterNoOp PTOVariableConverterForResponseType
typedef PTOVariableConverterVectorChar<
'R', float, 5 > 
PTOVariableConverterForEMoRParams
typedef PTOVariableConverterSingle<
'E', 'e', 'v'> 
PTOVariableConverterForExposureValue
typedef PTOVariableConverterNoOp PTOVariableConverterForGamma
typedef PTOVariableConverterSingle<
'E', 'r'> 
PTOVariableConverterForWhiteBalanceRed
typedef PTOVariableConverterSingle<
'E', 'b'> 
PTOVariableConverterForWhiteBalanceBlue
typedef PTOVariableConverterSingle<
'r'> 
PTOVariableConverterForRoll
typedef PTOVariableConverterSingle<
'p'> 
PTOVariableConverterForPitch
typedef PTOVariableConverterSingle<
'y'> 
PTOVariableConverterForYaw
typedef PTOVariableConverterSingle<
'T','r','X'> 
PTOVariableConverterForX
typedef PTOVariableConverterSingle<
'T','r','Y'> 
PTOVariableConverterForY
typedef PTOVariableConverterSingle<
'T','r','Z'> 
PTOVariableConverterForZ
typedef PTOVariableConverterSingle<
'j'> 
PTOVariableConverterForStack
typedef PTOVariableConverterVector<
double, 3 > 
PTOVariableConverterForRadialDistortion
typedef PTOVariableConverterNoOp PTOVariableConverterForRadialDistortionRed
typedef PTOVariableConverterNoOp PTOVariableConverterForRadialDistortionBlue
typedef PTOVariableConverterFDiff2D<
'd', 'e'> 
PTOVariableConverterForRadialDistortionCenterShift
typedef PTOVariableConverterFDiff2D<
'g', 't'> 
PTOVariableConverterForShear
typedef PTOVariableConverterNoOp PTOVariableConverterForCropMode
typedef PTOVariableConverterNoOp PTOVariableConverterForCropRect
typedef PTOVariableConverterNoOp PTOVariableConverterForAutoCenterCrop
typedef PTOVariableConverterNoOp PTOVariableConverterForFlatfieldFilename
typedef PTOVariableConverterNoOp PTOVariableConverterForVigCorrMode
typedef PTOVariableConverterVectorChar<
'V', double, 4 > 
PTOVariableConverterForRadialVigCorrCoeff
typedef PTOVariableConverterFDiff2D<
'V','V', 'x','y'> 
PTOVariableConverterForRadialVigCorrCenterShift
typedef PTOVariableConverterNoOp PTOVariableConverterForExifModel
typedef PTOVariableConverterNoOp PTOVariableConverterForExifMake
typedef PTOVariableConverterNoOp PTOVariableConverterForExifCropFactor
typedef PTOVariableConverterNoOp PTOVariableConverterForExifFocalLength
typedef PTOVariableConverterNoOp PTOVariableConverterForExifOrientation
typedef PTOVariableConverterNoOp PTOVariableConverterForExifAperture
typedef PTOVariableConverterNoOp PTOVariableConverterForExifISO
typedef PTOVariableConverterNoOp PTOVariableConverterForExifDistance
typedef PTOVariableConverterNoOp PTOVariableConverterForExifFocalLength35
typedef PTOVariableConverterNoOp PTOVariableConverterForExifExposureTime
typedef PTOVariableConverterNoOp PTOVariableConverterForExifDate
typedef PTOVariableConverterNoOp PTOVariableConverterForFeatherWidth
typedef PTOVariableConverterNoOp PTOVariableConverterForMasks
typedef PTOVariableConverterNoOp PTOVariableConverterForActiveMasks
typedef PTOVariableConverterNoOp PTOVariableConverterForMorph
typedef PTOVariableConverterNoOp PTOVariableConverterForActive
typedef PTOVariableConverterNoOp PTOVariableConverterForLensNr
typedef std::vector< LensLensVector
typedef std::vector< FDiff2DVectorPolygon
 vector, which stores coordinates of one polygon
typedef std::vector< MaskPolygonMaskPolygonVector
typedef std::set< unsigned
int > 
UIntSet
typedef std::vector< unsigned
int > 
UIntVector
typedef std::map< std::string,
Variable
VariableMap
typedef std::vector< VariableMapVariableMapVector
typedef std::map< std::string,
LensVariable
LensVarMap
typedef std::vector< std::set<
std::string > > 
OptimizeVector
typedef std::vector< SrcPanoImageImageVector

Functions

UIntSet getCPoutsideLimit_pair (Panorama pano, double n)
 optimises images pairwise and removes for every image pair control points with error > mean+n*sigma
UIntSet getCPoutsideLimit (Panorama pano, double n)
 optimises the whole panorama and removes all control points with error > mean+n*sigma
UIntSet getCPinMasks (HuginBase::Panorama pano)
 returns these control points, which are in masks
template<class TRANSFORM>
void estimateImageRect (const SrcPanoImage &src, const PanoramaOptions &dest, TRANSFORM &transf, vigra::Rect2D &imgRect)
 calculate the outline of the image
template<class TRANSFORM>
void estimateImageAlpha (const SrcPanoImage &src, const PanoramaOptions &dest, TRANSFORM &transf, vigra::Rect2D &imgRect, vigra::BImage &alpha, double &scale)
vigra::Rect2D estimateOutputROI (const PanoramaData &pano, const PanoramaOptions &opts, unsigned i)
void createCPGraph (const PanoramaData &pano, CPGraph &graph)
 create a control point graph structure, with links representing one or more control points
int findCPComponents (const CPGraph &graph, CPComponents &comp)
void createOverlapGraph (const PanoramaData &pano, OverlapGraph &graph)
 create a graph with all overlaps, and a suitable blend order.
double weightHuber (double x, double sigma)
 expects the abs(error) values
vector< UIntSetgetHDRStacks (const PanoramaData &pano, UIntSet allImgs)
vector< UIntSetgetExposureLayers (const PanoramaData &pano, UIntSet allImgs)
UIntSet getImagesinROI (const PanoramaData &pano, const UIntSet activeImages)
void checkProg (std::ostream &o, const std::string &progName, const std::string &progCommand)
 VIGRA_EXT_GETRANGE (vigra::UInt8, 0, 255)
 VIGRA_EXT_GETRANGE (vigra::Int16, 0, 32767)
 VIGRA_EXT_GETRANGE (vigra::UInt16, 0, 65535)
 VIGRA_EXT_GETRANGE (vigra::Int32, 0, 2147483647)
 VIGRA_EXT_GETRANGE (vigra::UInt32, 0, 4294967295u)
 VIGRA_EXT_GETRANGE (float, 0, 1.0f)
 VIGRA_EXT_GETRANGE (double, 0, 1.0)
template<class SrcIMG>
void convertTo8Bit (SrcIMG &src, const std::string &origType, vigra::BRGBImage &dest)
 image_variable (Filename, std::string,"") image_variable(Size
RECTILINEAR image_variable (HFOV, double, 50.0) image_variable(ResponseType
RECTILINEAR RESPONSE_EMOR image_variable (EMoRParams, std::vector< float >, std::vector< float >(5, 0.0)) image_variable(ExposureValue
RECTILINEAR RESPONSE_EMOR image_variable (Gamma, double, 1.0) image_variable(WhiteBalanceRed
RECTILINEAR RESPONSE_EMOR image_variable (WhiteBalanceBlue, double, 1.0) image_variable(Roll
RECTILINEAR RESPONSE_EMOR image_variable (Pitch, double, 0.0) image_variable(Yaw
RECTILINEAR RESPONSE_EMOR image_variable (X, double, 0.0) image_variable(Y
RECTILINEAR RESPONSE_EMOR image_variable (Z, double, 0.0) image_variable(Stack
RECTILINEAR RESPONSE_EMOR image_variable (RadialDistortion, std::vector< double >, distortion_default) image_variable(RadialDistortionRed
RECTILINEAR RESPONSE_EMOR
distortion_default NO_CROP 
image_variable (CropRect, vigra::Rect2D, vigra::Rect2D(0, 0, 0, 0)) image_variable(AutoCenterCrop
RECTILINEAR RESPONSE_EMOR
distortion_default NO_CROP
true 
image_variable (VigCorrMode, int, VIGCORR_RADIAL|VIGCORR_DIV) image_variable(FlatfieldFilename
RECTILINEAR RESPONSE_EMOR
distortion_default NO_CROP
true 
image_variable (RadialVigCorrCoeff, std::vector< double >, RadialVigCorrCoeff_default) image_variable(RadialVigCorrCenterShift
RECTILINEAR RESPONSE_EMOR
distortion_default NO_CROP
true 
image_variable (ExifMake, std::string,"") image_variable(ExifCropFactor
RECTILINEAR RESPONSE_EMOR
distortion_default NO_CROP
true 
image_variable (ExifFocalLength, double, 0) image_variable(ExifOrientation
RECTILINEAR RESPONSE_EMOR
distortion_default NO_CROP
true 
image_variable (ExifAperture, double, 0) image_variable(ExifISO
RECTILINEAR RESPONSE_EMOR
distortion_default NO_CROP
true 
image_variable (ExifDistance, double, 0) image_variable(ExifFocalLength35
RECTILINEAR RESPONSE_EMOR
distortion_default NO_CROP
true 
image_variable (ExifExposureTime, double, 0) image_variable(ExifDate
RECTILINEAR RESPONSE_EMOR
distortion_default NO_CROP
true 
image_variable (FeatherWidth, unsigned int, 10) image_variable(Morph
RECTILINEAR RESPONSE_EMOR
distortion_default NO_CROP
true false 
image_variable (Masks, HuginBase::MaskPolygonVector, defaultMaskVector) image_variable(ActiveMasks
 image_variable (Size, vigra::Size2D, vigra::Size2D(0, 0)) image_variable(Projection
RECTILINEAR RESPONSE_EMOR
distortion_default NO_CROP
true false defaultMaskVector 
image_variable (Active, bool, true) void Panorama
void fillVariableMap (VariableMap &vars)
 fill map with all image & lens variables
void fillLensVarMap (LensVarMap &variables)
 just lens variables
void printVariableMap (std::ostream &o, const VariableMap &vars)
 print a variable map to o

Variables

const int maskOffset = 100
 polygon can exceed the image maximal maskOffset pixels in each direction bigger polygons will be clipped after loading
RECTILINEAR RESPONSE_EMOR double
RECTILINEAR RESPONSE_EMOR
distortion_default NO_CROP 
bool
const ConstImageVariableGroup::ImageVariableEnum lens_variables_array []
 The image variables that are specific to lenses.
const std::set< ConstImageVariableGroup::ImageVariableEnumlens_variables_set
 A set containing the lens image variables.
const ConstImageVariableGroup::ImageVariableEnum stack_variables_array []
 The image variables that are specific to stack.
const std::set< ConstImageVariableGroup::ImageVariableEnumstack_variables_set
 A set containing the stack image variables.


Detailed Description

mainly consists of wrapper around the pano tools library, to assist in ressource management and to provide a nicer interface.

It can be used to feed data from our model directly into the panotools library


Typedef Documentation

typedef std::vector< std::set<unsigned> > HuginBase::CPComponents
 

components in a control point graph

typedef boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::property<boost::vertex_color_t, boost::default_color_type> > HuginBase::CPGraph
 

graph of images, connected with control points.

verticies: images, links: controlpoints

typedef std::vector<ControlPoint> HuginBase::CPVector
 

typedef std::vector<SrcPanoImage> HuginBase::ImageVector
 

typedef std::map<std::string,LensVariable> HuginBase::LensVarMap
 

typedef std::vector<Lens> HuginBase::LensVector
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true false HuginBase::MaskPolygonVector
 

typedef std::vector<std::set<std::string> > HuginBase::OptimizeVector
 

typedef boost::property<boost::edge_weight_t, float> HuginBase::OverlapEdgeProperty
 

typedef boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::property<boost::vertex_color_t, boost::default_color_type>, OverlapEdgeProperty> HuginBase::OverlapGraph
 

A graph that contains all image as nodes (vertexes), overlaps are given by edges.

vertex property (color): indicates if the image has been stitched into the panorama

edge property (float): amount of overlap

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForActive
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForActiveMasks
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForAutoCenterCrop
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForCropMode
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForCropRect
 

Todo:
This could be S, but it is 4 integers in the form a,b,c,d -hence not a double.

typedef PTOVariableConverterVectorChar<'R', float, 5> HuginBase::PTOVariableConverterForEMoRParams
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForExifAperture
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForExifCropFactor
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForExifDate
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForExifDistance
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForExifExposureTime
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForExifFocalLength
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForExifFocalLength35
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForExifISO
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForExifMake
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForExifModel
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForExifOrientation
 

typedef PTOVariableConverterSingle<'E', 'e', 'v'> HuginBase::PTOVariableConverterForExposureValue
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForFeatherWidth
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForFilename
 

image_variables.h

Todo:
This could be n, but it is a string, not a double.

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForFlatfieldFilename
 

Todo:
This could be Vf, but it is a string, not a double.

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForGamma
 

typedef PTOVariableConverterSingle<'v'> HuginBase::PTOVariableConverterForHFOV
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForLensNr
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForMasks
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForMorph
 

typedef PTOVariableConverterSingle<'p'> HuginBase::PTOVariableConverterForPitch
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForProjection
 

typedef PTOVariableConverterVector<double, 3> HuginBase::PTOVariableConverterForRadialDistortion
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForRadialDistortionBlue
 

typedef PTOVariableConverterFDiff2D<'d', 'e'> HuginBase::PTOVariableConverterForRadialDistortionCenterShift
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForRadialDistortionRed
 

typedef PTOVariableConverterFDiff2D<'V','V', 'x','y'> HuginBase::PTOVariableConverterForRadialVigCorrCenterShift
 

typedef PTOVariableConverterVectorChar<'V', double, 4> HuginBase::PTOVariableConverterForRadialVigCorrCoeff
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForResponseType
 

typedef PTOVariableConverterSingle<'r'> HuginBase::PTOVariableConverterForRoll
 

typedef PTOVariableConverterFDiff2D<'g', 't'> HuginBase::PTOVariableConverterForShear
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForSize
 

typedef PTOVariableConverterSingle<'j'> HuginBase::PTOVariableConverterForStack
 

typedef PTOVariableConverterNoOp HuginBase::PTOVariableConverterForVigCorrMode
 

typedef PTOVariableConverterSingle<'E', 'b'> HuginBase::PTOVariableConverterForWhiteBalanceBlue
 

typedef PTOVariableConverterSingle<'E', 'r'> HuginBase::PTOVariableConverterForWhiteBalanceRed
 

typedef PTOVariableConverterSingle<'T','r','X'> HuginBase::PTOVariableConverterForX
 

typedef PTOVariableConverterSingle<'T','r','Y'> HuginBase::PTOVariableConverterForY
 

typedef PTOVariableConverterSingle<'y'> HuginBase::PTOVariableConverterForYaw
 

typedef PTOVariableConverterSingle<'T','r','Z'> HuginBase::PTOVariableConverterForZ
 

typedef std::set<unsigned int> HuginBase::UIntSet
 

typedef std::vector<unsigned int> HuginBase::UIntVector
 

typedef std::map<std::string,Variable> HuginBase::VariableMap
 

typedef std::vector<VariableMap> HuginBase::VariableMapVector
 

typedef std::vector<FDiff2D> HuginBase::VectorPolygon
 

vector, which stores coordinates of one polygon


Function Documentation

void checkProg std::ostream &  o,
const std::string &  progName,
const std::string &  progCommand
 

template<class SrcIMG>
void convertTo8Bit SrcIMG &  src,
const std::string &  origType,
vigra::BRGBImage &  dest
 

IMPEX void HuginBase::createCPGraph const PanoramaData &  pano,
CPGraph graph
 

create a control point graph structure, with links representing one or more control points

void createOverlapGraph const PanoramaData &  pano,
OverlapGraph graph
 

create a graph with all overlaps, and a suitable blend order.

template<class TRANSFORM>
void HuginBase::estimateImageAlpha const SrcPanoImage &  src,
const PanoramaOptions &  dest,
TRANSFORM &  transf,
vigra::Rect2D &  imgRect,
vigra::BImage &  alpha,
double scale
 

template<class TRANSFORM>
void HuginBase::estimateImageRect const SrcPanoImage &  src,
const PanoramaOptions &  dest,
TRANSFORM &  transf,
vigra::Rect2D &  imgRect
 

calculate the outline of the image

Parameters:
src description of source picture
dest description of output picture (panorama)
imgRect output: position of image in panorama.

IMPEX vigra::Rect2D HuginBase::estimateOutputROI const PanoramaData &  pano,
const PanoramaOptions &  opts,
unsigned  i
 

IMPEX void HuginBase::fillLensVarMap LensVarMap vars  ) 
 

just lens variables

IMPEX void HuginBase::fillVariableMap VariableMap vars  ) 
 

fill map with all image & lens variables

IMPEX int HuginBase::findCPComponents const CPGraph graph,
CPComponents comp
 

IMPEX UIntSet HuginBase::getCPinMasks Panorama  pano  ) 
 

returns these control points, which are in masks

IMPEX UIntSet HuginBase::getCPoutsideLimit Panorama  pano,
double  n = 2.0
 

optimises the whole panorama and removes all control points with error > mean+n*sigma

Parameters:
pano panorama which should be used
n determines, how big the deviation from mean should be to determine wrong control points, default 2.0
Returns:
set which contains control points with error > mean+n*sigma

IMPEX UIntSet HuginBase::getCPoutsideLimit_pair Panorama  pano,
double  n = 2.0
 

optimises images pairwise and removes for every image pair control points with error > mean+n*sigma

Parameters:
pano panorama which should be used
n determines, how big the deviation from mean should be to determine wrong control points, default 2.0
Returns:
set which contains control points with error > mean+n*sigma

IMPEX std::vector< UIntSet > HuginBase::getExposureLayers const PanoramaData &  pano,
UIntSet  allImgs
 

IMPEX std::vector< UIntSet > HuginBase::getHDRStacks const PanoramaData &  pano,
UIntSet  allImgs
 

IMPEX UIntSet HuginBase::getImagesinROI const PanoramaData &  pano,
const UIntSet  activeImages
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true false defaultMaskVector image_variable Active  ,
bool  ,
true 
 

image_variable Size  ,
vigra::Size2D  ,
vigra::  Size2D(0, 0)
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true false HuginBase::image_variable Masks  ,
HuginBase::MaskPolygonVector  ,
defaultMaskVector 
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true HuginBase::image_variable FeatherWidth  ,
unsigned  int,
10 
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true HuginBase::image_variable ExifExposureTime  ,
double  ,
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true HuginBase::image_variable ExifDistance  ,
double  ,
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true HuginBase::image_variable ExifAperture  ,
double  ,
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true HuginBase::image_variable ExifFocalLength  ,
double  ,
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true HuginBase::image_variable ExifMake  ,
std::string  ,
"" 
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true HuginBase::image_variable RadialVigCorrCoeff  ,
std::vector< double ,
RadialVigCorrCoeff_default 
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true HuginBase::image_variable VigCorrMode  ,
int  ,
VIGCORR_RADIAL|  VIGCORR_DIV
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP HuginBase::image_variable CropRect  ,
vigra::Rect2D  ,
vigra::  Rect2D(0, 0, 0, 0)
 

RECTILINEAR RESPONSE_EMOR distortion_default HuginBase::image_variable RadialDistortion  ,
std::vector< double ,
distortion_default 
 

RECTILINEAR RESPONSE_EMOR HuginBase::image_variable ,
double  ,
0.  0
 

RECTILINEAR RESPONSE_EMOR HuginBase::image_variable ,
double  ,
0.  0
 

RECTILINEAR RESPONSE_EMOR HuginBase::image_variable Pitch  ,
double  ,
0.  0
 

RECTILINEAR RESPONSE_EMOR HuginBase::image_variable WhiteBalanceBlue  ,
double  ,
1.  0
 

RECTILINEAR RESPONSE_EMOR HuginBase::image_variable Gamma  ,
double  ,
1.  0
 

RECTILINEAR RESPONSE_EMOR HuginBase::image_variable EMoRParams  ,
std::vector< float >  ,
std::vector< float >  (5, 0.0)
 

RECTILINEAR HuginBase::image_variable HFOV  ,
double  ,
50.  0
 

image_variable Filename  ,
std::string  ,
"" 
 

Note:
This file is #included multiple times after defining a macro for image_variable. The idea is to reduce the amount of tedoius code copy & pasted for each image variable. The list will be used to generate things the following:
  1. Member variables: ImageVarianle<[type]> m_[name];
  2. Accessor functions: [type] get[name]() const;
  3. Set functions: void set[name](const [type] data);
  4. Link functions: void link[name](SrcPanoImg)
  5. Unlink functions: void unlink[name]();
The arguments work as follows:
  1. the name of the variable
  2. the type of the variable
  3. the default value
There is some non automatic stuff in ImageVariableTranslate.h that will need changing if this list changes. That file handles the translation to and from PTO file format style variables.
See also:
ImageVariableTranslate.h

IMPEX void HuginBase::printVariableMap std::ostream &  o,
const VariableMap vars
 

print a variable map to o

VIGRA_EXT_GETRANGE double  ,
,
1.  0
 

VIGRA_EXT_GETRANGE float  ,
,
1.  0f
 

VIGRA_EXT_GETRANGE vigra::UInt32  ,
,
4294967295u 
 

VIGRA_EXT_GETRANGE vigra::Int32  ,
,
2147483647 
 

VIGRA_EXT_GETRANGE vigra::UInt16  ,
,
65535 
 

VIGRA_EXT_GETRANGE vigra::Int16  ,
,
32767 
 

VIGRA_EXT_GETRANGE vigra::UInt8  ,
,
255 
 

double weightHuber double  x,
double  sigma
[inline]
 

expects the abs(error) values


Variable Documentation

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true HuginBase::bool
 

RECTILINEAR RESPONSE_EMOR distortion_default NO_CROP true HuginBase::double
 

const ConstImageVariableGroup::ImageVariableEnum HuginBase::lens_variables_array[]
 

Initial value:

 {ImageVariableGroup::IVE_Size,
               ImageVariableGroup::IVE_Projection,
               ImageVariableGroup::IVE_HFOV,
               ImageVariableGroup::IVE_ResponseType,
               ImageVariableGroup::IVE_EMoRParams,
               ImageVariableGroup::IVE_ExposureValue,
               ImageVariableGroup::IVE_Gamma,
               ImageVariableGroup::IVE_WhiteBalanceRed,
               ImageVariableGroup::IVE_WhiteBalanceBlue,
               ImageVariableGroup::IVE_RadialDistortion,
               ImageVariableGroup::IVE_RadialDistortionRed,
               ImageVariableGroup::IVE_RadialDistortionBlue,
               ImageVariableGroup::IVE_RadialDistortionCenterShift,
               ImageVariableGroup::IVE_Shear,
               ImageVariableGroup::IVE_VigCorrMode,
               ImageVariableGroup::IVE_FlatfieldFilename,
               ImageVariableGroup::IVE_RadialVigCorrCoeff,
               ImageVariableGroup::IVE_RadialVigCorrCenterShift
            }
The image variables that are specific to lenses.

These are by default linked across images in the same lens.

If you wish to change this, you'll need to set the ending offset in lens_variables_set below.

const std::set<ConstImageVariableGroup::ImageVariableEnum> HuginBase::lens_variables_set
 

Initial value:

    std::set<ConstImageVariableGroup::ImageVariableEnum>(lens_variables_array,
                                                         lens_variables_array + 18)
A set containing the lens image variables.

the offset on the second construtor argument is the size of the array.

const int HuginBase::maskOffset = 100
 

polygon can exceed the image maximal maskOffset pixels in each direction bigger polygons will be clipped after loading

const ConstImageVariableGroup::ImageVariableEnum HuginBase::stack_variables_array[]
 

Initial value:

 {ImageVariableGroup::IVE_Yaw,
               ImageVariableGroup::IVE_Pitch,
               ImageVariableGroup::IVE_Roll,
               ImageVariableGroup::IVE_Stack,
               ImageVariableGroup::IVE_X,
               ImageVariableGroup::IVE_Y,
               ImageVariableGroup::IVE_Z
            }
The image variables that are specific to stack.

These are by default linked across images in the same stack.

If you wish to change this, you'll need to set the ending offset in stack_variables_set below.

const std::set<ConstImageVariableGroup::ImageVariableEnum> HuginBase::stack_variables_set
 

Initial value:

    std::set<ConstImageVariableGroup::ImageVariableEnum>(stack_variables_array,
                                                         stack_variables_array + 7)
A set containing the stack image variables.

the offset on the second construtor argument is the size of the array.


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