mln::win::ball< G, C > Struct Template Reference
[N-D windows]

Generic ball window defined on a given grid. More...

#include <ball.hh>

Inherits classical_window_base< dpoint< G, C >, ball< G, C > >.

List of all members.

Public Member Functions

 ball (unsigned diameter)
 Constructor.
unsigned diameter () const
 Give the ball diameter.


Detailed Description

template<typename G, typename C>
struct mln::win::ball< G, C >

Generic ball window defined on a given grid.

A ball is centered and symmetric; so its diameter is odd.

G is the given grid on which the ball is defined and C is the type of coordinates.


Constructor & Destructor Documentation

template<typename G , typename C >
mln::win::ball< G, C >::ball ( unsigned  diameter  )  [inline]

Constructor.

Parameters:
[in] diameter Diameter of the ball.
Precondition:
diameter is odd.

References mln::literal::origin.


Member Function Documentation

template<typename G , typename C >
unsigned mln::win::ball< G, C >::diameter (  )  const [inline]

Give the ball diameter.


Generated on Tue Jul 14 16:33:22 2009 for Milena (Olena) by  doxygen 1.5.9