PanoDetector Class Reference

#include <PanoDetector.h>

List of all members.

Public Types

typedef std::vector< std::stringFileNameList_t
typedef std::vector< std::string
>::iterator 
FileNameListIt_t
typedef KDTreeSpace::KDTree<
KDElemKeyPoint, double > 
KPKDTree
typedef std::shared_ptr< KPKDTreeKPKDTreePtr
typedef lfeat::KeyPointDetector KeyPointDetector
typedef std::map< int, ImgDataImgData_t
typedef std::map< int, ImgData
>::iterator 
ImgDataIt_t
typedef std::vector< MatchDataMatchData_t
typedef std::vector< MatchData
>::iterator 
MatchDataIt_t
 ALLPAIRS = 0
 LINEAR
 MULTIROW
 PREALIGNED
enum  MatchingStrategy { ALLPAIRS = 0, LINEAR, MULTIROW, PREALIGNED }
 for selecting matching strategy More...

Public Member Functions

 PanoDetector ()
 ~PanoDetector ()
bool checkData ()
void printDetails ()
void printFilenames ()
void printHelp ()
void run ()
bool match (std::vector< HuginBase::UIntSet > &checkedPairs)
bool matchMultiRow ()
bool matchPrealigned (HuginBase::Panorama *pano, std::vector< HuginBase::UIntSet > &connectedImages, std::vector< size_t > imgMap, bool exactOverlap=true)
 does only matches image pairs which overlaps and don't have control points
HuginBase::PanoramagetPanoramaInfo () const
void setKeyPointsIdx (std::vector< int > keyPointsIdx)
std::vector< int > getKeyPointsIdx () const
void setWriteAllKeyPoints (bool writeAllKeyPoints=true)
bool getWriteAllKeyPoints () const
void setVerbose (int level)
int getVerbose () const
void setSieve1Width (int iWidth)
void setSieve1Height (int iHeight)
void setSieve1Size (int iSize)
int getSieve1Width () const
int getSieve1Height () const
int getSieve1Size () const
void setKDTreeSearchSteps (int iSteps)
void setKDTreeSecondDistance (double iDist)
int getKDTreeSearchSteps () const
double getKDTreeSecondDistance () const
void setMinimumMatches (int iMatches)
void setRansacIterations (int iIters)
void setRansacDistanceThreshold (int iDT)
void setRansacMode (HuginBase::RANSACOptimizer::Mode mode)
int getMinimumMatches () const
int getRansacIterations () const
int getRansacDistanceThreshold () const
HuginBase::RANSACOptimizer::Mode getRansacMode ()
void setSieve2Width (int iWidth)
void setSieve2Height (int iHeight)
void setSieve2Size (int iSize)
int getSieve2Width () const
int getSieve2Height () const
int getSieve2Size () const
void setLinearMatchLen (int iLen)
int getLinearMatchLen () const
void setMatchingStrategy (MatchingStrategy iMatchStrategy)
MatchingStrategy getMatchingStrategy () const
bool getDownscale () const
void setDownscale (bool iDown)
void setOutputFile (const std::string &outputFile)
void setInputFile (const std::string &inputFile)
void setKeyfilesPath (const std::string &keypath)
bool getCached () const
void setCached (bool iCached)
bool getCleanup () const
void setCleanup (bool iCleanup)
bool getCeleste () const
void setCeleste (bool iCeleste)
double getCelesteThreshold () const
void setCelesteThreshold (double iCelesteThreshold)
int getCelesteRadius () const
void setCelesteRadius (int iCelesteRadius)
void setTest (bool iTest)
bool getTest () const
void setCores (int iCores)

Static Public Member Functions

static bool LoadKeypoints (ImgData &ioImgInfo, const PanoDetector &iPanoDetector)
static bool AnalyzeImage (ImgData &ioImgInfo, const PanoDetector &iPanoDetector)
static bool FindKeyPointsInImage (ImgData &ioImgInfo, const PanoDetector &iPanoDetector)
static bool FilterKeyPointsInImage (ImgData &ioImgInfo, const PanoDetector &iPanoDetector)
static bool MakeKeyPointDescriptorsInImage (ImgData &ioImgInfo, const PanoDetector &iPanoDetector)
static bool RemapBackKeypoints (ImgData &ioImgInfo, const PanoDetector &iPanoDetector)
static bool BuildKDTreesInImage (ImgData &ioImgInfo, const PanoDetector &iPanoDetector)
static bool FreeMemoryInImage (ImgData &ioImgInfo, const PanoDetector &iPanoDetector)
static bool FindMatchesInPair (MatchData &ioMatchData, const PanoDetector &iPanoDetector)
static bool RansacMatchesInPair (MatchData &ioMatchData, const PanoDetector &iPanoDetector)
static bool RansacMatchesInPairCam (MatchData &ioMatchData, const PanoDetector &iPanoDetector)
static bool RansacMatchesInPairHomography (MatchData &ioMatchData, const PanoDetector &iPanoDetector)
static bool FilterMatchesInPair (MatchData &ioMatchData, const PanoDetector &iPanoDetector)

Private Member Functions

 PanoDetector (const PanoDetector &)
PanoDetectoroperator= (const PanoDetector &)
void buildMultiRowImageSets ()
 search for image layer and image stacks for the multirow matching step
bool loadProject ()
bool checkLoadSuccess ()
void CleanupKeyfiles ()
void writeOutput ()
void writeKeyfile (ImgData &imgInfo)
bool LoadSVMModel ()

Private Attributes

bool _writeAllKeyPoints
std::vector< int > _keyPointsIdx
int _verbose
int _sieve1Width
int _sieve1Height
int _sieve1Size
int _kdTreeSearchSteps
double _kdTreeSecondDistance
int _minimumMatches
HuginBase::RANSACOptimizer::Mode _ransacMode
int _ransacIters
int _ransacDistanceThres
int _sieve2Width
int _sieve2Height
int _sieve2Size
MatchingStrategy _matchingStrategy
int _linearMatchLen
bool _test
int _cores
bool _downscale
bool _cache
bool _cleanup
bool _celeste
double _celesteThreshold
int _celesteRadius
std::string _keypath
std::string _prefix
std::string _outputFile
bool _outputGiven
std::string _inputFile
HuginBase::Panorama_panoramaInfo
HuginBase::Panorama _panoramaInfoCopy
HuginBase::UIntSet _image_layer
 image set contains only the images with the median exposure of each stack
std::vector< HuginBase::UIntVector_image_stacks
 vector with image numbers of all stacks, contains only the unlinked stacks
ImgData_t _filesData
celeste::svm_modelsvmModel

Classes

struct  ImgData
struct  MatchData


Detailed Description

Definition at line 46 of file PanoDetector.h.


Member Typedef Documentation

typedef std::vector<std::string> PanoDetector::FileNameList_t

Definition at line 49 of file PanoDetector.h.

typedef std::vector<std::string>::iterator PanoDetector::FileNameListIt_t

Definition at line 50 of file PanoDetector.h.

typedef std::map<int, ImgData> PanoDetector::ImgData_t

Definition at line 437 of file PanoDetector.h.

typedef std::map<int, ImgData>::iterator PanoDetector::ImgDataIt_t

Definition at line 438 of file PanoDetector.h.

typedef lfeat::KeyPointDetector PanoDetector::KeyPointDetector

Definition at line 54 of file PanoDetector.h.

typedef KDTreeSpace::KDTree<KDElemKeyPoint, double> PanoDetector::KPKDTree

Definition at line 51 of file PanoDetector.h.

typedef std::shared_ptr<KPKDTree> PanoDetector::KPKDTreePtr

Definition at line 52 of file PanoDetector.h.

typedef std::vector<MatchData> PanoDetector::MatchData_t

Definition at line 447 of file PanoDetector.h.

typedef std::vector<MatchData>::iterator PanoDetector::MatchDataIt_t

Definition at line 448 of file PanoDetector.h.


Member Enumeration Documentation

enum PanoDetector::MatchingStrategy

for selecting matching strategy

Enumerator:
ALLPAIRS 
LINEAR 
MULTIROW 
PREALIGNED 

Definition at line 57 of file PanoDetector.h.


Constructor & Destructor Documentation

PanoDetector::PanoDetector (  ) 

Definition at line 101 of file PanoDetector.cpp.

References _panoramaInfo.

PanoDetector::~PanoDetector (  ) 

Definition at line 115 of file PanoDetector.cpp.

References _panoramaInfo.

PanoDetector::PanoDetector ( const PanoDetector  )  [private]


Member Function Documentation

bool PanoDetector::AnalyzeImage ( ImgData ioImgInfo,
const PanoDetector iPanoDetector 
) [static]

Definition at line 250 of file PanoDetectorLogic.cpp.

References PanoDetector::ImgData::_detectHeight, PanoDetector::ImgData::_detectWidth, PanoDetector::ImgData::_distancemap, _downscale, PanoDetector::ImgData::_ii, PanoDetector::ImgData::_loadFail, PanoDetector::ImgData::_name, PanoDetector::ImgData::_needsremap, PanoDetector::ImgData::_number, _panoramaInfoCopy, PanoDetector::ImgData::_projOpts, HuginBase::Color::ApplyICCProfile(), vigra_ext::applyMapping(), vigra::omp::copyImage(), vigra::omp::copyImageIf(), vigra_ext::destImage(), getCeleste(), celeste::getCelesteMask(), getCelesteRadius(), getCelesteThreshold(), HuginBase::Panorama::getImage(), vigra_ext::getMaxValForPixelType(), HandleDownscaleImage(), vigra::importImageAlpha(), lfeat::Image::init(), RemapImage(), HuginBase::BaseSrcPanoImage::RESPONSE_LINEAR, vigra_ext::srcImage(), vigra_ext::srcImageRange(), svmModel, TRACE_IMG, TRACE_INFO, and vigra_ext::transformImage().

Referenced by WriteKeyPointsRunnable::run(), and ImgDataRunnable::run().

bool PanoDetector::BuildKDTreesInImage ( ImgData ioImgInfo,
const PanoDetector iPanoDetector 
) [static]

Definition at line 843 of file PanoDetectorLogic.cpp.

References PanoDetector::ImgData::_descLength, PanoDetector::ImgData::_flann_descriptors, PanoDetector::ImgData::_flann_index, PanoDetector::ImgData::_kp, and TRACE_IMG.

Referenced by LoadKeypointsDataRunnable::run(), and ImgDataRunnable::run().

void PanoDetector::buildMultiRowImageSets (  )  [private]

search for image layer and image stacks for the multirow matching step

Definition at line 909 of file PanoDetector.cpp.

References _image_layer, _image_stacks, _panoramaInfo, HuginBase::Panorama::getImage(), and HuginBase::getSortedStacks().

Referenced by run().

bool PanoDetector::checkData (  ) 

Definition at line 120 of file PanoDetector.cpp.

References _filesData, _linearMatchLen, _test, and cout.

Referenced by main().

bool PanoDetector::checkLoadSuccess (  )  [private]

Definition at line 873 of file PanoDetector.cpp.

References _filesData, and _keyPointsIdx.

Referenced by run().

void PanoDetector::CleanupKeyfiles (  )  [private]

Definition at line 898 of file PanoDetector.cpp.

References _filesData.

Referenced by run().

bool PanoDetector::FilterKeyPointsInImage ( ImgData ioImgInfo,
const PanoDetector iPanoDetector 
) [static]

Definition at line 721 of file PanoDetectorLogic.cpp.

References PanoDetector::ImgData::_detectHeight, PanoDetector::ImgData::_detectWidth, PanoDetector::ImgData::_distancemap, PanoDetector::ImgData::_kp, getSieve1Height(), getSieve1Size(), getSieve1Width(), and TRACE_IMG.

Referenced by WriteKeyPointsRunnable::run(), and ImgDataRunnable::run().

bool PanoDetector::FilterMatchesInPair ( MatchData ioMatchData,
const PanoDetector iPanoDetector 
) [static]

Definition at line 1129 of file PanoDetectorLogic.cpp.

References PanoDetector::MatchData::_matches, getSieve2Height(), getSieve2Size(), getSieve2Width(), celeste::max(), and TRACE_PAIR.

Referenced by MatchDataRunnable::run().

bool PanoDetector::FindKeyPointsInImage ( ImgData ioImgInfo,
const PanoDetector iPanoDetector 
) [static]

Definition at line 705 of file PanoDetectorLogic.cpp.

References PanoDetector::ImgData::_ii, PanoDetector::ImgData::_kp, lfeat::KeyPointDetector::detectKeypoints(), and TRACE_IMG.

Referenced by WriteKeyPointsRunnable::run(), and ImgDataRunnable::run().

bool PanoDetector::FindMatchesInPair ( MatchData ioMatchData,
const PanoDetector iPanoDetector 
) [static]

Definition at line 879 of file PanoDetectorLogic.cpp.

References PanoDetector::ImgData::_flann_descriptors, PanoDetector::ImgData::_flann_index, PanoDetector::MatchData::_i1, PanoDetector::MatchData::_i2, PanoDetector::ImgData::_kp, PanoDetector::MatchData::_matches, getKDTreeSearchSteps(), getKDTreeSecondDistance(), and TRACE_PAIR.

Referenced by MatchDataRunnable::run().

bool PanoDetector::FreeMemoryInImage ( ImgData ioImgInfo,
const PanoDetector iPanoDetector 
) [static]

Definition at line 868 of file PanoDetectorLogic.cpp.

References PanoDetector::ImgData::_distancemap, PanoDetector::ImgData::_ii, lfeat::Image::clean(), and TRACE_IMG.

Referenced by WriteKeyPointsRunnable::run(), and ImgDataRunnable::run().

bool PanoDetector::getCached (  )  const [inline]

Definition at line 260 of file PanoDetector.h.

References _cache.

bool PanoDetector::getCeleste (  )  const [inline]

Definition at line 276 of file PanoDetector.h.

References _celeste.

Referenced by AnalyzeImage().

int PanoDetector::getCelesteRadius (  )  const [inline]

Definition at line 292 of file PanoDetector.h.

References _celesteRadius.

Referenced by AnalyzeImage().

double PanoDetector::getCelesteThreshold (  )  const [inline]

Definition at line 284 of file PanoDetector.h.

References _celesteThreshold.

Referenced by AnalyzeImage().

bool PanoDetector::getCleanup (  )  const [inline]

Definition at line 268 of file PanoDetector.h.

References _cleanup.

bool PanoDetector::getDownscale (  )  const [inline]

Definition at line 237 of file PanoDetector.h.

References _downscale.

Referenced by RansacMatchesInPairHomography().

int PanoDetector::getKDTreeSearchSteps (  )  const [inline]

Definition at line 153 of file PanoDetector.h.

References _kdTreeSearchSteps.

Referenced by FindMatchesInPair().

double PanoDetector::getKDTreeSecondDistance (  )  const [inline]

Definition at line 157 of file PanoDetector.h.

References _kdTreeSecondDistance.

Referenced by FindMatchesInPair().

std::vector<int> PanoDetector::getKeyPointsIdx (  )  const [inline]

Definition at line 98 of file PanoDetector.h.

References _keyPointsIdx.

int PanoDetector::getLinearMatchLen (  )  const [inline]

Definition at line 224 of file PanoDetector.h.

References _linearMatchLen.

MatchingStrategy PanoDetector::getMatchingStrategy (  )  const [inline]

Definition at line 232 of file PanoDetector.h.

References _matchingStrategy.

Referenced by match(), and run().

int PanoDetector::getMinimumMatches (  )  const [inline]

Definition at line 178 of file PanoDetector.h.

References _minimumMatches.

Referenced by RansacMatchesInPairCam(), and RansacMatchesInPairHomography().

HuginBase::Panorama* PanoDetector::getPanoramaInfo (  )  const [inline]

Definition at line 89 of file PanoDetector.h.

References _panoramaInfo.

int PanoDetector::getRansacDistanceThreshold (  )  const [inline]

Definition at line 186 of file PanoDetector.h.

References _ransacDistanceThres.

Referenced by RansacMatchesInPairCam(), and RansacMatchesInPairHomography().

int PanoDetector::getRansacIterations (  )  const [inline]

Definition at line 182 of file PanoDetector.h.

References _ransacIters.

Referenced by RansacMatchesInPairHomography().

HuginBase::RANSACOptimizer::Mode PanoDetector::getRansacMode (  )  [inline]

Definition at line 190 of file PanoDetector.h.

References _ransacMode.

int PanoDetector::getSieve1Height (  )  const [inline]

Definition at line 136 of file PanoDetector.h.

References _sieve1Height.

Referenced by FilterKeyPointsInImage().

int PanoDetector::getSieve1Size (  )  const [inline]

Definition at line 140 of file PanoDetector.h.

References _sieve1Size.

Referenced by FilterKeyPointsInImage().

int PanoDetector::getSieve1Width (  )  const [inline]

Definition at line 132 of file PanoDetector.h.

References _sieve1Width.

Referenced by FilterKeyPointsInImage().

int PanoDetector::getSieve2Height (  )  const [inline]

Definition at line 211 of file PanoDetector.h.

References _sieve2Height.

Referenced by FilterMatchesInPair().

int PanoDetector::getSieve2Size (  )  const [inline]

Definition at line 215 of file PanoDetector.h.

References _sieve2Size.

Referenced by FilterMatchesInPair().

int PanoDetector::getSieve2Width (  )  const [inline]

Definition at line 207 of file PanoDetector.h.

References _sieve2Width.

Referenced by FilterMatchesInPair().

bool PanoDetector::getTest (  )  const [inline]

Definition at line 304 of file PanoDetector.h.

References _test.

Referenced by RansacMatchesInPairHomography().

int PanoDetector::getVerbose (  )  const [inline]

Definition at line 115 of file PanoDetector.h.

References _verbose.

Referenced by main(), matchMultiRow(), and run().

bool PanoDetector::getWriteAllKeyPoints (  )  const [inline]

Definition at line 106 of file PanoDetector.h.

References _writeAllKeyPoints.

bool PanoDetector::LoadKeypoints ( ImgData ioImgInfo,
const PanoDetector iPanoDetector 
) [static]

Definition at line 96 of file PanoDetectorLogic.cpp.

References PanoDetector::ImgData::_descLength, PanoDetector::ImgData::_detectHeight, PanoDetector::ImgData::_detectWidth, PanoDetector::ImgData::_keyfilename, PanoDetector::ImgData::_kp, PanoDetector::ImgData::_loadFail, PanoDetector::ImgData::_needsremap, PanoDetector::ImgData::_projOpts, celeste::info(), lfeat::loadKeypoints(), celeste::max(), HuginBase::PanoramaOptions::setHeight(), HuginBase::PanoramaOptions::setWidth(), and TRACE_IMG.

Referenced by LoadKeypointsDataRunnable::run().

bool PanoDetector::loadProject (  )  [private]

Definition at line 739 of file PanoDetector.cpp.

References _celeste, _downscale, _filesData, PanoDetector::ImgData::_hasakeyfile, _inputFile, PanoDetector::ImgData::_keyfilename, _keypath, PanoDetector::ImgData::_name, PanoDetector::ImgData::_needsremap, PanoDetector::ImgData::_number, _panoramaInfo, _panoramaInfoCopy, _prefix, PanoDetector::ImgData::_projOpts, cerr, HuginBase::Panorama::duplicate(), HuginBase::estimateOutputROI(), hugin_utils::FileExists(), HuginBase::BaseSrcPanoImage::FISHEYE_STEREOGRAPHIC, HuginBase::PanoramaOptions::getHeight(), getKeyfilenameFor(), HuginBase::Panorama::getNrOfImages(), hugin_utils::getPathPrefix(), HuginBase::Panorama::getSrcImage(), HuginBase::PanoramaOptions::getWidth(), includeTrailingPathSep(), celeste::max(), HuginBase::Panorama::readData(), HuginBase::BaseSrcPanoImage::setActive(), HuginBase::Panorama::setFilePrefix(), HuginBase::PanoramaOptions::setHeight(), HuginBase::PanoramaOptions::setHFOV(), HuginBase::Panorama::setImage(), HuginBase::BaseSrcPanoImage::setPitch(), HuginBase::PanoramaOptions::setProjection(), HuginBase::PanoramaOptions::setROI(), HuginBase::BaseSrcPanoImage::setRoll(), HuginBase::PanoramaOptions::setVFOV(), HuginBase::PanoramaOptions::setWidth(), HuginBase::BaseSrcPanoImage::setX(), HuginBase::BaseSrcPanoImage::setY(), HuginBase::BaseSrcPanoImage::setYaw(), HuginBase::BaseSrcPanoImage::setZ(), HuginBase::PanoramaOptions::STEREOGRAPHIC, AppBase::DocumentData::SUCCESSFUL, and HuginBase::Panorama::updateMasks().

Referenced by run().

bool PanoDetector::LoadSVMModel (  )  [private]

Definition at line 383 of file PanoDetector.cpp.

References cout, hugin_utils::GetDataDir(), celeste::loadSVMmodel(), and svmModel.

Referenced by run().

bool PanoDetector::MakeKeyPointDescriptorsInImage ( ImgData ioImgInfo,
const PanoDetector iPanoDetector 
) [static]

Definition at line 765 of file PanoDetectorLogic.cpp.

References PanoDetector::ImgData::_descLength, PanoDetector::ImgData::_ii, PanoDetector::ImgData::_kp, lfeat::CircularKeyPointDescriptor::assignOrientation(), lfeat::CircularKeyPointDescriptor::getDescriptorLength(), lfeat::CircularKeyPointDescriptor::makeDescriptor(), and TRACE_IMG.

Referenced by WriteKeyPointsRunnable::run(), and ImgDataRunnable::run().

bool PanoDetector::match ( std::vector< HuginBase::UIntSet > &  checkedPairs  ) 

Definition at line 676 of file PanoDetector.cpp.

References _filesData, PanoDetector::MatchData::_i1, PanoDetector::MatchData::_i2, _linearMatchLen, _panoramaInfo, HuginBase::Panorama::addCtrlPoint(), getMatchingStrategy(), LINEAR, RunQueue(), set_contains(), and TRACE_INFO.

Referenced by matchMultiRow(), and run().

bool PanoDetector::matchMultiRow (  ) 

Definition at line 932 of file PanoDetector.cpp.

References _filesData, PanoDetector::MatchData::_i1, PanoDetector::MatchData::_i2, _image_layer, _image_stacks, _panoramaInfo, HuginBase::Panorama::addCtrlPoint(), HuginBase::AutoOptimise::autoOptimise(), HuginBase::CalculateOptimalScale::calcOptimalScale(), HuginBase::PanoramaOptions::EQUIRECTANGULAR, HuginGraph::ImageGraph::GetComponents(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), HuginBase::Panorama::getSubset(), HuginBase::Panorama::getVariables(), getVerbose(), HuginBase::PanoramaOptions::getWidth(), HuginGraph::ImageGraph::IsConnected(), map_get(), match(), matchPrealigned(), HuginBase::PTools::optimize(), HuginBase::PanoramaOptions::optimizeReferenceImage, ptinfoDlg(), ptProgress(), hugin_utils::roundi(), RunQueue(), set_contains(), HuginBase::PanoramaOptions::setHeight(), HuginBase::Panorama::setOptions(), HuginBase::PanoramaOptions::setProjection(), HuginBase::PanoramaOptions::setWidth(), TRACE_INFO, HuginBase::Panorama::updateVariables(), and HuginBase::ControlPoint::X_Y.

Referenced by run().

bool PanoDetector::matchPrealigned ( HuginBase::Panorama pano,
std::vector< HuginBase::UIntSet > &  connectedImages,
std::vector< size_t >  imgMap,
bool  exactOverlap = true 
)

does only matches image pairs which overlaps and don't have control points

Parameters:
aExecutor executor for threading
pano pano, which should be used for determing of overlap, can contain also less images than _panoramaInfo
connectedImages contains a list of already connected or tested image pairs, which should be skipped
imgMap map of image nr in partial pano and full panorama
exactOverlap if true, only really overlapping image pairs are matched, if false it increases the hfov to take also narrow overlaps better into account
Returns:
true, if detection was successful

Definition at line 1173 of file PanoDetector.cpp.

References _filesData, PanoDetector::MatchData::_i1, PanoDetector::MatchData::_i2, _panoramaInfo, HuginBase::Panorama::addCtrlPoint(), HuginBase::CalculateImageOverlap::calculate(), HuginBase::Panorama::duplicate(), HuginBase::Panorama::getNrOfImages(), HuginBase::CalculateImageOverlap::getOverlap(), HuginBase::Panorama::getVariables(), map_get(), celeste::min(), RunQueue(), set_contains(), TRACE_INFO, and HuginBase::Panorama::updateVariables().

Referenced by matchMultiRow(), and run().

PanoDetector& PanoDetector::operator= ( const PanoDetector  )  [private]

void PanoDetector::printDetails (  ) 

Definition at line 142 of file PanoDetector.cpp.

References _cache, _celeste, _celesteRadius, _celesteThreshold, _cleanup, _cores, _downscale, _inputFile, _kdTreeSearchSteps, _kdTreeSecondDistance, _keypath, _keyPointsIdx, _linearMatchLen, _matchingStrategy, _minimumMatches, _outputFile, _ransacDistanceThres, _ransacIters, _ransacMode, _sieve1Height, _sieve1Size, _sieve1Width, _sieve2Height, _sieve2Size, _sieve2Width, _writeAllKeyPoints, ALLPAIRS, HuginBase::RANSACOptimizer::AUTO, cout, HuginBase::RANSACOptimizer::HOMOGRAPHY, LINEAR, MULTIROW, PREALIGNED, HuginBase::RANSACOptimizer::RPY, HuginBase::RANSACOptimizer::RPYV, and HuginBase::RANSACOptimizer::RPYVB.

Referenced by main().

void PanoDetector::printFilenames (  ) 

Definition at line 242 of file PanoDetector.cpp.

References _cache, _filesData, _keyPointsIdx, _panoramaInfo, _prefix, cout, HuginBase::Panorama::getImage(), and HuginBase::Panorama::getNrOfImages().

Referenced by run().

void PanoDetector::printHelp (  ) 

bool PanoDetector::RansacMatchesInPair ( MatchData ioMatchData,
const PanoDetector iPanoDetector 
) [static]

Definition at line 959 of file PanoDetectorLogic.cpp.

References PanoDetector::MatchData::_i1, PanoDetector::MatchData::_i2, PanoDetector::ImgData::_number, _panoramaInfo, _ransacMode, HuginBase::RANSACOptimizer::AUTO, HuginBase::Panorama::getImage(), HuginBase::RANSACOptimizer::HOMOGRAPHY, RansacMatchesInPairCam(), and RansacMatchesInPairHomography().

Referenced by MatchDataRunnable::run().

bool PanoDetector::RansacMatchesInPairCam ( MatchData ioMatchData,
const PanoDetector iPanoDetector 
) [static]

Definition at line 976 of file PanoDetectorLogic.cpp.

References PanoDetector::MatchData::_i1, PanoDetector::MatchData::_i2, PanoDetector::MatchData::_matches, PanoDetector::ImgData::_number, _panoramaInfo, _ransacMode, HuginBase::RANSACOptimizer::AUTO, HuginBase::RANSACOptimizer::findInliers(), getMinimumMatches(), HuginBase::Panorama::getNewSubset(), getRansacDistanceThreshold(), ptinfoDlg(), ptProgress(), HuginBase::RANSACOptimizer::RPY, HuginBase::PanoramaData::setCtrlPoints(), and TRACE_PAIR.

Referenced by RansacMatchesInPair().

bool PanoDetector::RansacMatchesInPairHomography ( MatchData ioMatchData,
const PanoDetector iPanoDetector 
) [static]

Definition at line 1078 of file PanoDetectorLogic.cpp.

References PanoDetector::MatchData::_i1, PanoDetector::MatchData::_i2, PanoDetector::MatchData::_matches, PanoDetector::ImgData::_name, PanoDetector::ImgData::_needsremap, TestCode::drawRansacMatches(), lfeat::Ransac::filter(), getDownscale(), getMinimumMatches(), getRansacDistanceThreshold(), getRansacIterations(), getTest(), lfeat::Ransac::setDistanceThreshold(), lfeat::Ransac::setIterations(), and TRACE_PAIR.

Referenced by RansacMatchesInPair().

bool PanoDetector::RemapBackKeypoints ( ImgData ioImgInfo,
const PanoDetector iPanoDetector 
) [static]

Definition at line 798 of file PanoDetectorLogic.cpp.

References _downscale, PanoDetector::ImgData::_kp, PanoDetector::ImgData::_needsremap, PanoDetector::ImgData::_number, _panoramaInfoCopy, PanoDetector::ImgData::_projOpts, HuginBase::PTools::Transform::createTransform(), HuginBase::PanoramaOptions::getROI(), HuginBase::Panorama::getSrcImage(), TRACE_IMG, and HuginBase::PTools::Transform::transformImgCoord().

Referenced by WriteKeyPointsRunnable::run(), and ImgDataRunnable::run().

void PanoDetector::run (  ) 

Definition at line 425 of file PanoDetector.cpp.

References _cache, _celeste, _cleanup, _cores, _filesData, _image_layer, _image_stacks, _keyPointsIdx, _outputFile, _outputGiven, _panoramaInfo, _verbose, _writeAllKeyPoints, ALLPAIRS, buildMultiRowImageSets(), checkLoadSuccess(), CleanupKeyfiles(), cout, celeste::destroySVMmodel(), HuginBase::Panorama::getCtrlPoints(), getMatchingStrategy(), HuginBase::Panorama::getNrOfImages(), utils::getTotalMemory(), getVerbose(), LINEAR, loadProject(), LoadSVMModel(), match(), matchMultiRow(), matchPrealigned(), MULTIROW, PREALIGNED, printFilenames(), RunQueue(), setCeleste(), setCores(), srandom, svmModel, TRACE_INFO, writeKeyfile(), writeOutput(), and HuginBase::ControlPoint::X_Y.

Referenced by main().

void PanoDetector::setCached ( bool  iCached  )  [inline]

Definition at line 264 of file PanoDetector.h.

References _cache.

Referenced by parseOptions().

void PanoDetector::setCeleste ( bool  iCeleste  )  [inline]

Definition at line 280 of file PanoDetector.h.

References _celeste.

Referenced by parseOptions(), and run().

void PanoDetector::setCelesteRadius ( int  iCelesteRadius  )  [inline]

Definition at line 296 of file PanoDetector.h.

References _celesteRadius.

Referenced by parseOptions().

void PanoDetector::setCelesteThreshold ( double  iCelesteThreshold  )  [inline]

Definition at line 288 of file PanoDetector.h.

References _celesteThreshold.

Referenced by parseOptions().

void PanoDetector::setCleanup ( bool  iCleanup  )  [inline]

Definition at line 272 of file PanoDetector.h.

References _cleanup.

Referenced by parseOptions().

void PanoDetector::setCores ( int  iCores  )  [inline]

Definition at line 308 of file PanoDetector.h.

References _cores.

Referenced by parseOptions(), and run().

void PanoDetector::setDownscale ( bool  iDown  )  [inline]

Definition at line 241 of file PanoDetector.h.

References _downscale.

Referenced by parseOptions().

void PanoDetector::setInputFile ( const std::string inputFile  )  [inline]

Definition at line 252 of file PanoDetector.h.

References _inputFile.

Referenced by parseOptions().

void PanoDetector::setKDTreeSearchSteps ( int  iSteps  )  [inline]

Definition at line 145 of file PanoDetector.h.

References _kdTreeSearchSteps.

Referenced by parseOptions().

void PanoDetector::setKDTreeSecondDistance ( double  iDist  )  [inline]

Definition at line 149 of file PanoDetector.h.

References _kdTreeSecondDistance.

Referenced by parseOptions().

void PanoDetector::setKeyfilesPath ( const std::string keypath  )  [inline]

Definition at line 256 of file PanoDetector.h.

References _keypath.

Referenced by parseOptions().

void PanoDetector::setKeyPointsIdx ( std::vector< int >  keyPointsIdx  )  [inline]

Definition at line 94 of file PanoDetector.h.

References _keyPointsIdx.

Referenced by parseOptions().

void PanoDetector::setLinearMatchLen ( int  iLen  )  [inline]

Definition at line 220 of file PanoDetector.h.

References _linearMatchLen.

Referenced by parseOptions().

void PanoDetector::setMatchingStrategy ( MatchingStrategy  iMatchStrategy  )  [inline]

Definition at line 228 of file PanoDetector.h.

References _matchingStrategy.

Referenced by parseOptions().

void PanoDetector::setMinimumMatches ( int  iMatches  )  [inline]

Definition at line 162 of file PanoDetector.h.

References _minimumMatches.

Referenced by parseOptions().

void PanoDetector::setOutputFile ( const std::string outputFile  )  [inline]

Definition at line 247 of file PanoDetector.h.

References _outputFile, and _outputGiven.

Referenced by parseOptions().

void PanoDetector::setRansacDistanceThreshold ( int  iDT  )  [inline]

Definition at line 170 of file PanoDetector.h.

References _ransacDistanceThres.

Referenced by parseOptions().

void PanoDetector::setRansacIterations ( int  iIters  )  [inline]

Definition at line 166 of file PanoDetector.h.

References _ransacIters.

Referenced by parseOptions().

void PanoDetector::setRansacMode ( HuginBase::RANSACOptimizer::Mode  mode  )  [inline]

Definition at line 174 of file PanoDetector.h.

References _ransacMode.

Referenced by parseOptions().

void PanoDetector::setSieve1Height ( int  iHeight  )  [inline]

Definition at line 124 of file PanoDetector.h.

References _sieve1Height.

Referenced by parseOptions().

void PanoDetector::setSieve1Size ( int  iSize  )  [inline]

Definition at line 128 of file PanoDetector.h.

References _sieve1Size.

Referenced by parseOptions().

void PanoDetector::setSieve1Width ( int  iWidth  )  [inline]

Definition at line 120 of file PanoDetector.h.

References _sieve1Width.

Referenced by parseOptions().

void PanoDetector::setSieve2Height ( int  iHeight  )  [inline]

Definition at line 199 of file PanoDetector.h.

References _sieve2Height.

Referenced by parseOptions().

void PanoDetector::setSieve2Size ( int  iSize  )  [inline]

Definition at line 203 of file PanoDetector.h.

References _sieve2Size.

Referenced by parseOptions().

void PanoDetector::setSieve2Width ( int  iWidth  )  [inline]

Definition at line 195 of file PanoDetector.h.

References _sieve2Width.

Referenced by parseOptions().

void PanoDetector::setTest ( bool  iTest  )  [inline]

Definition at line 300 of file PanoDetector.h.

References _test.

Referenced by parseOptions().

void PanoDetector::setVerbose ( int  level  )  [inline]

Definition at line 111 of file PanoDetector.h.

References _verbose.

Referenced by parseOptions().

void PanoDetector::setWriteAllKeyPoints ( bool  writeAllKeyPoints = true  )  [inline]

Definition at line 102 of file PanoDetector.h.

References _writeAllKeyPoints.

Referenced by parseOptions().

void PanoDetector::writeKeyfile ( ImgData imgInfo  )  [private]

Definition at line 1219 of file PanoDetectorLogic.cpp.

References PanoDetector::ImgData::_descLength, PanoDetector::ImgData::_keyfilename, PanoDetector::ImgData::_kp, PanoDetector::ImgData::_name, PanoDetector::ImgData::_number, _panoramaInfo, and HuginBase::Panorama::getImage().

Referenced by run().

void PanoDetector::writeOutput (  )  [private]

Definition at line 1196 of file PanoDetectorLogic.cpp.

References _outputFile, _panoramaInfo, cerr, HuginBase::Panorama::removeDuplicateCtrlPoints(), AppBase::DocumentData::SUCCESSFUL, and HuginBase::Panorama::writeData().

Referenced by run().


Member Data Documentation

bool PanoDetector::_cache [private]

Definition at line 351 of file PanoDetector.h.

Referenced by getCached(), printDetails(), printFilenames(), run(), and setCached().

bool PanoDetector::_celeste [private]

Definition at line 353 of file PanoDetector.h.

Referenced by getCeleste(), loadProject(), printDetails(), run(), and setCeleste().

int PanoDetector::_celesteRadius [private]

Definition at line 355 of file PanoDetector.h.

Referenced by getCelesteRadius(), printDetails(), and setCelesteRadius().

double PanoDetector::_celesteThreshold [private]

Definition at line 354 of file PanoDetector.h.

Referenced by getCelesteThreshold(), printDetails(), and setCelesteThreshold().

bool PanoDetector::_cleanup [private]

Definition at line 352 of file PanoDetector.h.

Referenced by getCleanup(), printDetails(), run(), and setCleanup().

int PanoDetector::_cores [private]

Definition at line 349 of file PanoDetector.h.

Referenced by printDetails(), run(), and setCores().

bool PanoDetector::_downscale [private]

Definition at line 350 of file PanoDetector.h.

Referenced by AnalyzeImage(), getDownscale(), loadProject(), printDetails(), RemapBackKeypoints(), and setDownscale().

ImgData_t PanoDetector::_filesData [private]

Definition at line 469 of file PanoDetector.h.

Referenced by checkData(), checkLoadSuccess(), CleanupKeyfiles(), loadProject(), match(), matchMultiRow(), matchPrealigned(), printFilenames(), and run().

HuginBase::UIntSet PanoDetector::_image_layer [private]

image set contains only the images with the median exposure of each stack

Definition at line 374 of file PanoDetector.h.

Referenced by buildMultiRowImageSets(), matchMultiRow(), and run().

std::vector<HuginBase::UIntVector> PanoDetector::_image_stacks [private]

vector with image numbers of all stacks, contains only the unlinked stacks

Definition at line 376 of file PanoDetector.h.

Referenced by buildMultiRowImageSets(), matchMultiRow(), and run().

std::string PanoDetector::_inputFile [private]

Definition at line 364 of file PanoDetector.h.

Referenced by loadProject(), printDetails(), and setInputFile().

int PanoDetector::_kdTreeSearchSteps [private]

Definition at line 333 of file PanoDetector.h.

Referenced by getKDTreeSearchSteps(), printDetails(), and setKDTreeSearchSteps().

double PanoDetector::_kdTreeSecondDistance [private]

Definition at line 334 of file PanoDetector.h.

Referenced by getKDTreeSecondDistance(), printDetails(), and setKDTreeSecondDistance().

std::string PanoDetector::_keypath [private]

Definition at line 356 of file PanoDetector.h.

Referenced by loadProject(), printDetails(), and setKeyfilesPath().

std::vector<int> PanoDetector::_keyPointsIdx [private]

Definition at line 325 of file PanoDetector.h.

Referenced by checkLoadSuccess(), getKeyPointsIdx(), printDetails(), printFilenames(), run(), and setKeyPointsIdx().

int PanoDetector::_linearMatchLen [private]

Definition at line 346 of file PanoDetector.h.

Referenced by checkData(), getLinearMatchLen(), match(), printDetails(), and setLinearMatchLen().

MatchingStrategy PanoDetector::_matchingStrategy [private]

Definition at line 345 of file PanoDetector.h.

Referenced by getMatchingStrategy(), printDetails(), and setMatchingStrategy().

int PanoDetector::_minimumMatches [private]

Definition at line 336 of file PanoDetector.h.

Referenced by getMinimumMatches(), printDetails(), and setMinimumMatches().

std::string PanoDetector::_outputFile [private]

Definition at line 362 of file PanoDetector.h.

Referenced by printDetails(), run(), setOutputFile(), and writeOutput().

bool PanoDetector::_outputGiven [private]

Definition at line 363 of file PanoDetector.h.

Referenced by run(), and setOutputFile().

HuginBase::Panorama* PanoDetector::_panoramaInfo [private]

Definition at line 367 of file PanoDetector.h.

Referenced by buildMultiRowImageSets(), getPanoramaInfo(), loadProject(), match(), matchMultiRow(), matchPrealigned(), PanoDetector(), printFilenames(), RansacMatchesInPair(), RansacMatchesInPairCam(), run(), writeKeyfile(), writeOutput(), and ~PanoDetector().

HuginBase::Panorama PanoDetector::_panoramaInfoCopy [private]

Definition at line 368 of file PanoDetector.h.

Referenced by AnalyzeImage(), loadProject(), and RemapBackKeypoints().

std::string PanoDetector::_prefix [private]

Definition at line 357 of file PanoDetector.h.

Referenced by loadProject(), and printFilenames().

int PanoDetector::_ransacDistanceThres [private]

Definition at line 339 of file PanoDetector.h.

Referenced by getRansacDistanceThreshold(), printDetails(), and setRansacDistanceThreshold().

int PanoDetector::_ransacIters [private]

Definition at line 338 of file PanoDetector.h.

Referenced by getRansacIterations(), printDetails(), and setRansacIterations().

HuginBase::RANSACOptimizer::Mode PanoDetector::_ransacMode [private]

Definition at line 337 of file PanoDetector.h.

Referenced by getRansacMode(), printDetails(), RansacMatchesInPair(), RansacMatchesInPairCam(), and setRansacMode().

int PanoDetector::_sieve1Height [private]

Definition at line 330 of file PanoDetector.h.

Referenced by getSieve1Height(), printDetails(), and setSieve1Height().

int PanoDetector::_sieve1Size [private]

Definition at line 331 of file PanoDetector.h.

Referenced by getSieve1Size(), printDetails(), and setSieve1Size().

int PanoDetector::_sieve1Width [private]

Definition at line 329 of file PanoDetector.h.

Referenced by getSieve1Width(), printDetails(), and setSieve1Width().

int PanoDetector::_sieve2Height [private]

Definition at line 342 of file PanoDetector.h.

Referenced by getSieve2Height(), printDetails(), and setSieve2Height().

int PanoDetector::_sieve2Size [private]

Definition at line 343 of file PanoDetector.h.

Referenced by getSieve2Size(), printDetails(), and setSieve2Size().

int PanoDetector::_sieve2Width [private]

Definition at line 341 of file PanoDetector.h.

Referenced by getSieve2Width(), printDetails(), and setSieve2Width().

bool PanoDetector::_test [private]

Definition at line 348 of file PanoDetector.h.

Referenced by checkData(), getTest(), and setTest().

int PanoDetector::_verbose [private]

Definition at line 327 of file PanoDetector.h.

Referenced by getVerbose(), run(), and setVerbose().

bool PanoDetector::_writeAllKeyPoints [private]

Definition at line 324 of file PanoDetector.h.

Referenced by getWriteAllKeyPoints(), printDetails(), run(), and setWriteAllKeyPoints().

struct celeste::svm_model* PanoDetector::svmModel [private]

Definition at line 470 of file PanoDetector.h.

Referenced by AnalyzeImage(), LoadSVMModel(), and run().


The documentation for this class was generated from the following files:
Generated on 28 Jun 2016 for Hugintrunk by  doxygen 1.4.7