Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

vsrl_dense_matcher.h

Go to the documentation of this file.
00001 #ifndef vsrl_dense_matcher_h
00002 #define vsrl_dense_matcher_h
00003 //:
00004 // \file
00005 // \brief this is a base class for various dense matchers
00006 //
00007 // \verbatim
00008 //  Modifications
00009 //   10 Sep. 2004 Peter Vanroose  Inlined all 1-line methods in class decl
00010 // \endverbatim
00011 
00012 #include <vil1/vil1_image.h>
00013 
00014 class vsrl_dense_matcher
00015 {
00016  protected:
00017 
00018   vil1_image image1_;
00019   int correlation_range_;
00020 
00021  public:
00022 
00023   // constructor
00024 
00025   vsrl_dense_matcher(vil1_image const& image1) : image1_(image1) {}
00026 
00027   // destructor
00028 
00029   virtual ~vsrl_dense_matcher() {}
00030 
00031   // set the correlation range
00032 
00033   void set_correlation_range(int range) { correlation_range_=range; }
00034 
00035   // get the correlation range
00036 
00037   int get_correlation_range() { return correlation_range_; }
00038 
00039   // get the assigned coordinate
00040 
00041   virtual int get_assignment(int x, int y) = 0;
00042 
00043   // get the disparity of pixel x,y
00044 
00045   virtual int get_disparity(int x, int y) = 0;
00046 
00047   // get the width and height of image1
00048 
00049   int get_width() { return image1_.width(); }
00050   int get_height() { return image1_.height(); }
00051 };
00052 
00053 #endif

Generated on Thu Jan 10 14:48:24 2008 for contrib/gel/vsrl by  doxygen 1.4.4