00001 // This is brl/bseg/strk/strk_feature_capture_process.h 00002 #ifndef strk_feature_capture_process_h_ 00003 #define strk_feature_capture_process_h_ 00004 //---------------------------------------------------------------------------- 00005 //: 00006 // \file 00007 // \brief Captures feature data from a pre-stored track 00008 // \author 00009 // J.L. Mundy 00010 // 00011 // \verbatim 00012 // Modifications: 00013 // J.L. Mundy November 26, 2004 Initial version. 00014 // \endverbatim 00015 //--------------------------------------------------------------------------- 00016 // not used? #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 #include <strk/strk_info_tracker.h> 00021 #include <strk/strk_info_tracker_params.h> 00022 00023 class strk_feature_capture_process : public vpro_video_process 00024 { 00025 public: 00026 strk_feature_capture_process(strk_info_tracker_params& tp); 00027 ~strk_feature_capture_process(); 00028 virtual process_data_type get_output_type() { return TOPOLOGY; } 00029 00030 //: track to next frame 00031 virtual bool execute(); 00032 virtual bool finish(); 00033 bool set_input_file(vcl_string const& file_name); 00034 bool set_output_file(vcl_string const& file_name); 00035 private: 00036 //members 00037 bool failure_; 00038 bool first_frame_; 00039 unsigned int face_index_; 00040 unsigned int start_frame_; 00041 vcl_string track_file_; 00042 vcl_string hist_file_; 00043 strk_info_tracker tracker_; 00044 vcl_vector<vtol_face_2d_sptr> tracked_faces_; 00045 vcl_vector<vcl_vector<float> > tracked_hist_; 00046 }; 00047 00048 00049 #endif // strk_feature_capture_process_h_
1.4.4