#include <PointSampler.h>
Inheritance diagram for HuginBase::PointSampler:

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. | |
| virtual bool | runAlgorithm () |
| implementation of the algorithm. | |
| PointSampler & | execute () |
| PointPairs | getResultPoints () |
Static Public Member Functions | |
| void | extractPoints (PanoramaData &pano, std::vector< vigra::FRGBImage * > images, int nPoints, bool randomPoints, AppBase::ProgressReporter &progress, std::vector< vigra_ext::PointPairRGB > &points) |
| for compatibility deprecated | |
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, int nPoints) | |
| void | sampleAndExtractPoints (AppBase::ProgressReporter &progress) |
| virtual void | samplePoints (const std::vector< InterpolImg > &imgs, const std::vector< vigra::FImage * > &voteImgs, const std::vector< SrcPanoImage > &src, const PanoramaOptions &dest, float minI, float maxI, std::vector< std::multimap< double, vigra_ext::PointPairRGB > > &radiusHist, unsigned &nGoodPoints, unsigned &nBadPoints, AppBase::ProgressReporter &progress)=0 |
Static Protected Member Functions | |
| template<class PointPairClass> | |
| void | sampleRadiusUniform (const std::vector< std::multimap< double, PointPairClass > > &radiusHist, unsigned nPoints, std::vector< PointPairClass > &selectedPoints, AppBase::ProgressReporter &progress) |
| extract some random points out of the bins. | |
Protected Attributes | |
| std::vector< vigra::FRGBImage * > | o_images |
| int | o_numPoints |
| PointPairs | o_resultPoints |
|
|
Definition at line 68 of file PointSampler.h. Referenced by sampleAndExtractPoints(). |
|
|
Definition at line 111 of file PointSampler.h. |
|
||||||||||||||||||||
|
Definition at line 46 of file PointSampler.h. |
|
|
Definition at line 55 of file PointSampler.h. |
|
|
Definition at line 103 of file PointSampler.h. References HuginBase::PanoramaAlgorithm::run(). |
|
||||||||||||||||||||||||||||
|
for compatibility deprecated
Definition at line 149 of file PointSampler.cpp. References getResultPoints(), and sampleAndExtractPoints(). Referenced by PT::extractPoints(), and PT::loadImgsAndExtractPoints(). |
|
|
Definition at line 114 of file PointSampler.h. Referenced by extractPoints(). |
|
|
returns true if the algorithm changes the PanoramaData.
Implements HuginBase::PanoramaAlgorithm. Definition at line 97 of file PointSampler.h. |
|
|
implementation of the algorithm. You should override with your algorithm's implementiation. Implements HuginBase::PanoramaAlgorithm. Definition at line 33 of file PointSampler.cpp. References HuginBase::TimeConsumingPanoramaAlgorithm::cancelAlgorithm(), HuginBase::TimeConsumingPanoramaAlgorithm::getProgressDisplay(), HuginBase::TimeConsumingPanoramaAlgorithm::hasProgressDisplay(), AppBase::ProgressReporterAdaptor::newProgressReporter(), sampleAndExtractPoints(), HuginBase::TimeConsumingPanoramaAlgorithm::wasCancelled(), and AppBase::ProgressDisplay::wasCancelled(). |
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
Implemented in HuginBase::AllPointSampler, and HuginBase::RandomPointSampler. Referenced by sampleAndExtractPoints(). |
|
||||||||||||||||||||||||
|
extract some random points out of the bins. This should ensure that the radius distribution is roughly uniform Definition at line 269 of file PointSampler.h. References AppBase::ProgressReporter::increaseProgress(). Referenced by sampleAndExtractPoints(). |
|
|
Definition at line 123 of file PointSampler.h. |
|
|
Definition at line 124 of file PointSampler.h. |
|
|
Definition at line 125 of file PointSampler.h. |
1.3.9.1