Hugintrunk
0.1
|
#include <PointSampler.h>
Public Member Functions | |
AllPointSampler (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay, std::vector< vigra::FRGBImage * > images, LimitIntensityVector limits, int nPoints) | |
virtual | ~AllPointSampler () |
Public Member Functions inherited from HuginBase::PointSampler | |
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... | |
Static Public Member Functions | |
template<class Img , class VoteImg , class PP > | |
static void | sampleAllPanoPoints (const std::vector< Img > &imgs, const std::vector< VoteImg * > &voteImgs, const PanoramaData &pano, int nPoints, const LimitIntensityVector limitI, std::vector< std::multimap< double, PP > > &radiusHist, unsigned &nGoodPoints, unsigned &nBadPoints, AppBase::ProgressDisplay *progress) |
sample all points inside a panorama and check for create a bins of point pairs that include a specific radius. More... | |
Protected Member Functions | |
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 *progress) |
Protected Member Functions inherited from HuginBase::PointSampler | |
PointSampler (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay, std::vector< vigra::FRGBImage * > images, LimitIntensityVector limits, int nPoints) | |
void | sampleAndExtractPoints (AppBase::ProgressDisplay *progress) |
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) | |
Additional Inherited Members | |
Public Types inherited from HuginBase::PointSampler | |
typedef std::vector < vigra_ext::PointPairRGB > | PointPairs |
Protected Types inherited from HuginBase::PointSampler | |
typedef vigra_ext::ImageInterpolator < vigra::FRGBImage::const_traverser, vigra::FRGBImage::ConstAccessor, vigra_ext::interp_cubic > | InterpolImg |
Static Protected Member Functions inherited from HuginBase::PointSampler | |
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 inherited from HuginBase::PointSampler | |
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 149 of file PointSampler.h.
|
inline |
Definition at line 153 of file PointSampler.h.
|
inlinevirtual |
Definition at line 160 of file PointSampler.h.
|
static |
sample all points inside a panorama and check for create a bins of point pairs that include a specific radius.
Definition at line 301 of file PointSampler.h.
References HuginBase::PTools::Transform::createTransform(), HuginBase::PanoramaData::getImage(), vigra_ext::getMaxComponent(), HuginBase::PanoramaData::getOptions(), HuginBase::SrcPanoImage::getRadialVigCorrCenter(), HuginBase::PanoramaOptions::getROI(), HuginBase::SrcPanoImage::isInside(), hugin_utils::norm(), hugin_utils::sqr(), hugin_utils::TDiff2D< T >::toDiff2D(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by samplePoints().
|
inlineprotectedvirtual |
Implements HuginBase::PointSampler.
Definition at line 180 of file PointSampler.h.
References HuginBase::PointSampler::o_numPoints, and sampleAllPanoPoints().