00001 // This is brl/bseg/vpro/vpro_grid_finder_process.h 00002 #ifndef vpro_grid_finder_process_h_ 00003 #define vpro_grid_finder_process_h_ 00004 //-------------------------------------------------------------------------------- 00005 //: 00006 // \file 00007 // \brief live vpro_grid_finder_process 00008 // Matches a grid to an image, assuming a homography between them 00009 // 00010 // \author 00011 // J.L. Mundy 00012 // 00013 // \verbatim 00014 // Modifications: 00015 // J.L. Mundy May 17, 2003 Initial version. 00016 // \endverbatim 00017 //-------------------------------------------------------------------------------- 00018 #include <sdet/sdet_detector_params.h> 00019 #include <sdet/sdet_fit_lines_params.h> 00020 #include <sdet/sdet_grid_finder_params.h> 00021 #include <vpro/vpro_video_process.h> 00022 #include <vcl_string.h> 00023 00024 class vpro_grid_finder_process : public vpro_video_process, 00025 public sdet_detector_params, 00026 public sdet_fit_lines_params, 00027 public sdet_grid_finder_params 00028 { 00029 public: 00030 vpro_grid_finder_process(sdet_detector_params & dp, sdet_fit_lines_params& flp, sdet_grid_finder_params& gfp); 00031 ~vpro_grid_finder_process(); 00032 void set_output_file(vcl_string filename); 00033 virtual process_data_type get_input_type() const {return IMAGE;} 00034 virtual process_data_type get_output_type() const {return SPATIAL_OBJECT;} 00035 00036 //: compute van duc edges, line segments, and then match the grid 00037 virtual bool execute(); 00038 virtual bool finish(){return true;} 00039 vcl_vector<float> frame_scores_; 00040 private: 00041 vcl_string output_filename_; 00042 }; 00043 00044 #endif // vpro_grid_finder_process_h_
1.7.5.1