00001 // This is brl/bseg/vpro/vpro_frame_diff_process.h 00002 #ifndef vpro_frame_diff_process_h_ 00003 #define vpro_frame_diff_process_h_ 00004 //-------------------------------------------------------------------------------- 00005 //: 00006 // \file 00007 // \brief Computes frame difference (first output is all zeros) 00008 // \author J.L. Mundy 00009 // 00010 // \verbatim 00011 // Modifications 00012 // J.L. Mundy - February 16, 2003 - Initial version. 00013 // \endverbatim 00014 //----------------------------------------------------------------------------- 00015 #include <vil1/vil1_memory_image_of.h> 00016 #include <vpro/vpro_video_process.h> 00017 #include <vpro/vpro_frame_diff_params.h> 00018 00019 class vpro_frame_diff_process : public vpro_video_process, 00020 public vpro_frame_diff_params 00021 { 00022 public: 00023 vpro_frame_diff_process(vpro_frame_diff_params fdp); 00024 ~vpro_frame_diff_process(); 00025 virtual process_data_type get_output_type() const { return IMAGE; } 00026 //: difference sequential frames 00027 virtual bool execute(); 00028 virtual bool finish(); 00029 private: 00030 //members 00031 vpro_frame_diff_process(); 00032 bool first_frame_; 00033 vil1_memory_image_of<float> img0_; 00034 }; 00035 00036 #endif // vpro_frame_diff_process_h_
1.7.5.1