HuginBase::CalculateOptimalScale Class Reference

#include <CalculateOptimalScale.h>

Inheritance diagram for HuginBase::CalculateOptimalScale:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CalculateOptimalScale (PanoramaData &panorama)
virtual ~CalculateOptimalScale ()
virtual bool modifiesPanoramaData () const
 returns true if the algorithm changes the PanoramaData.
virtual bool runAlgorithm ()
 implementation of the algorithm.
virtual double getResultOptimalScale ()
virtual unsigned getResultOptimalWidth ()

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

Protected Attributes

double o_optimalScale

Detailed Description

Definition at line 40 of file CalculateOptimalScale.h.


Constructor & Destructor Documentation

HuginBase::CalculateOptimalScale::CalculateOptimalScale ( PanoramaData panorama  )  [inline]

Definition at line 45 of file CalculateOptimalScale.h.

virtual HuginBase::CalculateOptimalScale::~CalculateOptimalScale (  )  [inline, virtual]

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 58 of file CalculateOptimalScale.cpp.

References HuginBase::PTools::Transform::createTransform(), hugin_utils::norm(), HuginBase::BaseSrcPanoImage::setPitch(), HuginBase::BaseSrcPanoImage::setRoll(), HuginBase::BaseSrcPanoImage::setX(), HuginBase::BaseSrcPanoImage::setY(), HuginBase::BaseSrcPanoImage::setYaw(), HuginBase::BaseSrcPanoImage::setZ(), and HuginBase::PTools::Transform::transform().

Referenced by PT::calcOptimalPanoScale(), and calcOptimalScale().

double HuginBase::CalculateOptimalScale::calcOptimalScale ( PanoramaData panorama  )  [static]

Definition at line 36 of file CalculateOptimalScale.cpp.

References calcOptimalPanoScale(), HuginBase::PanoramaData::getNrOfImages(), HuginBase::PanoramaData::getOptions(), and HuginBase::PanoramaData::getSrcImage().

Referenced by PT::Panorama::calcOptimalWidth().

virtual double HuginBase::CalculateOptimalScale::getResultOptimalScale (  )  [inline, virtual]

Definition at line 77 of file CalculateOptimalScale.h.

virtual unsigned HuginBase::CalculateOptimalScale::getResultOptimalWidth (  )  [inline, virtual]

Definition at line 84 of file CalculateOptimalScale.h.

References hugin_utils::roundi().

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

virtual bool HuginBase::CalculateOptimalScale::modifiesPanoramaData (  )  const [inline, virtual]

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 (  )  [inline, virtual]

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:
Generated on 26 Oct 2014 for Hugintrunk by  doxygen 1.4.7