contrib/mul/mfpf/mfpf_draw_matches.h
Go to the documentation of this file.
00001 #ifndef mfpf_draw_matches_h_
00002 #define mfpf_draw_matches_h_
00003 //:
00004 // \file
00005 // \brief Function to draw a representation of each match onto an image
00006 // \author Tim Cootes
00007 
00008 #include <vxl_config.h>  // for vxl_byte
00009 #include <vimt/vimt_image_2d_of.h>
00010 
00011 struct mfpf_pose_set;
00012 class mfpf_point_finder;
00013 
00014 //: Draws first n_draw matches (defined by poses) into out_image
00015 //  Shape to draw defined by pf.get_outline(pts).
00016 //  Matches assumed to be sorted by fit quality.  Best is drawn
00017 //  in white (255), subsequent matches use increasingly dark
00018 //  shade of grey.
00019 void mfpf_draw_matches(const mfpf_point_finder& pf,
00020                        const vimt_image_2d_of<float>& image,
00021                        const mfpf_pose_set& matches,
00022                        unsigned m_draw,
00023                        vimt_image_2d_of<vxl_byte>& out_image);
00024 
00025 #endif // mfpf_draw_matches_h_