SLAMflex SE  0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
Public Member Functions | Public Attributes | List of all members
TooN::Internal::LineSearch< Size, Precision, Func > Struct Template Reference

#include <conjugate_gradient.h>

Public Member Functions

 LineSearch (const Vector< Size, Precision > &s, const Vector< Size, Precision > &d, const Func &func)
 
Precision operator() (Precision x) const
 

Public Attributes

const Vector< Size, Precision > & start
 $\Vec{s}$ More...
 
const Vector< Size, Precision > & direction
 $\Vec{d}$ More...
 
const Func & f
 $f(\cdotp)$ More...
 

Detailed Description

template<int Size, typename Precision, typename Func>
struct TooN::Internal::LineSearch< Size, Precision, Func >

Turn a multidimensional function in to a 1D function by specifying a point and direction. A nre function is defined:

\[ g(a) = \Vec{s} + a \Vec{d} \]

Definition at line 17 of file conjugate_gradient.h.

Constructor & Destructor Documentation

template<int Size, typename Precision, typename Func>
TooN::Internal::LineSearch< Size, Precision, Func >::LineSearch ( const Vector< Size, Precision > &  s,
const Vector< Size, Precision > &  d,
const Func &  func 
)
inline

Set up the line search class.

Parameters
sStart point, $\Vec{s}$.
ddirection, $\Vec{d}$.
funcFunction, $f(\cdotp)$.

Definition at line 28 of file conjugate_gradient.h.

Member Function Documentation

template<int Size, typename Precision, typename Func>
Precision TooN::Internal::LineSearch< Size, Precision, Func >::operator() ( Precision  x) const
inline
Parameters
xPosition to evaluate function
Returns
$f(\vec{s} + x\vec{d})$

Definition at line 34 of file conjugate_gradient.h.

Member Data Documentation

template<int Size, typename Precision, typename Func>
const Vector<Size, Precision>& TooN::Internal::LineSearch< Size, Precision, Func >::direction

$\Vec{d}$

Definition at line 20 of file conjugate_gradient.h.

template<int Size, typename Precision, typename Func>
const Func& TooN::Internal::LineSearch< Size, Precision, Func >::f

$f(\cdotp)$

Definition at line 22 of file conjugate_gradient.h.

template<int Size, typename Precision, typename Func>
const Vector<Size, Precision>& TooN::Internal::LineSearch< Size, Precision, Func >::start

$\Vec{s}$

Definition at line 19 of file conjugate_gradient.h.


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