DGtal 1.3.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions
DGtal::detail::TangentVectorFromDCA Struct Reference

#include <DGtal/geometry/curves/estimation/SegmentComputerEstimators.h>

Public Types

typedef PointVector< 2, double > Value
 

Public Member Functions

template<typename DCA >
Value operator() (const typename DCA::ConstIterator &it, const DCA &aDCA) const
 

Detailed Description

Description of class 'TangentVectorFromDCA'

Aim: estimates the tangent at a given position from a geometricDCA.

Definition at line 890 of file SegmentComputerEstimators.h.

Member Typedef Documentation

◆ Value

Definition at line 893 of file SegmentComputerEstimators.h.

Member Function Documentation

◆ operator()()

template<typename DCA >
Value DGtal::detail::TangentVectorFromDCA::operator() ( const typename DCA::ConstIterator &  it,
const DCA &  aDCA 
) const
inline

Operator()

Returns
tangent at it
Parameters
itposition where the estimation has to be done
aDCAan instance of segment computer devoted to the DCA recognition.
Template Parameters
DCAa model of segment computer devoted to the DCA recognition, basically geometricDCA.
See also
NormalVectorFromDCA

Definition at line 911 of file SegmentComputerEstimators.h.

913 {
914 NormalVectorFromDCA f;
915 Value normal = f(it, aDCA);
916 return Value( normal[1], normal[0] );
917 }

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