contrib/brl/bseg/vpro/vpro_roi_process.h
Go to the documentation of this file.
00001 // This is brl/bseg/vpro/vpro_roi_process.h
00002 #ifndef vpro_roi_process_h_
00003 #define vpro_roi_process_h_
00004 //--------------------------------------------------------------------------------
00005 //:
00006 // \file
00007 // \brief  Creates a video with a roi cut out
00008 // \author J.L. Mundy
00009 //
00010 // \verbatim
00011 //  Modifications
00012 //   J.L. Mundy - Sept 24, 2004 - Initial version.
00013 // \endverbatim
00014 //-----------------------------------------------------------------------------
00015 #include <vcl_list.h>
00016 // not used? #include <vcl_vector.h>
00017 #include <vcl_string.h>
00018 #include <vpro/vpro_vil_video_process.h>
00019 
00020 class vpro_roi_process : public vpro_vil_video_process
00021 {
00022  public:
00023   vpro_roi_process(vcl_string const & video_file,
00024                    const unsigned x0,
00025                    const unsigned y0,
00026                    const unsigned xsize,
00027                    const unsigned ysize,
00028                    vcl_string const& type = "ImageList")
00029   : x0_(x0), y0_(y0), xsize_(xsize), ysize_(ysize), type_(type), video_file_(video_file) {}
00030   ~vpro_roi_process() {}
00031   virtual process_data_type get_output_type() const { return IMAGE; }
00032   virtual bool execute();
00033   virtual bool finish();
00034  private:
00035   vpro_roi_process() {}
00036   //members
00037   unsigned x0_;
00038   unsigned y0_;
00039   unsigned xsize_;
00040   unsigned ysize_;
00041   vcl_string type_;
00042   vcl_string video_file_;//output file name
00043   vcl_list<vil_image_resource_sptr> out_frames_;
00044 };
00045 
00046 #endif // vpro_roi_process_h_