Jafar
|
00001 /* $Id$ */ 00002 00003 #ifndef _FDETECT_DETECTOR_HPP_ 00004 #define _FDETECT_DETECTOR_HPP_ 00005 00006 #include "image/Image.hpp" 00007 00008 #include "fdetect/InterestFeature.hpp" 00009 #include "fdetect/DetectionResult.hpp" 00010 00011 namespace jafar { 00012 namespace fdetect { 00017 class Detector { 00018 public: 00019 virtual ~Detector() {} 00020 virtual jafar::fdetect::DetectionResult detectIn(jafar::image::Image const& image) =0; 00021 }; 00022 } 00023 00024 namespace fdetect_v2 { 00029 template <typename FeatureT> 00030 class Detector { 00031 public: 00032 typedef fdetect_v2::DetectionResult<FeatureT> DetectionResult; 00033 typedef typename FeatureT::DescriptorType DescriptorType; 00034 virtual ~Detector() {} 00035 virtual DetectionResult detectIn(jafar::image::Image const& image) =0; 00036 virtual DetectionResult detectIn(jafar::image::Image const& image, 00037 jafar::image::Image const& mask, 00038 bool with_descriptors = true) 00039 { 00040 return DetectionResult(); 00041 } 00042 }; 00043 } 00044 00045 } 00046 00047 #endif
Generated on Wed Oct 15 2014 00:37:18 for Jafar by doxygen 1.7.6.1 |