Functions to draw shapes into an image (may get moved to vil in time) More...
#include <vil/vil_image_view.h>
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_vector_2d.h>
#include <vcl_algorithm.h>
#include <vcl_cmath.h>
Go to the source code of this file.
Functions | |
template<class T > | |
void | mbl_draw_line (vil_image_view< T > &image, vgl_point_2d< double > p1, vgl_point_2d< double > p2, T value, unsigned width=1) |
Draws value along line between p1 and p2. | |
template<class T > | |
void | mbl_draw_line (vil_image_view< T > &image, vgl_point_2d< double > p1, vgl_point_2d< double > p2, T r, T g, T b) |
Draws colour (r,g,b) along line between p1 and p2 in 3-plane image. |
Functions to draw shapes into an image (may get moved to vil in time)
Definition in file mbl_draw_line.h.
void mbl_draw_line | ( | vil_image_view< T > & | image, |
vgl_point_2d< double > | p1, | ||
vgl_point_2d< double > | p2, | ||
T | value, | ||
unsigned | width = 1 |
||
) | [inline] |
Draws value along line between p1 and p2.
Effective, but not terribly efficient.
Definition at line 17 of file mbl_draw_line.h.
void mbl_draw_line | ( | vil_image_view< T > & | image, |
vgl_point_2d< double > | p1, | ||
vgl_point_2d< double > | p2, | ||
T | r, | ||
T | g, | ||
T | b | ||
) | [inline] |
Draws colour (r,g,b) along line between p1 and p2 in 3-plane image.
Effective, but not terribly efficient.
Definition at line 56 of file mbl_draw_line.h.