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::psite &p, 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] |
Draw a box at value v
in image ima
[in,out] | ima | The image to be drawn. |
[in] | b | the boxto draw. |
[in] | v | The value to assign to all drawn pixels. |
ima
has to be initialized.
ima
has beg
.
ima
has end
.
Definition at line 69 of file draw/box.hh.
References mln::exact(), and line().
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
.
Definition at line 71 of file draw/line.hh.
References mln::pw::cst(), mln::exact(), mln::data::paste(), mln::safe(), and mln::trace::warning().
Referenced by box(), and mln::debug::draw_graph().
void mln::draw::plot | ( | Image< I > & | ima, | |
const typename I::psite & | p, | |||
const typename I::value & | v | |||
) | [inline] |
Definition at line 67 of file plot.hh.
References mln::pw::cst(), mln::exact(), and mln::data::paste().
void mln::draw::plot | ( | Image< I > & | ima, | |
const typename I::point & | p, | |||
const typename I::value & | v | |||
) | [inline] |