Public Types | Public Member Functions | Static Public Member Functions

DGtal::StandardBase< TInteger > Class Template Reference

Aim: Provide static methods for the recognition of a standard DSS (4-connected) such that omega = |a|+|b|. More...

#include <ArithmeticalDSS.h>

Public Types

typedef TInteger Integer
typedef DGtal::PointVector
< 2, Integer
Point
typedef DGtal::PointVector
< 2, Integer
Vector

Public Member Functions

 BOOST_CONCEPT_ASSERT ((CInteger< TInteger >))

Static Public Member Functions

static Integer norm (const Integer &x, const Integer &y)
static bool hasMoreThanTwoSteps (const Integer &a, const Integer &b, const Vector &aStep)
static Vector step0 (const Integer &a, const Integer &b)
static Vector step1 (const Integer &a, const Integer &b)

Detailed Description

template<typename TInteger>
class DGtal::StandardBase< TInteger >

Aim: Provide static methods for the recognition of a standard DSS (4-connected) such that omega = |a|+|b|.

Description of class 'StandardBase'


Member Typedef Documentation

template<typename TInteger >
typedef TInteger DGtal::StandardBase< TInteger >::Integer
template<typename TInteger >
typedef DGtal::PointVector<2,Integer> DGtal::StandardBase< TInteger >::Point
template<typename TInteger >
typedef DGtal::PointVector<2,Integer> DGtal::StandardBase< TInteger >::Vector

Member Function Documentation

template<typename TInteger >
DGtal::StandardBase< TInteger >::BOOST_CONCEPT_ASSERT ( (CInteger< TInteger >)   ) 
template<typename TInteger >
static bool DGtal::StandardBase< TInteger >::hasMoreThanTwoSteps ( const Integer a,
const Integer b,
const Vector aStep 
) [static]

Checks whether the DSS has less or more than two displacement vectors (steps) between consecutive points

Parameters:
a,b,the slope of the DSS and aStep, the last displacement vector.
Returns:
'true' if yes, 'false' otherwise.
template<typename TInteger >
static Integer DGtal::StandardBase< TInteger >::norm ( const Integer x,
const Integer y 
) [static]

Computes the L1 norm of the two components of a 2D vector.

Parameters:
x and y, two values.
Returns:
the L1 norm of a 2D vector.
template<typename TInteger >
static Vector DGtal::StandardBase< TInteger >::step0 ( const Integer a,
const Integer b 
) [static]

Returns the 2D vector corresponding to '0' in the Freeman representation in the first octant

Parameters:
a,b,the slope of the DSS
Returns:
the 2D vector.
template<typename TInteger >
static Vector DGtal::StandardBase< TInteger >::step1 ( const Integer a,
const Integer b 
) [static]

Returns the 2D vector corresponding to '1' in the Freeman representation in the first octant

Parameters:
a,b,the slope of the DSS
Returns:
the 2D vector.

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