Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
HuginBase::CalculateOptimalScale Class Reference

#include <CalculateOptimalScale.h>

Inheritance diagram for HuginBase::CalculateOptimalScale:
Inheritance graph

Public Member Functions

 CalculateOptimalScale (PanoramaData &panorama)
 
virtual ~CalculateOptimalScale ()
 
virtual bool modifiesPanoramaData () const
 returns true if the algorithm changes the PanoramaData. More...
 
virtual bool runAlgorithm ()
 implementation of the algorithm. More...
 
virtual double getResultOptimalScale ()
 
virtual unsigned getResultOptimalWidth ()
 
- Public Member Functions inherited from HuginBase::PanoramaAlgorithm
virtual ~PanoramaAlgorithm ()
 
virtual bool hasRunSuccessfully ()
 
virtual void run ()
 runs the algorithm. More...
 

Static Public Member Functions

static double calcOptimalScale (PanoramaData &panorama)
 
static double calcOptimalPanoScale (const SrcPanoImage &src, const PanoramaOptions &dest)
 function to calculate the scaling factor so that the distances in the input image and panorama image are similar at the panorama center More...
 

Protected Attributes

double o_optimalScale
 
- Protected Attributes inherited from HuginBase::PanoramaAlgorithm
PanoramaDatao_panorama
 
bool o_successful
 

Additional Inherited Members

- Protected Member Functions inherited from HuginBase::PanoramaAlgorithm
 PanoramaAlgorithm (PanoramaData &panorama)
 

Detailed Description

Definition at line 40 of file CalculateOptimalScale.h.

Constructor & Destructor Documentation

HuginBase::CalculateOptimalScale::CalculateOptimalScale ( PanoramaData panorama)
inlineexplicit

Definition at line 45 of file CalculateOptimalScale.h.

virtual HuginBase::CalculateOptimalScale::~CalculateOptimalScale ( )
inlinevirtual

Definition at line 50 of file CalculateOptimalScale.h.

Member Function Documentation

double HuginBase::CalculateOptimalScale::calcOptimalPanoScale ( const SrcPanoImage src,
const PanoramaOptions dest 
)
static

function to calculate the scaling factor so that the distances in the input image and panorama image are similar at the panorama center

Definition at line 56 of file CalculateOptimalScale.cpp.

References HuginBase::PTools::Transform::createTransform(), hugin_utils::norm(), and HuginBase::PTools::Transform::transform().

Referenced by calcOptimalScale(), PointFineTuneProjectionAware(), and CPEditorPanel::UpdateTransforms().

double HuginBase::CalculateOptimalScale::calcOptimalScale ( PanoramaData panorama)
static
virtual double HuginBase::CalculateOptimalScale::getResultOptimalScale ( )
inlinevirtual

Definition at line 77 of file CalculateOptimalScale.h.

virtual unsigned HuginBase::CalculateOptimalScale::getResultOptimalWidth ( )
inlinevirtual

Definition at line 84 of file CalculateOptimalScale.h.

References hugin_utils::roundi().

Referenced by HuginBase::SetWidthOptimal::runAlgorithm().

virtual bool HuginBase::CalculateOptimalScale::modifiesPanoramaData ( ) const
inlinevirtual

returns true if the algorithm changes the PanoramaData.

Implements HuginBase::PanoramaAlgorithm.

Reimplemented in HuginBase::SetWidthOptimal.

Definition at line 56 of file CalculateOptimalScale.h.

virtual bool HuginBase::CalculateOptimalScale::runAlgorithm ( )
inlinevirtual

implementation of the algorithm.

You should override with your algorithm's implementiation.

Implements HuginBase::PanoramaAlgorithm.

Reimplemented in HuginBase::SetWidthOptimal.

Definition at line 60 of file CalculateOptimalScale.h.

Referenced by HuginBase::SetWidthOptimal::runAlgorithm().

Member Data Documentation

double HuginBase::CalculateOptimalScale::o_optimalScale
protected

Definition at line 91 of file CalculateOptimalScale.h.


The documentation for this class was generated from the following files: