$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::w_window1d_int Class Reference

#include <mln/core/alias/w_window1d_int.hh>

Public Member Functions

 w_window1d_int ()
void clear ()
unsigned delta () const
const W::dpsite & dp (unsigned i) const
bool has (const typename W::dpsite &dp) const
w_window< dpoint1d, int > & insert (const int &w, const dpoint1d &d)
bool is_centered () const
bool is_empty () const
bool is_symmetric () const
bool is_valid () const
unsigned size () const
const std::vector< dpoint1d > & std_vector () const
void sym ()
int w (unsigned i) const
const std::vector< int > & weights () const
const mln::window< dpoint1d > & win () const

Protected Attributes

std::vector< intwei_
mln::window< dpoint1dwin_

Public Types

typedef with_w_
< dpsites_bkd_piter< w_window
< dpoint1d, int > >, int
bkd_qiter
typedef Weighted_Window< void > category
typedef dpoint1d dpsite
typedef E exact_t
typedef with_w_
< dpsites_fwd_piter< w_window
< dpoint1d, int > >, int
fwd_qiter
typedef W::psite psite
typedef W::site site
typedef int weight
typedef W window

Related Functions

(Note that these are not member functions.)

template<typename W >
operator- (const Weighted_Window< W > &rhs)

Detailed Description

Type alias for a w_window with arbitrary shape, defined on the 1D grid (with integer coordinates) and whose weights are integers.

Definition at line 6 of file w_window1d_int.dox.

Constructor & Destructor Documentation

mln::w_window1d_int::w_window1d_int ( )

Constructor without argument.

Member Function Documentation

void mln::w_window< dpoint1d , int >::clear ( )
inherited

Clear this window.

template<typename W, typename E>
unsigned mln::internal::weighted_window_base< W, E >::delta ( ) const
inherited

Give the maximum coordinate gap; final method.

This method is valid iff the support is regular and the definition is not varying.

template<typename W, typename E>
const W ::dpsite& mln::internal::weighted_window_base< W, E >::dp ( unsigned  i) const
inherited

Give the i-th delta-point; final method.

This method is valid iff the support is regular and the definition is unique.

template<typename W, typename E>
bool mln::internal::weighted_window_base< W, E >::has ( const typename W::dpsite &  dp) const
inherited

Test if the dp delta-point is in this window; final method.

This method is valid iff the support is regular and the definition is unique.

w_window<dpoint1d ,int >& mln::w_window< dpoint1d , int >::insert ( const int w,
const dpoint1d d 
)
inherited

Insert a couple of weight w and delta-point d.

template<typename W, typename E>
bool mln::internal::weighted_window_base< W, E >::is_centered ( ) const
inherited

Test if the weighted window is centered; final method.

This method is valid iff the support is regular and the definition is not varying.

template<typename W, typename E>
bool mln::internal::weighted_window_base< W, E >::is_empty ( ) const
inherited

Test if the weighted window is empty; final method.

bool mln::w_window< dpoint1d , int >::is_symmetric ( ) const
inherited

Test if the window is symmetric.

template<typename W, typename E>
bool mln::internal::weighted_window_base< W, E >::is_valid ( ) const
inherited

return true by default.

template<typename W, typename E>
unsigned mln::internal::weighted_window_base< W, E >::size ( ) const
inherited

Give the window size; final method.

This method is valid iff the underlying window has a fixed size.

const std::vector<dpoint1d >& mln::w_window< dpoint1d , int >::std_vector ( ) const
inherited

Give access to the vector of delta-points.

void mln::w_window< dpoint1d , int >::sym ( )
inherited

Apply a central symmetry to the window.

int mln::w_window< dpoint1d , int >::w ( unsigned  i) const
inherited

Give the i-th weight.

const std::vector<int >& mln::w_window< dpoint1d , int >::weights ( ) const
inherited

Give access to the vector of weights.

const mln::window<dpoint1d >& mln::w_window< dpoint1d , int >::win ( ) const
inherited

Give the corresponding window.

Friends And Related Function Documentation

template<typename W >
W operator- ( const Weighted_Window< W > &  rhs)
related

Compute the symmetrical weighted window of rhs.

Member Data Documentation

std::vector<int > mln::w_window< dpoint1d , int >::wei_
protectedinherited

Definition at line 129 of file core/w_window.hh.

mln::window<dpoint1d > mln::w_window< dpoint1d , int >::win_
protectedinherited

Definition at line 128 of file core/w_window.hh.

Member Typedef Documentation

Site_Iterator type to browse (backward) the points of a generic w_window.

Definition at line 92 of file core/w_window.hh.

template<typename E>
typedef Weighted_Window<void> mln::Weighted_Window< E >::category
inherited

Definition at line 72 of file weighted_window.hh.

typedef dpoint1d mln::w_window< dpoint1d , int >::dpsite
inherited

Dpsite associated type.

Definition at line 82 of file core/w_window.hh.

template<typename E>
typedef E mln::Object< E >::exact_t
inherited

Definition at line 105 of file object.hh.

Site_Iterator type to browse (forward) the points of a generic w_window.

Definition at line 89 of file core/w_window.hh.

template<typename W, typename E>
typedef W ::psite mln::internal::weighted_window_base< W, E >::psite
inherited

Psite associated type.

Definition at line 60 of file weighted_window_base.hh.

template<typename W, typename E>
typedef W ::site mln::internal::weighted_window_base< W, E >::site
inherited

Site associated type.

Definition at line 63 of file weighted_window_base.hh.

typedef int mln::w_window< dpoint1d , int >::weight
inherited

Weight associated type.

Definition at line 85 of file core/w_window.hh.

template<typename W, typename E>
typedef W mln::internal::weighted_window_base< W, E >::window
inherited

Window associated type.

Definition at line 54 of file weighted_window_base.hh.