MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mvs::PatchSampler Class Reference

#include <patch_sampler.h>

Collaboration diagram for mvs::PatchSampler:
Collaboration graph
[legend]

Public Types

typedef std::shared_ptr< PatchSamplerPtr
 

Public Member Functions

 PatchSampler ()
 Default constructor.
 
 PatchSampler (std::vector< SingleView::Ptr > const &_views, Settings const &_settings, int _x, int _y, float _depth, float _dzI, float _dzJ)
 Constructor.
 
void fastColAndDeriv (std::size_t v, Samples &color, Samples &deriv)
 Draw color samples and derivatives in neighbor view v.
 
float getFastNCC (std::size_t v)
 Compute NCC between reference view and a neighbor view.
 
Samples const & getMasterColorSamples () const
 
float getMasterMeanColor () const
 
math::Vec3f const & getMidWorldPoint () const
 
float getNCC (std::size_t u, std::size_t v)
 Compute NCC between two neighboring views.
 
Samples const & getNeighColorSamples (std::size_t v)
 
std::size_t getNrSamples () const
 
math::Vec3f getPatchNormal () const
 
float getSAD (std::size_t v, math::Vec3f const &cs)
 Computes the sum of absolute differences between reference view and neighbor v with respect to color scale cs.
 
float getSSD (std::size_t v, math::Vec3f const &cs)
 Computes the sum of squared differences between reference view and neighbor v with respect to color scale cs.
 
bool succeeded (std::size_t v) const
 
void update (float newDepth, float newDzI, float newDzJ)
 
float varInMasterPatch ()
 

Static Public Member Functions

static PatchSampler::Ptr create (std::vector< SingleView::Ptr > const &views, Settings const &settings, int x, int _y, float _depth, float _dzI, float _dzJ)
 Smart pointer PatchSampler constructor.
 

Public Attributes

std::vector< bool > success
 

Detailed Description

Definition at line 23 of file patch_sampler.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<PatchSampler> mvs::PatchSampler::Ptr

Definition at line 26 of file patch_sampler.h.

Constructor & Destructor Documentation

◆ PatchSampler() [1/2]

mvs::PatchSampler::PatchSampler ( )

Default constructor.

◆ PatchSampler() [2/2]

mvs::PatchSampler::PatchSampler ( std::vector< SingleView::Ptr > const &  _views,
Settings const &  _settings,
int  _x,
int  _y,
float  _depth,
float  _dzI,
float  _dzJ 
)

Constructor.

Definition at line 19 of file patch_sampler.cc.

Member Function Documentation

◆ create()

PatchSampler::Ptr mvs::PatchSampler::create ( std::vector< SingleView::Ptr > const &  views,
Settings const &  settings,
int  x,
int  _y,
float  _depth,
float  _dzI,
float  _dzJ 
)
inlinestatic

Smart pointer PatchSampler constructor.

Definition at line 143 of file patch_sampler.h.

◆ fastColAndDeriv()

void mvs::PatchSampler::fastColAndDeriv ( std::size_t  v,
Samples color,
Samples deriv 
)

Draw color samples and derivatives in neighbor view v.

Definition at line 65 of file patch_sampler.cc.

◆ getFastNCC()

float mvs::PatchSampler::getFastNCC ( std::size_t  v)

Compute NCC between reference view and a neighbor view.

Definition at line 136 of file patch_sampler.cc.

◆ getMasterColorSamples()

Samples const & mvs::PatchSampler::getMasterColorSamples ( ) const
inline

Definition at line 151 of file patch_sampler.h.

◆ getMasterMeanColor()

float mvs::PatchSampler::getMasterMeanColor ( ) const
inline

Definition at line 165 of file patch_sampler.h.

◆ getMidWorldPoint()

math::Vec3f const & mvs::PatchSampler::getMidWorldPoint ( ) const
inline

Definition at line 171 of file patch_sampler.h.

◆ getNCC()

float mvs::PatchSampler::getNCC ( std::size_t  u,
std::size_t  v 
)

Compute NCC between two neighboring views.

Definition at line 166 of file patch_sampler.cc.

◆ getNeighColorSamples()

Samples const & mvs::PatchSampler::getNeighColorSamples ( std::size_t  v)
inline

Definition at line 157 of file patch_sampler.h.

◆ getNrSamples()

std::size_t mvs::PatchSampler::getNrSamples ( ) const
inline

Definition at line 177 of file patch_sampler.h.

◆ getPatchNormal()

math::Vec3f mvs::PatchSampler::getPatchNormal ( ) const

Definition at line 243 of file patch_sampler.cc.

◆ getSAD()

float mvs::PatchSampler::getSAD ( std::size_t  v,
math::Vec3f const &  cs 
)

Computes the sum of absolute differences between reference view and neighbor v with respect to color scale cs.

Definition at line 204 of file patch_sampler.cc.

◆ getSSD()

float mvs::PatchSampler::getSSD ( std::size_t  v,
math::Vec3f const &  cs 
)

Computes the sum of squared differences between reference view and neighbor v with respect to color scale cs.

Definition at line 222 of file patch_sampler.cc.

◆ succeeded()

bool mvs::PatchSampler::succeeded ( std::size_t  v) const

◆ update()

void mvs::PatchSampler::update ( float  newDepth,
float  newDzI,
float  newDzJ 
)

Definition at line 259 of file patch_sampler.cc.

◆ varInMasterPatch()

float mvs::PatchSampler::varInMasterPatch ( )
inline

Definition at line 183 of file patch_sampler.h.

Member Data Documentation

◆ success

std::vector<bool> mvs::PatchSampler::success

Definition at line 139 of file patch_sampler.h.


The documentation for this class was generated from the following files: