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