Hugintrunk
0.1
|
#include <CalculateOptimalScale.h>
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 | |
PanoramaData & | o_panorama |
bool | o_successful |
Additional Inherited Members | |
Protected Member Functions inherited from HuginBase::PanoramaAlgorithm | |
PanoramaAlgorithm (PanoramaData &panorama) | |
Definition at line 40 of file CalculateOptimalScale.h.
|
inlineexplicit |
Definition at line 45 of file CalculateOptimalScale.h.
|
inlinevirtual |
Definition at line 50 of file CalculateOptimalScale.h.
|
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().
|
static |
Definition at line 34 of file CalculateOptimalScale.cpp.
References calcOptimalPanoScale(), HuginBase::PanoramaData::getNrOfImages(), HuginBase::PanoramaData::getOptions(), and HuginBase::PanoramaData::getSrcImage().
Referenced by AutoPanoSiftMultiRow::automatch(), PanoPanel::DoCalcOptimalWidth(), main(), PanoDetector::matchMultiRow(), PanoOutputDialog::PanoOutputDialog(), and SetCanvas().
|
inlinevirtual |
Definition at line 77 of file CalculateOptimalScale.h.
|
inlinevirtual |
Definition at line 84 of file CalculateOptimalScale.h.
References hugin_utils::roundi().
Referenced by HuginBase::SetWidthOptimal::runAlgorithm().
|
inlinevirtual |
returns true if the algorithm changes the PanoramaData.
Implements HuginBase::PanoramaAlgorithm.
Reimplemented in HuginBase::SetWidthOptimal.
Definition at line 56 of file CalculateOptimalScale.h.
|
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().
|
protected |
Definition at line 91 of file CalculateOptimalScale.h.