HuginBase::PointSampler Class Reference
#include <PointSampler.h>
Inheritance diagram for HuginBase::PointSampler:
[legend]List of all members.
|
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 |
Member Typedef Documentation
Constructor & Destructor Documentation
| HuginBase::PointSampler::PointSampler |
( |
PanoramaData & |
panorama, |
|
|
AppBase::ProgressDisplay * |
progressDisplay, |
|
|
std::vector< vigra::FRGBImage * > |
images, |
|
|
int |
nPoints |
|
) |
[inline, protected] |
|
| virtual HuginBase::PointSampler::~PointSampler |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
|
|
for compatibility deprecated
|
| PointPairs HuginBase::PointSampler::getResultPoints |
( |
|
) |
[inline] |
|
| virtual bool HuginBase::PointSampler::modifiesPanoramaData |
( |
|
) |
const [inline, virtual] |
|
| bool HuginBase::PointSampler::runAlgorithm |
( |
|
) |
[virtual] |
|
| virtual void HuginBase::PointSampler::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 |
|
) |
[protected, pure virtual] |
|
|
template<class PointPairClass> |
| void HuginBase::PointSampler::sampleRadiusUniform |
( |
const std::vector< std::multimap< double, PointPairClass > > & |
radiusHist, |
|
|
unsigned |
nPoints, |
|
|
std::vector< PointPairClass > & |
selectedPoints, |
|
|
AppBase::ProgressReporter & |
progress |
|
) |
[static, protected] |
|
|
|
extract some random points out of the bins.
This should ensure that the radius distribution is roughly uniform |
Member Data Documentation
The documentation for this class was generated from the following files: