contrib/mul/mfpf/mfpf_draw_pose_lines.h
Go to the documentation of this file.
00001 #ifndef mfpf_draw_pose_lines_h_
00002 #define mfpf_draw_pose_lines_h_
00003 //:
00004 // \file
00005 // \brief Function to draw lines on an image
00006 // \author Tim Cootes
00007 
00008 #include <vxl_config.h>  // for vxl_byte
00009 #include <vimt/vimt_image_2d_of.h>
00010 #include <mfpf/mfpf_pose.h>
00011 #include <vgl/vgl_fwd.h>
00012 #include <vcl_vector.h>
00013 
00014 //: Draw an open polygon by jointing pose(ref_pts[i]) to pose(ref_pts[i+1])
00015 void mfpf_draw_pose_lines(vimt_image_2d_of<vxl_byte>& image,
00016                           const mfpf_pose& pose,
00017                           const vcl_vector<vgl_point_2d<double> >& ref_pts,
00018                           vxl_byte value,
00019                           unsigned width=1);
00020 
00021 //: Draw an open polygon by jointing pose(ref_pts[i]) to pose(ref_pts[i+1])
00022 void mfpf_draw_pose_lines(vimt_image_2d_of<vxl_byte>& image,
00023                           const mfpf_pose& pose,
00024                           const vcl_vector<vgl_point_2d<double> >& ref_pts,
00025                           vxl_byte r, vxl_byte g, vxl_byte b,
00026                           unsigned width=1);
00027 
00028 #endif // mfpf_draw_pose_lines_h_