Functions
contrib/mul/mbl/mbl_draw_line.h File Reference

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.

Detailed Description

Functions to draw shapes into an image (may get moved to vil in time)

Author:
Tim Cootes

Definition in file mbl_draw_line.h.


Function Documentation

template<class T >
void mbl_draw_line ( vil_image_view< T > &  image,
vgl_point_2d< double >  p1,
vgl_point_2d< double >  p2,
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.

template<class T >
void mbl_draw_line ( vil_image_view< T > &  image,
vgl_point_2d< double >  p1,
vgl_point_2d< double >  p2,
r,
g,
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.