Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
trv_densificator.hpp
00001 #ifndef TRV_DENSIFICATOR_HPP
00002 #define TRV_DENSIFICATOR_HPP
00003 
00004 #include "kernel/jafarException.hpp"
00005 #include "jmath/jblas.hpp"
00006 #include "jmath/ublasExtra.hpp"
00007 
00008 #include <image/Image.hpp>
00009 
00010 namespace jafar {
00011   namespace traversability {
00012     
00022     class Densificator {
00023       
00024       private:
00025         int mWinHalfWidth;
00026         int mWinHalfHeight;
00027         cv::Rect mWinRect;
00028         
00029       public:
00030         
00036         Densificator ( int winHalfWidth, int winHalfHeight ) :
00037           mWinHalfWidth(winHalfWidth), mWinHalfHeight(winHalfHeight) {};
00038         ~Densificator ( void ) {};
00039         
00040         /* optimized method
00041         for images 512x384 method takes around 240ms,
00042         for images 640x480 method takes around 360ms
00043         time measurements evaluated with gettimeofday()
00044         */
00058         void calc ( const jafar::image::Image &im0, const jafar::image::Image &im1,
00059                     jafar::image::Image &mask, jafar::image::Image &imZncc );
00060         
00061         
00062         
00063       public:
00064         
00065     };
00066   } // namespace traversability
00067 } // namespace jafar
00068 
00069 
00070 #endif
00071 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:29 for Jafar by doxygen 1.7.6.1
LAAS-CNRS