Hugintrunk
0.1
|
class for calculating overlap of images More...
#include <CalculateOverlap.h>
Public Member Functions | |
CalculateImageOverlap (const PanoramaData *pano) | |
constructor More... | |
virtual | ~CalculateImageOverlap () |
destructor More... | |
void | calculate (unsigned int steps) |
does the calculation, for each image steps*steps points are extracted and tested with all other images overlap More... | |
double | getOverlap (unsigned int i, unsigned int j) const |
returns the overlap for 2 images with number i and j More... | |
void | limitToImages (UIntSet img) |
limits the calculation of the overlap to given image numbers More... | |
UIntSet | getOverlapForImage (unsigned int i) const |
returns a set of images which overlap with given image number More... | |
unsigned int | getNrOfImages () const |
return number of images in underlying pano More... | |
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 PanoramaData * | m_pano |
std::vector< unsigned int > | m_testImages |
class for calculating overlap of images
Definition at line 42 of file CalculateOverlap.h.
|
explicit |
constructor
Definition at line 33 of file CalculateOverlap.cpp.
References HuginBase::PanoramaData::getNrOfImages(), HuginBase::PanoramaData::getOptions(), m_invTransform, m_nrImg, m_overlap, m_testImages, and m_transform.
|
virtual |
destructor
Definition at line 58 of file CalculateOverlap.cpp.
References m_invTransform, m_nrImg, and m_transform.
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, and HuginBase::BaseSrcPanoImage::NO_CROP.
Referenced by AutoPanoSiftPreAlign::automatch(), HuginBase::getEstimatedBlendingOrder(), HuginBase::getHDRStacks(), PanoDetector::matchPrealigned(), SetGeometricControlPointsOverlap(), SetGeometricControlPointsUnconnected(), and HuginBase::Panorama::updateMasks().
|
inline |
return number of images in underlying pano
Definition at line 59 of file CalculateOverlap.h.
Referenced by HuginGraph::ImageGraph::ImageGraph().
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.
Referenced by AutoPanoSiftPreAlign::automatch(), HuginBase::getHDRStacks(), getOverlapForImage(), HuginGraph::ImageGraph::ImageGraph(), PanoDetector::matchPrealigned(), SetGeometricControlPointsOverlap(), and SetGeometricControlPointsUnconnected().
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(), and m_nrImg.
Referenced by HuginBase::Panorama::updateMasks().
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.
Referenced by SetGeometricControlPointsUnconnected(), and HuginBase::Panorama::updateMasks().
|
private |
Definition at line 64 of file CalculateOverlap.h.
Referenced by calculate(), CalculateImageOverlap(), and ~CalculateImageOverlap().
|
private |
Definition at line 65 of file CalculateOverlap.h.
Referenced by calculate(), CalculateImageOverlap(), getOverlapForImage(), and ~CalculateImageOverlap().
|
private |
Definition at line 59 of file CalculateOverlap.h.
Referenced by calculate(), CalculateImageOverlap(), and getOverlap().
|
private |
Definition at line 66 of file CalculateOverlap.h.
Referenced by calculate().
|
private |
Definition at line 67 of file CalculateOverlap.h.
Referenced by calculate(), CalculateImageOverlap(), and limitToImages().
|
private |
Definition at line 63 of file CalculateOverlap.h.
Referenced by calculate(), CalculateImageOverlap(), and ~CalculateImageOverlap().