Hugintrunk
0.1
|
#include <PointSampler.h>
Public Types | |
typedef std::vector < vigra_ext::PointPairRGB > | PointPairs |
Public Member Functions | |
virtual | ~PointSampler () |
virtual bool | modifiesPanoramaData () const |
returns true if the algorithm changes the PanoramaData. More... | |
virtual bool | runAlgorithm () |
implementation of the algorithm. More... | |
PointSampler & | execute () |
PointPairs | getResultPoints () |
Public Member Functions inherited from HuginBase::TimeConsumingPanoramaAlgorithm | |
virtual | ~TimeConsumingPanoramaAlgorithm () |
virtual bool | wasCancelled () const |
Public Member Functions inherited from HuginBase::PanoramaAlgorithm | |
virtual | ~PanoramaAlgorithm () |
virtual bool | hasRunSuccessfully () |
virtual void | run () |
runs the algorithm. More... | |
Protected Types | |
typedef vigra_ext::ImageInterpolator < vigra::FRGBImage::const_traverser, vigra::FRGBImage::ConstAccessor, vigra_ext::interp_cubic > | InterpolImg |
Protected Member Functions | |
PointSampler (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay, std::vector< vigra::FRGBImage * > images, LimitIntensityVector limits, int nPoints) | |
void | sampleAndExtractPoints (AppBase::ProgressDisplay *progress) |
virtual void | samplePoints (const std::vector< InterpolImg > &imgs, const std::vector< vigra::FImage * > &voteImgs, const PanoramaData &pano, const LimitIntensityVector limitI, std::vector< std::multimap< double, vigra_ext::PointPairRGB > > &radiusHist, unsigned &nGoodPoints, unsigned &nBadPoints, AppBase::ProgressDisplay *)=0 |
Protected Member Functions inherited from HuginBase::TimeConsumingPanoramaAlgorithm | |
TimeConsumingPanoramaAlgorithm (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay=NULL) | |
[Warning! it keeps the reference to the panorama data!] More... | |
virtual AppBase::ProgressDisplay * | getProgressDisplay () const |
virtual bool | hasProgressDisplay () const |
virtual void | cancelAlgorithm () |
Call this when the algorithm is cancelled. More... | |
virtual void | algorithmCancelled () |
Called when the algorithm got cancelled; override with cleaning up process etc. More... | |
Protected Member Functions inherited from HuginBase::PanoramaAlgorithm | |
PanoramaAlgorithm (PanoramaData &panorama) | |
Static Protected Member Functions | |
template<class PointPairClass > | |
static void | sampleRadiusUniform (const std::vector< std::multimap< double, PointPairClass > > &radiusHist, unsigned nPoints, std::vector< PointPairClass > &selectedPoints, AppBase::ProgressDisplay *) |
extract some random points out of the bins. More... | |
Protected Attributes | |
std::vector< vigra::FRGBImage * > | o_images |
int | o_numPoints |
PointPairs | o_resultPoints |
LimitIntensityVector | m_limits |
Protected Attributes inherited from HuginBase::PanoramaAlgorithm | |
PanoramaData & | o_panorama |
bool | o_successful |
Definition at line 67 of file PointSampler.h.
|
protected |
Definition at line 80 of file PointSampler.h.
typedef std::vector<vigra_ext::PointPairRGB> HuginBase::PointSampler::PointPairs |
Definition at line 127 of file PointSampler.h.
|
inlineprotected |
Definition at line 71 of file PointSampler.h.
|
inlinevirtual |
Definition at line 80 of file PointSampler.h.
|
inline |
Definition at line 119 of file PointSampler.h.
Referenced by loadImgsAndExtractPoints(), and OptimizePhotometricPanel::runOptimizer().
|
inline |
Definition at line 130 of file PointSampler.h.
Referenced by loadImgsAndExtractPoints(), and OptimizePhotometricPanel::runOptimizer().
|
inlinevirtual |
returns true if the algorithm changes the PanoramaData.
Implements HuginBase::PanoramaAlgorithm.
Definition at line 113 of file PointSampler.h.
|
virtual |
implementation of the algorithm.
You should override with your algorithm's implementiation.
Implements HuginBase::PanoramaAlgorithm.
Definition at line 61 of file PointSampler.cpp.
References HuginBase::TimeConsumingPanoramaAlgorithm::cancelAlgorithm(), HuginBase::TimeConsumingPanoramaAlgorithm::getProgressDisplay(), sampleAndExtractPoints(), and HuginBase::TimeConsumingPanoramaAlgorithm::wasCancelled().
|
protected |
Definition at line 74 of file PointSampler.cpp.
References vigra_ext::destImage(), HuginBase::PanoramaData::getNewCopy(), HuginBase::PanoramaData::getNrOfImages(), HuginBase::PanoramaData::getOptions(), HuginBase::CalculateFitPanorama::getResultHeight(), HuginBase::CalculateFitPanorama::getResultHorizontalFOV(), HuginBase::PanoramaOptions::getSize(), HuginBase::PanoramaData::getSrcImage(), m_limits, o_images, o_numPoints, HuginBase::PanoramaAlgorithm::o_panorama, o_resultPoints, HuginBase::SrcPanoImage::resize(), hugin_utils::roundi(), HuginBase::PanoramaAlgorithm::run(), samplePoints(), sampleRadiusUniform(), HuginBase::PanoramaOptions::setHeight(), HuginBase::PanoramaOptions::setHFOV(), AppBase::ProgressDisplay::setMessage(), HuginBase::PanoramaData::setOptions(), HuginBase::PanoramaOptions::setROI(), HuginBase::PanoramaData::setSrcImage(), vigra_ext::srcImageRange(), and HuginBase::PanoramaData::updateVariables().
Referenced by runAlgorithm().
|
protectedpure virtual |
Implemented in HuginBase::RandomPointSampler, and HuginBase::AllPointSampler.
Referenced by sampleAndExtractPoints().
|
staticprotected |
extract some random points out of the bins.
This should ensure that the radius distribution is roughly uniform
Definition at line 270 of file PointSampler.h.
Referenced by sampleAndExtractPoints().
|
protected |
Definition at line 142 of file PointSampler.h.
Referenced by sampleAndExtractPoints().
|
protected |
Definition at line 139 of file PointSampler.h.
Referenced by sampleAndExtractPoints().
|
protected |
Definition at line 140 of file PointSampler.h.
Referenced by sampleAndExtractPoints(), HuginBase::AllPointSampler::samplePoints(), and HuginBase::RandomPointSampler::samplePoints().
|
protected |
Definition at line 141 of file PointSampler.h.
Referenced by sampleAndExtractPoints().