GSoC2011SfM  0.1
Google Summer of Code 2011: Structure from motion
Public Member Functions | Protected Member Functions | Protected Attributes
OpencvSfM::PointsToTrackWithImage Class Reference

This class can be used to find points and features in pictures using SIFT detector. More...

#include <PointsToTrackWithImage.h>

Inheritance diagram for OpencvSfM::PointsToTrackWithImage:
OpencvSfM::PointsToTrack

List of all members.

Public Member Functions

 PointsToTrackWithImage (int corresponding_image, cv::Mat imageToAnalyse, cv::Ptr< cv::FeatureDetector > feature_detector=0, cv::Ptr< cv::DescriptorExtractor > descriptor_detector=0, cv::Mat maskOfAnalyse=cv::Mat())
 PointsToTrackWithImage (int corresponding_image, cv::Mat imageToAnalyse, std::string feature_detector, std::string descriptor_detector="SIFT", cv::Mat maskOfAnalyse=cv::Mat())
void setFeatureDetector (cv::Ptr< cv::FeatureDetector > feature_detector)
void setDescriptorExtractor (cv::Ptr< cv::DescriptorExtractor > descriptor_detector)
void computeColorOfPoints ()

Protected Member Functions

int impl_computeKeypoints_ ()
void impl_computeDescriptors_ ()

Protected Attributes

cv::Ptr< cv::FeatureDetector > feature_detector_
 class which will find the points
cv::Ptr< cv::DescriptorExtractor > descriptor_detector_
 class which will compute the descriptors
cv::Mat maskOfAnalyse_
 Mask of analyse. Everything out of this mask is ignored.

Detailed Description

This class can be used to find points and features in pictures using SIFT detector.

To create a structure from motion, most methods use points to compute the structure. This class focus on the first task in SfM: find points in image which are easy to track... When available, a feature vector for each points is very helpful: the matching will be easier.

Definition at line 15 of file PointsToTrackWithImage.h.


Constructor & Destructor Documentation

OpencvSfM::PointsToTrackWithImage::PointsToTrackWithImage ( int  corresponding_image,
cv::Mat  imageToAnalyse,
cv::Ptr< cv::FeatureDetector >  feature_detector = 0,
cv::Ptr< cv::DescriptorExtractor >  descriptor_detector = 0,
cv::Mat  maskOfAnalyse = cv::Mat() 
)

First constructor used to create a list of points to track using a feature and a descriptor algorithm.

Parameters:
corresponding_imageGlobal index of image
imageToAnalyseImage to use for keypoints and features search
maskOfAnalyseMask used to hide part of image
feature_detectorAlgorithm to use for features detection ( see http://opencv.willowgarage.com/documentation/cpp/common_interfaces_for_feature_detection_and_descriptor_extraction.html#featuredetector )
descriptor_detectorAlgorithm to use for descriptors detection ( see http://opencv.willowgarage.com/documentation/cpp/common_interfaces_for_feature_detection_and_descriptor_extraction.html#descriptorextractor )

Definition at line 20 of file PointsToTrackWithImage.cpp.

OpencvSfM::PointsToTrackWithImage::PointsToTrackWithImage ( int  corresponding_image,
cv::Mat  imageToAnalyse,
std::string  feature_detector,
std::string  descriptor_detector = "SIFT",
cv::Mat  maskOfAnalyse = cv::Mat() 
)

Second constructor used to create a list of points to track using a feature and a descriptor algorithm.

Parameters:
corresponding_imageGlobal index of image
imageToAnalyseImage to use for keypoints and features search
maskOfAnalyseMask used to hide part of image
feature_detectorname of the algorithm to use for features detection ( see http://opencv.willowgarage.com/documentation/cpp/common_interfaces_for_feature_detection_and_descriptor_extraction.html#featuredetector )
descriptor_detectorname of the algorithm to use for descriptors detection ( see http://opencv.willowgarage.com/documentation/cpp/common_interfaces_for_feature_detection_and_descriptor_extraction.html#descriptorextractor )

Definition at line 32 of file PointsToTrackWithImage.cpp.


Member Function Documentation

void OpencvSfM::PointsToTrackWithImage::computeColorOfPoints ( )

This method is used to get color for each points...

Definition at line 59 of file PointsToTrackWithImage.cpp.

Referenced by impl_computeDescriptors_(), and impl_computeKeypoints_().

void OpencvSfM::PointsToTrackWithImage::impl_computeDescriptors_ ( ) [protected, virtual]

This method is used to compute only descriptors...

Reimplemented from OpencvSfM::PointsToTrack.

Definition at line 110 of file PointsToTrackWithImage.cpp.

int OpencvSfM::PointsToTrackWithImage::impl_computeKeypoints_ ( ) [protected, virtual]

This method is used to compute only Keypoints...

Returns:
the number of points

Reimplemented from OpencvSfM::PointsToTrack.

Definition at line 102 of file PointsToTrackWithImage.cpp.

void OpencvSfM::PointsToTrackWithImage::setDescriptorExtractor ( cv::Ptr< cv::DescriptorExtractor >  descriptor_detector)

Use this function to set the descriptor extractor. Can be useful to update parameters, for example!

Parameters:
descriptor_detectornew pointer of a descriptor extractor algorithm.

Definition at line 48 of file PointsToTrackWithImage.cpp.

void OpencvSfM::PointsToTrackWithImage::setFeatureDetector ( cv::Ptr< cv::FeatureDetector >  feature_detector)

Use this function to set the feature detector. Can be useful to update parameters, for example!

Parameters:
feature_detectornew pointer of a feature detector algorithm.

Definition at line 43 of file PointsToTrackWithImage.cpp.


The documentation for this class was generated from the following files:
 All Classes Functions Variables