00001 // This is brl/bseg/strk/strk_track_display_process.h 00002 #ifndef strk_track_display_process_h_ 00003 #define strk_track_display_process_h_ 00004 //---------------------------------------------------------------------------- 00005 //: 00006 // \file 00007 // \brief Displays a tracked polygon on a video 00008 // \author 00009 // J.L. Mundy 00010 // 00011 // \verbatim 00012 // Modifications: 00013 // J.L. Mundy October 14, 2003 Initial version. 00014 // \endverbatim 00015 //--------------------------------------------------------------------------- 00016 // not used? #include <vcl_fstream.h> 00017 #include <vcl_string.h> 00018 #include <vgl/vgl_point_2d.h> 00019 #include <vtol/vtol_face_2d_sptr.h> 00020 #include <vpro/vpro_video_process.h> 00021 00022 class strk_track_display_process : public vpro_video_process 00023 { 00024 public: 00025 strk_track_display_process(); 00026 ~strk_track_display_process(); 00027 virtual process_data_type get_output_type() { return TOPOLOGY; } 00028 00029 //: track to next frame 00030 virtual bool execute(); 00031 virtual bool finish() { return true; } 00032 bool set_input_file(vcl_string const& file_name); 00033 private: 00034 //members 00035 bool failure_; 00036 bool first_frame_; 00037 vcl_string track_file_; 00038 vcl_vector<vgl_point_2d<double> > tracked_cogs_; 00039 vcl_vector<vtol_face_2d_sptr> tracked_faces_; 00040 }; 00041 00042 00043 #endif // strk_track_display_process_h_
1.4.4