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 boost::shared_ptr<
KPKDTree
KPKDTreePtr
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
enum  MatchingStrategy { ALLPAIRS = 0, LINEAR, MULTIROW, PREALIGNED }
 for selecting matching strategy More...

Public Member Functions

 PanoDetector ()
bool checkData ()
void printDetails ()
void printFilenames ()
void printHelp ()
void run ()
bool match (ZThread::PoolExecutor &aExecutor, std::vector< HuginBase::UIntSet > &checkedPairs)
bool matchMultiRow (ZThread::PoolExecutor &aExecutor)
bool matchPrealigned (ZThread::PoolExecutor &aExecutor, 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
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 (RANSACOptimizer::Mode mode)
int getMinimumMatches () const
int getRansacIterations () const
int getRansacDistanceThreshold () const
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

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

Private Member Functions

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
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
Panorama_panoramaInfo
Panorama _panoramaInfoCopy
ImgData_t _filesData
MatchData_t _matchesData
celeste::svm_modelsvmModel


Member Typedef Documentation

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

Definition at line 53 of file PanoDetector.h.

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

Definition at line 54 of file PanoDetector.h.

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

Definition at line 405 of file PanoDetector.h.

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

Definition at line 406 of file PanoDetector.h.

Referenced by CleanupKeyfiles(), and run().

typedef lfeat::KeyPointDetector PanoDetector::KeyPointDetector
 

Definition at line 58 of file PanoDetector.h.

Referenced by FindKeyPointsInImage().

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

Definition at line 55 of file PanoDetector.h.

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

Definition at line 56 of file PanoDetector.h.

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

Definition at line 415 of file PanoDetector.h.

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

Definition at line 416 of file PanoDetector.h.


Member Enumeration Documentation

enum PanoDetector::MatchingStrategy
 

for selecting matching strategy

Enumeration values:
ALLPAIRS 
LINEAR 
MULTIROW 
PREALIGNED 

Definition at line 61 of file PanoDetector.h.


Constructor & Destructor Documentation

PanoDetector::PanoDetector  ) 
 

Definition at line 112 of file PanoDetector.cpp.

References _panoramaInfo, and hugin_utils::getCPUCount().


Member Function Documentation

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

Definition at line 160 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, vigra_ext::applyMapping(), applyMaskAndCrop(), vigra_ext::destImage(), vigra_ext::destImageRange(), getCeleste(), celeste::getCelesteMask(), getCelesteRadius(), getCelesteThreshold(), HuginBase::Panorama::getImage(), HuginBase::PanoramaOptions::getROI(), gray2RGB(), HuginBase::SrcPanoImage::hasActiveMasks(), vigra::importImageAlpha(), lfeat::Image::init(), vigra_ext::ROIImage< RemapImage, AlphaImage >::m_image, vigra_ext::ROIImage< RemapImage, AlphaImage >::m_mask, HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), HuginBase::SrcPanoImage::resize(), vigra_ext::ROIImage< RemapImage, AlphaImage >::resize(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::setPanoImage(), vigra_ext::srcImage(), vigra_ext::srcImageRange(), makefile::string, 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 556 of file PanoDetectorLogic.cpp.

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

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

bool PanoDetector::checkData  ) 
 

Definition at line 125 of file PanoDetector.cpp.

References _filesData, and _linearMatchLen.

Referenced by main().

bool PanoDetector::checkLoadSuccess  )  [private]
 

Definition at line 866 of file PanoDetector.cpp.

References _filesData, and _keyPointsIdx.

Referenced by run().

void PanoDetector::CleanupKeyfiles  )  [private]
 

Definition at line 891 of file PanoDetector.cpp.

References _filesData, and ImgDataIt_t.

Referenced by run().

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

Definition at line 438 of file PanoDetectorLogic.cpp.

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

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

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

Definition at line 842 of file PanoDetectorLogic.cpp.

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

Referenced by MatchDataRunnable::run().

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

Definition at line 422 of file PanoDetectorLogic.cpp.

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

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

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

Definition at line 593 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 582 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 263 of file PanoDetector.h.

bool PanoDetector::getCeleste  )  const [inline]
 

Definition at line 279 of file PanoDetector.h.

Referenced by AnalyzeImage().

int PanoDetector::getCelesteRadius  )  const [inline]
 

Definition at line 295 of file PanoDetector.h.

Referenced by AnalyzeImage().

double PanoDetector::getCelesteThreshold  )  const [inline]
 

Definition at line 287 of file PanoDetector.h.

Referenced by AnalyzeImage().

bool PanoDetector::getCleanup  )  const [inline]
 

Definition at line 271 of file PanoDetector.h.

bool PanoDetector::getDownscale  )  const [inline]
 

Definition at line 240 of file PanoDetector.h.

Referenced by RansacMatchesInPairHomography().

int PanoDetector::getKDTreeSearchSteps  )  const [inline]
 

Definition at line 156 of file PanoDetector.h.

Referenced by FindMatchesInPair().

double PanoDetector::getKDTreeSecondDistance  )  const [inline]
 

Definition at line 160 of file PanoDetector.h.

Referenced by FindMatchesInPair().

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

Definition at line 101 of file PanoDetector.h.

int PanoDetector::getLinearMatchLen  )  const [inline]
 

Definition at line 227 of file PanoDetector.h.

MatchingStrategy PanoDetector::getMatchingStrategy  )  const [inline]
 

Definition at line 235 of file PanoDetector.h.

Referenced by match(), and run().

int PanoDetector::getMinimumMatches  )  const [inline]
 

Definition at line 181 of file PanoDetector.h.

Referenced by RansacMatchesInPairCam(), and RansacMatchesInPairHomography().

Panorama* PanoDetector::getPanoramaInfo  )  const [inline]
 

Definition at line 92 of file PanoDetector.h.

int PanoDetector::getRansacDistanceThreshold  )  const [inline]
 

Definition at line 189 of file PanoDetector.h.

Referenced by RansacMatchesInPairCam(), and RansacMatchesInPairHomography().

int PanoDetector::getRansacIterations  )  const [inline]
 

Definition at line 185 of file PanoDetector.h.

Referenced by RansacMatchesInPairHomography().

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

Definition at line 193 of file PanoDetector.h.

int PanoDetector::getSieve1Height  )  const [inline]
 

Definition at line 139 of file PanoDetector.h.

Referenced by FilterKeyPointsInImage().

int PanoDetector::getSieve1Size  )  const [inline]
 

Definition at line 143 of file PanoDetector.h.

Referenced by FilterKeyPointsInImage().

int PanoDetector::getSieve1Width  )  const [inline]
 

Definition at line 135 of file PanoDetector.h.

Referenced by FilterKeyPointsInImage().

int PanoDetector::getSieve2Height  )  const [inline]
 

Definition at line 214 of file PanoDetector.h.

Referenced by FilterMatchesInPair().

int PanoDetector::getSieve2Size  )  const [inline]
 

Definition at line 218 of file PanoDetector.h.

Referenced by FilterMatchesInPair().

int PanoDetector::getSieve2Width  )  const [inline]
 

Definition at line 210 of file PanoDetector.h.

Referenced by FilterMatchesInPair().

bool PanoDetector::getTest  )  const [inline]
 

Definition at line 307 of file PanoDetector.h.

Referenced by RansacMatchesInPairHomography().

int PanoDetector::getVerbose  )  const [inline]
 

Definition at line 118 of file PanoDetector.h.

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

bool PanoDetector::getWriteAllKeyPoints  )  const [inline]
 

Definition at line 109 of file PanoDetector.h.

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

Definition at line 106 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, lfeat::ImageInfo::dimensions, lfeat::ImageInfo::filename, lfeat::ImageInfo::height, lfeat::loadKeypoints(), celeste::max(), HuginBase::PanoramaOptions::setHeight(), HuginBase::PanoramaOptions::setWidth(), TRACE_IMG, and lfeat::ImageInfo::width.

Referenced by LoadKeypointsDataRunnable::run().

bool PanoDetector::loadProject  )  [private]
 

Definition at line 730 of file PanoDetector.cpp.

References _celeste, PanoDetector::ImgData::_detectHeight, PanoDetector::ImgData::_detectWidth, _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::PanoramaOptions::getHeight(), getKeyfilenameFor(), HuginBase::Panorama::getNrOfImages(), hugin_utils::getPathPrefix(), HuginBase::Panorama::getSrcImage(), HuginBase::PanoramaOptions::getWidth(), makefile::ifstream, includeTrailingPathSep(), celeste::max(), HuginBase::Panorama::readData(), HuginBase::BaseSrcPanoImage::setActive(), HuginBase::BaseSrcPanoImage::setExposureValue(), HuginBase::Panorama::setFilePrefix(), HuginBase::PanoramaOptions::setHeight(), HuginBase::PanoramaOptions::setHFOV(), HuginBase::Panorama::setImage(), HuginBase::BaseSrcPanoImage::setPitch(), HuginBase::PanoramaOptions::setProjection(), HuginBase::BaseSrcPanoImage::setResponseType(), HuginBase::PanoramaOptions::setROI(), HuginBase::BaseSrcPanoImage::setRoll(), HuginBase::PanoramaOptions::setVFOV(), HuginBase::PanoramaOptions::setWidth(), HuginBase::BaseSrcPanoImage::setX(), HuginBase::BaseSrcPanoImage::setY(), HuginBase::BaseSrcPanoImage::setYaw(), HuginBase::BaseSrcPanoImage::setZ(), and HuginBase::Panorama::updateMasks().

Referenced by run().

bool PanoDetector::LoadSVMModel  )  [private]
 

Definition at line 378 of file PanoDetector.cpp.

References cout, makefile::ifstream, celeste::loadSVMmodel(), makefile::path, makefile::string, and svmModel.

Referenced by run().

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

Definition at line 481 of file PanoDetectorLogic.cpp.

References PanoDetector::ImgData::_descLength, PanoDetector::ImgData::_ii, PanoDetector::ImgData::_kp, lfeat::KeyPointPtr, lfeat::KeyPointVect_t, and TRACE_IMG.

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

bool PanoDetector::match ZThread::PoolExecutor &  aExecutor,
std::vector< HuginBase::UIntSet > &  checkedPairs
 

Definition at line 668 of file PanoDetector.cpp.

References _filesData, PanoDetector::MatchData::_i1, PanoDetector::MatchData::_i2, PanoDetector::MatchData::_matches, _matchesData, PanoDetector::ImgData::_number, _panoramaInfo, HuginBase::Panorama::addCtrlPoint(), getMatchingStrategy(), set_contains(), TRACE_ERROR, and TRACE_INFO.

Referenced by matchMultiRow(), and run().

bool PanoDetector::matchMultiRow ZThread::PoolExecutor &  aExecutor  ) 
 

Definition at line 917 of file PanoDetector.cpp.

References _filesData, PanoDetector::MatchData::_i1, PanoDetector::MatchData::_i2, PanoDetector::MatchData::_matches, _matchesData, PanoDetector::ImgData::_number, _panoramaInfo, HuginBase::Panorama::addCtrlPoint(), HuginBase::AutoOptimise::autoOptimise(), PT::Panorama::calcOptimalWidth(), HuginBase::CPComponents, HuginBase::CPGraph, HuginBase::CPVector, HuginBase::createCPGraph(), HuginBase::findCPComponents(), HuginBase::Panorama::getCtrlPoints(), HuginBase::SrcPanoImage::getExposure(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), HuginBase::ConstImageVariableGroup::getPartNumber(), HuginBase::StandardImageVariableGroups::getStacks(), HuginBase::Panorama::getSubset(), HuginBase::Panorama::getVariables(), getVerbose(), map_get(), match(), matchPrealigned(), HuginBase::PTools::optimize(), HuginBase::PanoramaOptions::optimizeReferenceImage, HuginBase::OptimizeVector, set_contains(), HuginBase::Panorama::setCtrlPoints(), HuginBase::PanoramaOptions::setHeight(), HuginBase::Panorama::setOptimizeVector(), HuginBase::Panorama::setOptions(), HuginBase::PanoramaOptions::setProjection(), HuginBase::PanoramaOptions::setWidth(), TRACE_ERROR, TRACE_INFO, HuginBase::UIntSet, HuginBase::Panorama::updateVariables(), and HuginBase::VariableMapVector.

Referenced by run().

bool PanoDetector::matchPrealigned ZThread::PoolExecutor &  aExecutor,
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 1167 of file PanoDetector.cpp.

References _filesData, PanoDetector::MatchData::_i1, PanoDetector::MatchData::_i2, PanoDetector::MatchData::_matches, _matchesData, PanoDetector::ImgData::_number, _panoramaInfo, HuginBase::Panorama::addCtrlPoint(), HuginBase::CalculateImageOverlap::calculate(), HuginBase::Panorama::duplicate(), HuginBase::Panorama::getNrOfImages(), HuginBase::CalculateImageOverlap::getOverlap(), makefile::Variable::getValue(), HuginBase::Panorama::getVariables(), map_get(), set_contains(), TRACE_ERROR, TRACE_INFO, HuginBase::Panorama::updateVariables(), and HuginBase::VariableMapVector.

Referenced by matchMultiRow(), and run().

void PanoDetector::printDetails  ) 
 

Definition at line 147 of file PanoDetector.cpp.

References _celesteRadius, _celesteThreshold, _cores, _downscale, _inputFile, _kdTreeSearchSteps, _kdTreeSecondDistance, _keypath, _keyPointsIdx, _linearMatchLen, _minimumMatches, _outputFile, _ransacDistanceThres, _ransacIters, _sieve1Height, _sieve1Size, _sieve1Width, _sieve2Height, _sieve2Size, _sieve2Width, ALLPAIRS, cout, LINEAR, MULTIROW, and PREALIGNED.

Referenced by main().

void PanoDetector::printFilenames  ) 
 

Definition at line 245 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 670 of file PanoDetectorLogic.cpp.

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

Referenced by MatchDataRunnable::run().

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

Definition at line 687 of file PanoDetectorLogic.cpp.

References PanoDetector::MatchData::_i1, PanoDetector::MatchData::_i2, PanoDetector::MatchData::_matches, PanoDetector::ImgData::_number, _panoramaInfo, _ransacMode, aPanoToolsMutex, HuginBase::CPVector, HuginBase::RANSACOptimizer::findInliers(), getMinimumMatches(), HuginBase::Panorama::getNewSubset(), getRansacDistanceThreshold(), lfeat::PointMatchPtr, lfeat::PointMatchVector_t, HuginBase::PanoramaData::setCtrlPoints(), TRACE_PAIR, and HuginBase::UIntSet.

Referenced by RansacMatchesInPair().

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

Definition at line 791 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::PointMatchVector_t, lfeat::Ransac::setDistanceThreshold(), lfeat::Ransac::setIterations(), and TRACE_PAIR.

Referenced by RansacMatchesInPair().

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

Definition at line 513 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(), lfeat::KeyPointPtr, TRACE_IMG, and HuginBase::PTools::Transform::transformImgCoord().

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

void PanoDetector::run  ) 
 

Write output project

Definition at line 437 of file PanoDetector.cpp.

References _cores, _filesData, _keyPointsIdx, _outputFile, _panoramaInfo, _verbose, ALLPAIRS, checkLoadSuccess(), CleanupKeyfiles(), cout, celeste::destroySVMmodel(), HuginBase::Panorama::getCtrlPoints(), getMatchingStrategy(), HuginBase::Panorama::getNrOfImages(), utils::getTotalMemory(), getVerbose(), ImgDataIt_t, LINEAR, loadProject(), LoadSVMModel(), match(), matchMultiRow(), matchPrealigned(), MULTIROW, PREALIGNED, printFilenames(), setCeleste(), setCores(), srandom, svmModel, TRACE_ERROR, TRACE_INFO, writeKeyfile(), and writeOutput().

Referenced by main().

void PanoDetector::setCached bool  iCached  )  [inline]
 

Definition at line 267 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setCeleste bool  iCeleste  )  [inline]
 

Definition at line 283 of file PanoDetector.h.

Referenced by parseOptions(), and run().

void PanoDetector::setCelesteRadius int  iCelesteRadius  )  [inline]
 

Definition at line 299 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setCelesteThreshold double  iCelesteThreshold  )  [inline]
 

Definition at line 291 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setCleanup bool  iCleanup  )  [inline]
 

Definition at line 275 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setCores int  iCores  )  [inline]
 

Definition at line 311 of file PanoDetector.h.

Referenced by parseOptions(), and run().

void PanoDetector::setDownscale bool  iDown  )  [inline]
 

Definition at line 244 of file PanoDetector.h.

Referenced by parseOptions().

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

Definition at line 255 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setKDTreeSearchSteps int  iSteps  )  [inline]
 

Definition at line 148 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setKDTreeSecondDistance double  iDist  )  [inline]
 

Definition at line 152 of file PanoDetector.h.

Referenced by parseOptions().

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

Definition at line 259 of file PanoDetector.h.

Referenced by parseOptions().

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

Definition at line 97 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setLinearMatchLen int  iLen  )  [inline]
 

Definition at line 223 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setMatchingStrategy MatchingStrategy  iMatchStrategy  )  [inline]
 

Definition at line 231 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setMinimumMatches int  iMatches  )  [inline]
 

Definition at line 165 of file PanoDetector.h.

Referenced by parseOptions().

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

Definition at line 250 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setRansacDistanceThreshold int  iDT  )  [inline]
 

Definition at line 173 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setRansacIterations int  iIters  )  [inline]
 

Definition at line 169 of file PanoDetector.h.

Referenced by parseOptions().

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

Definition at line 177 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setSieve1Height int  iHeight  )  [inline]
 

Definition at line 127 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setSieve1Size int  iSize  )  [inline]
 

Definition at line 131 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setSieve1Width int  iWidth  )  [inline]
 

Definition at line 123 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setSieve2Height int  iHeight  )  [inline]
 

Definition at line 202 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setSieve2Size int  iSize  )  [inline]
 

Definition at line 206 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setSieve2Width int  iWidth  )  [inline]
 

Definition at line 198 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setTest bool  iTest  )  [inline]
 

Definition at line 303 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::setVerbose int  level  )  [inline]
 

Definition at line 114 of file PanoDetector.h.

Referenced by parseOptions().

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

Definition at line 105 of file PanoDetector.h.

Referenced by parseOptions().

void PanoDetector::writeKeyfile ImgData imgInfo  )  [private]
 

Definition at line 932 of file PanoDetectorLogic.cpp.

References PanoDetector::ImgData::_descLength, PanoDetector::ImgData::_keyfilename, PanoDetector::ImgData::_kp, PanoDetector::ImgData::_name, PanoDetector::ImgData::_number, _panoramaInfo, HuginBase::Panorama::getImage(), lfeat::KeyPointPtr, makefile::ofstream, lfeat::SIFTFormatWriter::writeFooter(), lfeat::SIFTFormatWriter::writeHeader(), and lfeat::SIFTFormatWriter::writeKeypoint().

Referenced by run().

void PanoDetector::writeOutput  )  [private]
 

Definition at line 909 of file PanoDetectorLogic.cpp.

References _outputFile, _panoramaInfo, cerr, makefile::ofstream, HuginBase::Panorama::removeDuplicateCtrlPoints(), and HuginBase::Panorama::writeData().

Referenced by run().


Member Data Documentation

bool PanoDetector::_cache [private]
 

Definition at line 350 of file PanoDetector.h.

Referenced by printFilenames().

bool PanoDetector::_celeste [private]
 

Definition at line 352 of file PanoDetector.h.

Referenced by loadProject().

int PanoDetector::_celesteRadius [private]
 

Definition at line 354 of file PanoDetector.h.

Referenced by printDetails().

double PanoDetector::_celesteThreshold [private]
 

Definition at line 353 of file PanoDetector.h.

Referenced by printDetails().

bool PanoDetector::_cleanup [private]
 

Definition at line 351 of file PanoDetector.h.

int PanoDetector::_cores [private]
 

Definition at line 348 of file PanoDetector.h.

Referenced by printDetails(), and run().

bool PanoDetector::_downscale [private]
 

Definition at line 349 of file PanoDetector.h.

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

ImgData_t PanoDetector::_filesData [private]
 

Definition at line 437 of file PanoDetector.h.

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

std::string PanoDetector::_inputFile [private]
 

Definition at line 363 of file PanoDetector.h.

Referenced by loadProject(), and printDetails().

int PanoDetector::_kdTreeSearchSteps [private]
 

Definition at line 332 of file PanoDetector.h.

Referenced by printDetails().

double PanoDetector::_kdTreeSecondDistance [private]
 

Definition at line 333 of file PanoDetector.h.

Referenced by printDetails().

std::string PanoDetector::_keypath [private]
 

Definition at line 355 of file PanoDetector.h.

Referenced by loadProject(), and printDetails().

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

Definition at line 324 of file PanoDetector.h.

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

int PanoDetector::_linearMatchLen [private]
 

Definition at line 345 of file PanoDetector.h.

Referenced by checkData(), and printDetails().

MatchData_t PanoDetector::_matchesData [private]
 

Definition at line 438 of file PanoDetector.h.

Referenced by match(), matchMultiRow(), and matchPrealigned().

MatchingStrategy PanoDetector::_matchingStrategy [private]
 

Definition at line 344 of file PanoDetector.h.

int PanoDetector::_minimumMatches [private]
 

Definition at line 335 of file PanoDetector.h.

Referenced by printDetails().

std::string PanoDetector::_outputFile [private]
 

Definition at line 361 of file PanoDetector.h.

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

bool PanoDetector::_outputGiven [private]
 

Definition at line 362 of file PanoDetector.h.

Panorama* PanoDetector::_panoramaInfo [private]
 

Definition at line 366 of file PanoDetector.h.

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

Panorama PanoDetector::_panoramaInfoCopy [private]
 

Definition at line 367 of file PanoDetector.h.

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

std::string PanoDetector::_prefix [private]
 

Definition at line 356 of file PanoDetector.h.

Referenced by loadProject(), and printFilenames().

int PanoDetector::_ransacDistanceThres [private]
 

Definition at line 338 of file PanoDetector.h.

Referenced by printDetails().

int PanoDetector::_ransacIters [private]
 

Definition at line 337 of file PanoDetector.h.

Referenced by printDetails().

RANSACOptimizer::Mode PanoDetector::_ransacMode [private]
 

Definition at line 336 of file PanoDetector.h.

Referenced by RansacMatchesInPair(), and RansacMatchesInPairCam().

int PanoDetector::_sieve1Height [private]
 

Definition at line 329 of file PanoDetector.h.

Referenced by printDetails().

int PanoDetector::_sieve1Size [private]
 

Definition at line 330 of file PanoDetector.h.

Referenced by printDetails().

int PanoDetector::_sieve1Width [private]
 

Definition at line 328 of file PanoDetector.h.

Referenced by printDetails().

int PanoDetector::_sieve2Height [private]
 

Definition at line 341 of file PanoDetector.h.

Referenced by printDetails().

int PanoDetector::_sieve2Size [private]
 

Definition at line 342 of file PanoDetector.h.

Referenced by printDetails().

int PanoDetector::_sieve2Width [private]
 

Definition at line 340 of file PanoDetector.h.

Referenced by printDetails().

bool PanoDetector::_test [private]
 

Definition at line 347 of file PanoDetector.h.

int PanoDetector::_verbose [private]
 

Definition at line 326 of file PanoDetector.h.

Referenced by run().

bool PanoDetector::_writeAllKeyPoints [private]
 

Definition at line 323 of file PanoDetector.h.

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

Definition at line 439 of file PanoDetector.h.

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


The documentation for this class was generated from the following files:
Generated on Wed Jul 30 01:25:53 2014 for Hugintrunk by  doxygen 1.3.9.1