GSoC2011SfM
0.1
Google Summer of Code 2011: Structure from motion
|
This class can be used to find points and features in pictures using SIFT detector. More...
#include <PointsToTrackWithImage.h>
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. |
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.
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.
corresponding_image | Global index of image |
imageToAnalyse | Image to use for keypoints and features search |
maskOfAnalyse | Mask used to hide part of image |
feature_detector | Algorithm to use for features detection ( see http://opencv.willowgarage.com/documentation/cpp/common_interfaces_for_feature_detection_and_descriptor_extraction.html#featuredetector ) |
descriptor_detector | 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 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.
corresponding_image | Global index of image |
imageToAnalyse | Image to use for keypoints and features search |
maskOfAnalyse | Mask used to hide part of image |
feature_detector | name 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_detector | name 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.
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...
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!
descriptor_detector | new 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!
feature_detector | new pointer of a feature detector algorithm. |
Definition at line 43 of file PointsToTrackWithImage.cpp.