mln::draw Namespace Reference

Namespace of drawing routines. More...


Functions

template<typename I , typename B >
void box (Image< I > &ima, const Box< B > &b, const typename I::value &v)
template<typename I >
void line (Image< I > &ima, const typename I::psite &beg, const typename I::psite &end, const typename I::value &v)
template<typename I >
void plot (Image< I > &ima, const typename I::point &p, const typename I::value &v)


Detailed Description

Namespace of drawing routines.


Function Documentation

template<typename I , typename B >
void mln::draw::box ( Image< I > &  ima,
const Box< B > &  b,
const typename I::value &  v 
) [inline]

Draw a box at value v in image ima

Parameters:
[in,out] ima The image to be drawn.
[in] b the boxto draw.
[in] v The value to assign to all drawn pixels.
Precondition:
ima has to be initialized.

ima has beg.

ima has end.

References line().

template<typename I >
void mln::draw::line ( Image< I > &  ima,
const typename I::psite &  beg,
const typename I::psite &  end,
const typename I::value &  v 
) [inline]

Draw a line at level v in image ima between the points beg and end.

Parameters:
[in,out] ima The image to be drawn.
[in] beg The start point to drawn line.
[in] end The end point to drawn line.
[in] v The value to assign to all drawn pixels.
Precondition:
ima has to be initialized.

ima has beg.

ima has end.

References mln::data::paste().

Referenced by box(), and mln::debug::draw_graph().

template<typename I >
void mln::draw::plot ( Image< I > &  ima,
const typename I::point &  p,
const typename I::value &  v 
) [inline]

Plot a point at level v in image ima

Parameters:
[in,out] ima The image to be drawn.
[in] p The point to be plotted.
[in] v The value to assign to all drawn pixels.
Precondition:
ima has to be initialized.

ima has p.


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