PT::Panorama Class Reference

#include <Panorama.h>

Inheritance diagram for PT::Panorama:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Panorama ()
 ctor.
 Panorama (const HuginBase::Panorama &pano)
virtual ~Panorama ()
 dtor.
hugin_utils::FDiff2D calcFOV () const
 calculates the horizontal and vertial FOV of the complete panorama
void fitPano (double &HFOV, double &height)
 calculate the HFOV and height so that the whole input fits in into the output panorama
unsigned calcOptimalWidth () const
 calculate the optimal width for this panorama
void calcOptimalROI (vigra::Rect2D &roi, vigra::Size2D &size)
 Calculates the ROI to make the best ROI without excess for crop.
void calcOptimalStackROI (vigra::Rect2D &roi, vigra::Size2D &size)
 Calculates the Stack-based ROI to make the best ROI without excess for crop.
void calcCtrlPntsErrorStats (double &min, double &max, double &mean, double &var, int imgNr=-1) const
 calculate control point error distance statistics
void calcCtrlPntsRadiStats (double &min, double &max, double &mean, double &var, double &q10, double &q90, int imgNr=-1) const
 calculate control point radial distance statistics.
void centerHorizontically ()
 center panorama horizontically
void rotate (double yaw, double pitch, double roll)
 rotate the complete panorama
void rotate (const Matrix3 &rot)
 rotate the complete panorama.
void translate (double x, double y, double z)
 translate the complete panorama
void straighten ()
 try to automatically straighten the panorama

Constructor & Destructor Documentation

PT::Panorama::Panorama  )  [inline]
 

ctor.

Reimplemented from HuginBase::Panorama.

Definition at line 55 of file Panorama.h.

PT::Panorama::Panorama const HuginBase::Panorama pano  )  [inline]
 

Definition at line 59 of file Panorama.h.

virtual PT::Panorama::~Panorama  )  [inline, virtual]
 

dtor.

Reimplemented from HuginBase::Panorama.

Definition at line 63 of file Panorama.h.


Member Function Documentation

void PT::Panorama::calcCtrlPntsErrorStats double &  min,
double &  max,
double &  mean,
double &  var,
int  imgNr = -1
const [inline]
 

calculate control point error distance statistics

Definition at line 133 of file Panorama.h.

References HuginBase::CalculateCPStatistics::getResultMax(), HuginBase::CalculateCPStatistics::getResultMean(), HuginBase::CalculateCPStatistics::getResultMin(), HuginBase::CalculateCPStatistics::getResultVariance(), and HuginBase::PanoramaAlgorithm::run().

Referenced by OptimizePanel::AskApplyResult(), and GLPreviewFrame::panoramaChanged().

void PT::Panorama::calcCtrlPntsRadiStats double &  min,
double &  max,
double &  mean,
double &  var,
double &  q10,
double &  q90,
int  imgNr = -1
const [inline]
 

calculate control point radial distance statistics.

q10 and q90 are the 10% and 90% quantile

Definition at line 145 of file Panorama.h.

References HuginBase::CalculateCPStatistics::getResultMax(), HuginBase::CalculateCPStatistics::getResultMean(), HuginBase::CalculateCPStatistics::getResultMin(), HuginBase::CalculateCPStatisticsRadial::getResultPercentile10(), HuginBase::CalculateCPStatisticsRadial::getResultPercentile90(), HuginBase::CalculateCPStatistics::getResultVariance(), and HuginBase::PanoramaAlgorithm::run().

hugin_utils::FDiff2D PT::Panorama::calcFOV  )  const [inline]
 

calculates the horizontal and vertial FOV of the complete panorama

Returns:
HFOV,VFOV

Definition at line 71 of file Panorama.h.

References HuginBase::CalculateFOV::calcFOV(), and hugin_utils::FDiff2D.

void PT::Panorama::calcOptimalROI vigra::Rect2D &  roi,
vigra::Size2D &  size
[inline]
 

Calculates the ROI to make the best ROI without excess for crop.

Definition at line 101 of file Panorama.h.

References HuginBase::CalculateOptimalROI::getResultOptimalROI(), HuginBase::CalculateOptimalROI::getResultOptimalSize(), and HuginBase::PanoramaAlgorithm::run().

Referenced by PanoPanel::DoCalcOptimalROI(), and GLPreviewFrame::OnAutocrop().

void PT::Panorama::calcOptimalStackROI vigra::Rect2D &  roi,
vigra::Size2D &  size
[inline]
 

Calculates the Stack-based ROI to make the best ROI without excess for crop.

Definition at line 114 of file Panorama.h.

References HuginBase::getHDRStacks(), HuginBase::CalculateOptimalROI::getResultOptimalROI(), HuginBase::CalculateOptimalROI::getResultOptimalSize(), HuginBase::PanoramaAlgorithm::run(), and HuginBase::CalculateOptimalROI::setStacks().

Referenced by GLPreviewFrame::OnStackAutocrop().

unsigned PT::Panorama::calcOptimalWidth  )  const [inline]
 

calculate the optimal width for this panorama

Optimal means that the pixel density at the panorama and image center of the image with the highest resolution are the same.

Definition at line 93 of file Panorama.h.

References hugin_utils::roundi().

Referenced by AutoPanoSiftMultiRow::automatch(), PanoPanel::DoCalcOptimalWidth(), and PanoDetector::matchMultiRow().

void PT::Panorama::centerHorizontically  )  [inline]
 

center panorama horizontically

Definition at line 160 of file Panorama.h.

References HuginBase::PanoramaAlgorithm::run().

Referenced by PT::StraightenPanoCmd::processPanorama(), and PT::CenterPanoCmd::processPanorama().

void PT::Panorama::fitPano double &  HFOV,
double &  height
[inline]
 

calculate the HFOV and height so that the whole input fits in into the output panorama

Definition at line 79 of file Panorama.h.

References HuginBase::CalculateFitPanorama::getResultHeight(), HuginBase::CalculateFitPanorama::getResultHorizontalFOV(), HFOV, and HuginBase::PanoramaAlgorithm::run().

Referenced by PanoPanel::DoCalcFOV(), PreviewFrame::OnFitPano(), GLPreviewFrame::OnFitPano(), PT::StraightenPanoCmd::processPanorama(), and PT::CenterPanoCmd::processPanorama().

void PT::Panorama::rotate const Matrix3 rot  )  [inline]
 

rotate the complete panorama.

Will modify the position of all images.

Definition at line 178 of file Panorama.h.

References HuginBase::PanoramaAlgorithm::run().

void PT::Panorama::rotate double  yaw,
double  pitch,
double  roll
[inline]
 

rotate the complete panorama

Will modify the position of all images.

Definition at line 169 of file Panorama.h.

References HuginBase::PanoramaAlgorithm::run().

Referenced by PT::RotatePanoCmd::processPanorama().

void PT::Panorama::straighten  )  [inline]
 

try to automatically straighten the panorama

Definition at line 203 of file Panorama.h.

References HuginBase::PanoramaAlgorithm::run().

Referenced by PT::StraightenPanoCmd::processPanorama().

void PT::Panorama::translate double  x,
double  y,
double  z
[inline]
 

translate the complete panorama

Will modify the position of all images.

Definition at line 187 of file Panorama.h.

References HuginBase::PanoramaAlgorithm::run().

Referenced by PT::TranslatePanoCmd::processPanorama().


The documentation for this class was generated from the following file:
Generated on Fri Aug 1 01:25:57 2014 for Hugintrunk by  doxygen 1.3.9.1