Milena (Olena)
User documentation 2.0a Id
|
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 , typename B > | |
void | box_plain (Image< I > &ima, const Box< B > &b, const typename I::value &v) |
template<typename I > | |
void | dashed_line (Image< I > &ima, const typename I::psite &beg, const typename I::psite &end, 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) |
template<typename I > | |
void | polygon (Image< I > &ima, const p_array< typename I::site > &par, const typename I::value &v, unsigned output_ratio) |
template<typename I , typename S > | |
void | site_set (Image< I > &ima, const Site_Set< S > &s, const typename I::value &v, unsigned output_ratio=1) |
Namespace of drawing routines.
|
inline |
Draw a box at value v
in image ima
\param[in,out] ima The image to be drawn. \param[in] b the boxto draw. \param[in] v The value to assign to all drawn pixels. \pre \p ima has to be initialized. \pre \p ima has \p beg. \pre \p ima has \p end.
Definition at line 72 of file draw/box.hh.
References line().
|
inline |
Draw a plain box at value v
in image ima
\param[in,out] ima The image to be drawn. \param[in] b the box to draw. \param[in] v The value to assign to all drawn pixels. \pre \p ima has to be initialized. \pre \p ima has \p beg. \pre \p ima has \p end.
Definition at line 71 of file box_plain.hh.
References mln::data::fill().
Referenced by mln::debug::draw_graph().
|
inline |
Draw a dashed line at level v
in image ima
between the points beg
and end
.
[in,out] | ima | The image to be drawn. |
[in] | beg | The start point to drawn dashed_line. |
[in] | end | The end point to drawn dashed_line. |
[in] | v | The value to assign to all drawn pixels. |
ima
has to be initialized. ima
has beg
. ima
has end
. Definition at line 91 of file dashed_line.hh.
References mln::data::fill().
|
inline |
Draw a line at level v
in image ima
between the points beg
and end
.
[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. |
ima
has to be initialized. ima
has beg
. ima
has end
. Definition at line 72 of file draw/line.hh.
References mln::data::paste().
Referenced by box(), mln::debug::draw_graph(), and polygon().
void mln::draw::plot | ( | Image< I > & | ima, |
const typename I::point & | p, | ||
const typename I::value & | v | ||
) |
Plot a point at level v
in image ima
\param[in,out] ima The image to be drawn. \param[in] p The point to be plotted. \param[in] v The value to assign to all drawn pixels. \pre \p ima has to be initialized. \pre \p ima has \p p.
void mln::draw::polygon | ( | Image< I > & | ima, |
const p_array< typename I::site > & | par, | ||
const typename I::value & | v, | ||
unsigned | output_ratio | ||
) |
Draw a polygon at level v
in image ima
.
\param[in,out] ima The image to be drawn. \param[in] par The polygon site set. \param[in] v The value to assign to all drawn pixels. \pre \p ima has to be initialized.
Definition at line 70 of file polygon.hh.
References line().
void mln::draw::site_set | ( | Image< I > & | ima, |
const Site_Set< S > & | s, | ||
const typename I::value & | v, | ||
unsigned | output_ratio = 1 |
||
) |
Draw a sites with value v
in image ima
\param[in,out] ima The image to be drawn. \param[in] b the site set to draw. \param[in] v The value to assign to all drawn pixels. \param[in] output_ratio size ratio between output image and the image from which the bboxes were calculated. \pre \p s is included in \p ima domain.
Definition at line 65 of file mln/draw/site_set.hh.