10 #ifndef mrpt_multiDesc_utils_H
11 #define mrpt_multiDesc_utils_H
44 const TQuantizationTable & qTable,
45 const string & filename );
48 const CFeaturePtr & feat,
49 TQuantizationTable & qTable );
55 TQuantizationTable & qTable,
62 const vector<int> & idx );
67 const CImage & currentImage,
99 const unsigned int patchSize,
100 std::vector<double> & orientations,
101 const double & sigma );
114 vector<double> & hist,
135 const unsigned int x,
136 const unsigned int y,
137 const unsigned int patchSize,
138 const double & orientation,
139 vector<int32_t> & descriptor,
141 vector<int32_t> & hashCoeffs );
159 const CImage & rightImage,
180 const CImage & rightImage,
195 const CFeaturePtr & inputFeat,
196 CFeaturePtr & outputFeat,
197 const bool & lowerScales,
208 const CFeaturePtr & feat1,
209 const CFeaturePtr & feat2,
222 const CImage & imageRight,
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
int VISION_IMPEXP computeMoreDescriptors(const CImage &image, const CFeaturePtr &inputFeat, CFeaturePtr &outputFeat, const bool &lowerScales, const TMultiResDescOptions &opts)
Computes more multi-resolution SIFT-like descriptors for a feature using its position in a new image...
void VISION_IMPEXP computeHistogramOfOrientations(const CImage &image, const unsigned int x, const unsigned int y, const unsigned int patchSize, const double &orientation, vector< int32_t > &descriptor, const TMultiResDescOptions &opts, vector< int32_t > &hashCoeffs)
Computes the SIFT-like descriptor of a certain point within an image at the base scale, i.e.
A class for storing images as grayscale or RGB bitmaps.
void VISION_IMPEXP saveQTableToFile(const TQuantizationTable &qTable, const string &filename)
TMultiResMatchingOutput VISION_IMPEXP matchMultiResolutionFeatures(const CFeatureList &list1, CFeatureList &list2, const CImage &rightImage, const TMultiResDescMatchOptions &matchOpts, const TMultiResDescOptions &computeOpts)
Matches two CFeatureList containing mulit-resolution descriptors.
Struct containing the output after matching multi-resolution SIFT-like descriptors.
void VISION_IMPEXP computeMultiOrientations(const CImage &image, CFeatureList &list, const TMultiResDescOptions &opts)
Computes the multi-resolution SIFT-like descriptor of a list of features.
bool VISION_IMPEXP computeGradient(const CImage &image, const unsigned int x, const unsigned int y, double &mag, double &ori)
Computes the gradient of certain pixel within the image.
This namespace contains algorithms for SLAM, localization, map building, representation of robot's ac...
void VISION_IMPEXP insertHashCoeffs(const CFeaturePtr &feat, TQuantizationTable &qTable)
This base provides a set of functions for maths stuff.
void VISION_IMPEXP interpolateHistEntry(vector< double > &hist, const double &cbin, const double &rbin, const double &obin, const double &mag, const int d, const int n)
Inserts the orientation value of a certain pixel within the keypoint neighbourhood into the histogram...
void VISION_IMPEXP updateBaseList(CFeatureList &baseList, const CFeatureList ¤tList, const vector< int > &idx)
bool VISION_IMPEXP computeMainOrientations(const CImage &image, const unsigned int x, const unsigned int y, const unsigned int patchSize, std::vector< double > &orientations, const double &sigma)
Computes the main orientations (within 80% of the peak value of orientation histogram) of a certain p...
void VISION_IMPEXP checkScalesAndFindMore(CMatchedFeatureList &baseList, const CFeatureList ¤tList, const CImage ¤tImage, const TMultiResMatchingOutput &output, const TMultiResDescOptions &computeOpts, const TMultiResDescMatchOptions &matchOpts)
A list of visual features, to be used as output by detectors, as input/output by trackers, etc.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Struct containing the options when computing the multi-resolution SIFT-like descriptors.
void VISION_IMPEXP computeMultiResolutionDescriptors(const CImage &imageLeft, const CImage &imageRight, CMatchedFeatureList &matchedFeats, const TMultiResDescOptions &opts)
Computes the multi-resolution SIFT-like descriptor of a set of matched features.
Struct containing the options when matching multi-resolution SIFT-like descriptors.
void VISION_IMPEXP setProperScales(const CFeaturePtr &feat1, const CFeaturePtr &feat2, int &firstScale, int &lastScale)
Computes the initial and final scales where to look when finding a match between multi-resolution fea...
TMultiResMatchingOutput VISION_IMPEXP relocalizeMultiDesc(const CImage &image, CFeatureList &baseList, CFeatureList ¤tList, TQuantizationTable &qTable, const TMultiResDescOptions &desc_opts, const TMultiResDescMatchOptions &match_opts)
map< int, map< int, map< int, deque< pair< TFeatureID, double > > > > > TQuantizationTable