GSoC2011SfM  0.1
Google Summer of Code 2011: Structure from motion
D:/Travail/These/Determination caracteristiques camera/GSoC/SfM/src/PointsToTrackWithImage.h
00001 #ifndef _GSOC_SFM_POINTS_TO_TRACK_SIFT_H
00002 #define _GSOC_SFM_POINTS_TO_TRACK_SIFT_H 1
00003 
00004 #include "macro.h" //SFM_EXPORTS
00005 #include "PointsToTrack.h"
00006 
00007 namespace OpencvSfM{
00008 
00015   class SFM_EXPORTS PointsToTrackWithImage :
00016     public PointsToTrack
00017   {
00018   protected:
00019     cv::Ptr<cv::FeatureDetector> feature_detector_;
00020     cv::Ptr<cv::DescriptorExtractor> descriptor_detector_;
00021     cv::Mat maskOfAnalyse_;
00022     
00027     int impl_computeKeypoints_( );
00031     void impl_computeDescriptors_( );
00032   public:
00041     PointsToTrackWithImage( int corresponding_image,cv::Mat imageToAnalyse,
00042       cv::Ptr<cv::FeatureDetector> feature_detector=0,
00043       cv::Ptr<cv::DescriptorExtractor> descriptor_detector=0,
00044       cv::Mat maskOfAnalyse = cv::Mat() );
00053     PointsToTrackWithImage( int corresponding_image, cv::Mat imageToAnalyse,
00054       std::string feature_detector, std::string descriptor_detector="SIFT",
00055       cv::Mat maskOfAnalyse = cv::Mat() );
00056     ~PointsToTrackWithImage( void );
00057     
00062     void setFeatureDetector( cv::Ptr<cv::FeatureDetector> feature_detector );
00067     void setDescriptorExtractor( cv::Ptr<cv::DescriptorExtractor> descriptor_detector );
00071     void computeColorOfPoints();
00072 
00073   };
00074 
00075 }
00076 
00077 #endif
 All Classes Functions Variables