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) |
void mln::draw::box | ( | Image< I > & | ima, | |
const Box< B > & | b, | |||
const typename I::value & | v | |||
) | [inline] |
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
.
[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
.
References mln::data::paste().
Referenced by box(), and mln::debug::draw_graph().
void mln::draw::plot | ( | Image< I > & | ima, | |
const typename I::point & | p, | |||
const typename I::value & | v | |||
) | [inline] |