Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
HuginBase::CalculateImageOverlap Class Reference

class for calculating overlap of images More...

#include <CalculateOverlap.h>

Public Member Functions

 CalculateImageOverlap (const PanoramaData *pano)
 constructor
 
virtual ~CalculateImageOverlap ()
 destructor
 
void calculate (unsigned int steps)
 does the calculation, for each image steps*steps points are extracted and tested with all other images overlap
 
double getOverlap (unsigned int i, unsigned int j) const
 returns the overlap for 2 images with number i and j
 
void limitToImages (UIntSet img)
 limits the calculation of the overlap to given image numbers
 
UIntSet getOverlapForImage (unsigned int i) const
 returns a set of images which overlap with given image number
 
unsigned int getNrOfImages () const
 return number of images in underlying pano
 

Private Attributes

std::vector< std::vector< double > > m_overlap
 
std::vector< PTools::Transform * > m_transform
 
std::vector< PTools::Transform * > m_invTransform
 
unsigned int m_nrImg
 
const PanoramaDatam_pano
 
std::vector< unsigned intm_testImages
 

Detailed Description

class for calculating overlap of images

Definition at line 42 of file CalculateOverlap.h.

Constructor & Destructor Documentation

◆ CalculateImageOverlap()

HuginBase::CalculateImageOverlap::CalculateImageOverlap ( const PanoramaData pano)
explicit

◆ ~CalculateImageOverlap()

HuginBase::CalculateImageOverlap::~CalculateImageOverlap ( )
virtual

destructor

Definition at line 58 of file CalculateOverlap.cpp.

References m_invTransform, m_nrImg, m_transform, and threshold().

Member Function Documentation

◆ calculate()

void HuginBase::CalculateImageOverlap::calculate ( unsigned int  steps)

does the calculation, for each image steps*steps points are extracted and tested with all other images overlap

Definition at line 67 of file CalculateOverlap.cpp.

References HuginBase::PanoramaData::getImage(), HuginBase::SrcPanoImage::isInside(), m_invTransform, m_nrImg, m_overlap, m_pano, m_testImages, m_transform, HuginBase::BaseSrcPanoImage::NO_CROP, and threshold().

◆ getNrOfImages()

unsigned int HuginBase::CalculateImageOverlap::getNrOfImages ( ) const
inline

return number of images in underlying pano

Definition at line 59 of file CalculateOverlap.h.

◆ getOverlap()

double HuginBase::CalculateImageOverlap::getOverlap ( unsigned int  i,
unsigned int  j 
) const

returns the overlap for 2 images with number i and j

Definition at line 143 of file CalculateOverlap.cpp.

References m_overlap, and threshold().

Referenced by getOverlapForImage().

◆ getOverlapForImage()

UIntSet HuginBase::CalculateImageOverlap::getOverlapForImage ( unsigned int  i) const

returns a set of images which overlap with given image number

Definition at line 155 of file CalculateOverlap.cpp.

References getOverlap(), m_nrImg, and threshold().

◆ limitToImages()

void HuginBase::CalculateImageOverlap::limitToImages ( UIntSet  img)

limits the calculation of the overlap to given image numbers

Definition at line 171 of file CalculateOverlap.cpp.

References m_testImages, and threshold().

Member Data Documentation

◆ m_invTransform

std::vector<PTools::Transform*> HuginBase::CalculateImageOverlap::m_invTransform
private

Definition at line 64 of file CalculateOverlap.h.

Referenced by calculate(), CalculateImageOverlap(), and ~CalculateImageOverlap().

◆ m_nrImg

unsigned int HuginBase::CalculateImageOverlap::m_nrImg
private

◆ m_overlap

std::vector<std::vector<double> > HuginBase::CalculateImageOverlap::m_overlap
private

Definition at line 62 of file CalculateOverlap.h.

Referenced by calculate(), CalculateImageOverlap(), and getOverlap().

◆ m_pano

const PanoramaData* HuginBase::CalculateImageOverlap::m_pano
private

Definition at line 66 of file CalculateOverlap.h.

Referenced by calculate().

◆ m_testImages

std::vector<unsigned int> HuginBase::CalculateImageOverlap::m_testImages
private

Definition at line 67 of file CalculateOverlap.h.

Referenced by calculate(), CalculateImageOverlap(), and limitToImages().

◆ m_transform

std::vector<PTools::Transform*> HuginBase::CalculateImageOverlap::m_transform
private

Definition at line 63 of file CalculateOverlap.h.

Referenced by calculate(), CalculateImageOverlap(), and ~CalculateImageOverlap().


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