C2DFVectorfield Class Reference

a 2D field of floating point single accuracy 2D vectors More...

#include <mia/2d/vectorfield.hh>

Inheritance diagram for C2DFVectorfield:
[legend]
Collaboration diagram for C2DFVectorfield:
[legend]

Public Member Functions

void update_as_inverse_of (const C2DFVectorfield &other, float tol, int maxiter)
 evaluate this vector field as the inverse of another More...
 
void update_by_velocity (const C2DFVectorfield &velocity_field, float time_step)
 
- Public Member Functions inherited from T2DVectorfield< C2DFVector >
C2DFVector get_interpol_val_at (const C2DFVector &p) const
 This function should really go away. More...
 
C2DFVector get_pixel_size () const
 
void set_pixel_size (const C2DFVector &pixel)
 
 T2DVectorfield ()
 
 T2DVectorfield (const C2DBounds &size)
 
 T2DVectorfield (const CAttributedData &data, const C2DBounds &size)
 
- Public Member Functions inherited from T2DDatafield< C2DFVector >
const_iterator begin () const
 
iterator begin ()
 
const_iterator begin_at (size_t x, size_t y) const
 
iterator begin_at (size_t x, size_t y)
 
range_iterator begin_range (const C2DBounds &begin, const C2DBounds &end)
 
const_range_iterator begin_range (const C2DBounds &begin, const C2DBounds &end) const
 
void clear ()
 
const_iterator end () const
 
iterator end ()
 
range_iterator end_range (const C2DBounds &begin, const C2DBounds &end)
 
const_range_iterator end_range (const C2DBounds &begin, const C2DBounds &end) const
 
void get_data_line_x (size_t y, std::vector< C2DFVector > &buffer) const
 
void get_data_line_y (size_t x, std::vector< C2DFVector > &buffer) const
 
Range get_range (const C2DBounds &start, const C2DBounds &end)
 
ConstRange get_range (const C2DBounds &start, const C2DBounds &end) const
 
const C2DBoundsget_size () const
 
void make_single_ref () __attribute__((deprecated))
 
const_reference operator() (size_t x, size_t y) const
 
reference operator() (size_t x, size_t y)
 
const_reference operator() (const C2DBounds &l) const
 
reference operator() (const C2DBounds &l)
 
T2DDatafield< C2DFVector > & operator= (const T2DDatafield< C2DFVector > &org)
 
T2DDatafield< C2DFVector > & operator= (T2DDatafield< C2DFVector > &&org)
 
const_reference operator[] (size_t idx) const
 
reference operator[] (size_t idx)
 
void put_data_line_x (size_t y, const std::vector< C2DFVector > &buffer)
 
void put_data_line_y (size_t x, const std::vector< C2DFVector > &buffer)
 
size_type size () const
 
 T2DDatafield ()
 
 T2DDatafield (const C2DBounds &size)
 
 T2DDatafield (const C2DBounds &size, const C2DFVector *_data)
 
 T2DDatafield (const C2DBounds &size, const std::vector< C2DFVector > &data)
 
 T2DDatafield (const T2DDatafield< C2DFVector > &org)
 
 T2DDatafield (T2DDatafield< C2DFVector > &&org)
 
virtual ~T2DDatafield ()
 
- Public Member Functions inherited from CAttributedData
CAttributeMap::const_iterator begin_attributes () const
 
void delete_attribute (const std::string &key)
 
CAttributeMap::const_iterator end_attributes () const
 
const PAttribute get_attribute (const std::string &key) const
 
template<typename T >
const T get_attribute_as (const std::string &key) const
 
template<typename T >
const T get_attribute_as (const std::string &key, T default_value) const
 
const std::string get_attribute_as_string (const std::string &key) const
 returns the requested attribute as string, returns an empty string if attribute doesn't exist More...
 
bool has_attribute (const std::string &key) const
 
CAttributedDataoperator= (const CAttributedData &org)
 Assignemt operator. More...
 
void print (std::ostream &os) const
 
void set_attribute (const std::string &key, PAttribute attr)
 
void set_attribute (const std::string &key, const std::string &value)
 
template<typename T >
void set_attribute (const std::string &key, const T &value)
 
void set_attribute (const std::string &key, const char *value)
 
void set_attributes (CAttributeMap::const_iterator begin, CAttributeMap::const_iterator end)
 
 CAttributedData ()
 
 CAttributedData (const CAttributedData &org)
 
 CAttributedData (PAttributeMap attr)
 

Additional Inherited Members

- Public Types inherited from T2DDatafield< C2DFVector >
typedef ::std::vector< typename __holder_type_dispatch< C2DFVector >::type > data_array
 type for the flat reprentation of the 2D data field More...
 
- Static Public Attributes inherited from T2DVectorfield< C2DFVector >
static const char * data_descr
 plug.in related type description string More...
 

Detailed Description

a 2D field of floating point single accuracy 2D vectors

Definition at line 78 of file 2d/vectorfield.hh.

Member Function Documentation

◆ update_as_inverse_of()

void C2DFVectorfield::update_as_inverse_of ( const C2DFVectorfield other,
float  tol,
int  maxiter 
)

evaluate this vector field as the inverse of another

This functions corrects the vector field to describe the inverse transformation of a given input vector field

Parameters
otherthe vector field this one should be inverse of
toltolerance for inverse accuracy
maxitermaximum number of interations for one vector to be optimized

◆ update_by_velocity()

void C2DFVectorfield::update_by_velocity ( const C2DFVectorfield velocity_field,
float  time_step 
)

Update this vector field by using a velocity field

Parameters
velocity_fieldthe velocity field
time_stepthe time step to be used for the update

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