DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions
DGtal::detail::TangentVectorFromDCA Struct Reference

#include <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 898 of file SegmentComputerEstimators.h.


Member Typedef Documentation

Definition at line 901 of file SegmentComputerEstimators.h.


Member Function Documentation

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 919 of file SegmentComputerEstimators.h.

{
NormalVectorFromDCA f;
Value normal = f(it, aDCA);
return Value( normal[1], normal[0] );
}

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