#include <ocl.hpp>
Public Types | |
enum | DistType { L1Dist = 0, L2Dist, HammingDist } |
Public Member Functions | |
BruteForceMatcher_OCL_base (DistType distType=L2Dist) | |
void | add (const std::vector< oclMat > &descCollection) |
const std::vector< oclMat > & | getTrainDescriptors () const |
void | clear () |
bool | empty () const |
bool | isMaskSupported () const |
void | matchSingle (const oclMat &query, const oclMat &train, oclMat &trainIdx, oclMat &distance, const oclMat &mask=oclMat()) |
void | match (const oclMat &query, const oclMat &train, std::vector< DMatch > &matches, const oclMat &mask=oclMat()) |
void | makeGpuCollection (oclMat &trainCollection, oclMat &maskCollection, const std::vector< oclMat > &masks=std::vector< oclMat >()) |
void | matchCollection (const oclMat &query, const oclMat &trainCollection, oclMat &trainIdx, oclMat &imgIdx, oclMat &distance, const oclMat &masks=oclMat()) |
void | match (const oclMat &query, std::vector< DMatch > &matches, const std::vector< oclMat > &masks=std::vector< oclMat >()) |
void | knnMatchSingle (const oclMat &query, const oclMat &train, oclMat &trainIdx, oclMat &distance, oclMat &allDist, int k, const oclMat &mask=oclMat()) |
void | knnMatch (const oclMat &query, const oclMat &train, std::vector< std::vector< DMatch > > &matches, int k, const oclMat &mask=oclMat(), bool compactResult=false) |
void | knnMatch2Collection (const oclMat &query, const oclMat &trainCollection, oclMat &trainIdx, oclMat &imgIdx, oclMat &distance, const oclMat &maskCollection=oclMat()) |
void | knnMatch (const oclMat &query, std::vector< std::vector< DMatch > > &matches, int k, const std::vector< oclMat > &masks=std::vector< oclMat >(), bool compactResult=false) |
void | radiusMatchSingle (const oclMat &query, const oclMat &train, oclMat &trainIdx, oclMat &distance, oclMat &nMatches, float maxDistance, const oclMat &mask=oclMat()) |
void | radiusMatch (const oclMat &query, const oclMat &train, std::vector< std::vector< DMatch > > &matches, float maxDistance, const oclMat &mask=oclMat(), bool compactResult=false) |
void | radiusMatchCollection (const oclMat &query, oclMat &trainIdx, oclMat &imgIdx, oclMat &distance, oclMat &nMatches, float maxDistance, const std::vector< oclMat > &masks=std::vector< oclMat >()) |
void | radiusMatch (const oclMat &query, std::vector< std::vector< DMatch > > &matches, float maxDistance, const std::vector< oclMat > &masks=std::vector< oclMat >(), bool compactResult=false) |
Static Public Member Functions | |
static void | matchDownload (const oclMat &trainIdx, const oclMat &distance, std::vector< DMatch > &matches) |
static void | matchConvert (const Mat &trainIdx, const Mat &distance, std::vector< DMatch > &matches) |
static void | matchDownload (const oclMat &trainIdx, const oclMat &imgIdx, const oclMat &distance, std::vector< DMatch > &matches) |
static void | matchConvert (const Mat &trainIdx, const Mat &imgIdx, const Mat &distance, std::vector< DMatch > &matches) |
static void | knnMatchDownload (const oclMat &trainIdx, const oclMat &distance, std::vector< std::vector< DMatch > > &matches, bool compactResult=false) |
static void | knnMatchConvert (const Mat &trainIdx, const Mat &distance, std::vector< std::vector< DMatch > > &matches, bool compactResult=false) |
static void | knnMatch2Download (const oclMat &trainIdx, const oclMat &imgIdx, const oclMat &distance, std::vector< std::vector< DMatch > > &matches, bool compactResult=false) |
static void | knnMatch2Convert (const Mat &trainIdx, const Mat &imgIdx, const Mat &distance, std::vector< std::vector< DMatch > > &matches, bool compactResult=false) |
static void | radiusMatchDownload (const oclMat &trainIdx, const oclMat &distance, const oclMat &nMatches, std::vector< std::vector< DMatch > > &matches, bool compactResult=false) |
static void | radiusMatchConvert (const Mat &trainIdx, const Mat &distance, const Mat &nMatches, std::vector< std::vector< DMatch > > &matches, bool compactResult=false) |
static void | radiusMatchDownload (const oclMat &trainIdx, const oclMat &imgIdx, const oclMat &distance, const oclMat &nMatches, std::vector< std::vector< DMatch > > &matches, bool compactResult=false) |
static void | radiusMatchConvert (const Mat &trainIdx, const Mat &imgIdx, const Mat &distance, const Mat &nMatches, std::vector< std::vector< DMatch > > &matches, bool compactResult=false) |
Public Attributes | |
DistType | distType |
|
explicit |
void cv::ocl::BruteForceMatcher_OCL_base::clear | ( | ) |
bool cv::ocl::BruteForceMatcher_OCL_base::empty | ( | ) | const |
const std::vector<oclMat>& cv::ocl::BruteForceMatcher_OCL_base::getTrainDescriptors | ( | ) | const |
bool cv::ocl::BruteForceMatcher_OCL_base::isMaskSupported | ( | ) | const |
void cv::ocl::BruteForceMatcher_OCL_base::knnMatch | ( | const oclMat & | query, |
const oclMat & | train, | ||
std::vector< std::vector< DMatch > > & | matches, | ||
int | k, | ||
const oclMat & | mask = oclMat() , |
||
bool | compactResult = false |
||
) |
void cv::ocl::BruteForceMatcher_OCL_base::knnMatch | ( | const oclMat & | query, |
std::vector< std::vector< DMatch > > & | matches, | ||
int | k, | ||
const std::vector< oclMat > & | masks = std::vector< oclMat >() , |
||
bool | compactResult = false |
||
) |
void cv::ocl::BruteForceMatcher_OCL_base::knnMatch2Collection | ( | const oclMat & | query, |
const oclMat & | trainCollection, | ||
oclMat & | trainIdx, | ||
oclMat & | imgIdx, | ||
oclMat & | distance, | ||
const oclMat & | maskCollection = oclMat() |
||
) |
|
static |
|
static |
|
static |
|
static |
void cv::ocl::BruteForceMatcher_OCL_base::knnMatchSingle | ( | const oclMat & | query, |
const oclMat & | train, | ||
oclMat & | trainIdx, | ||
oclMat & | distance, | ||
oclMat & | allDist, | ||
int | k, | ||
const oclMat & | mask = oclMat() |
||
) |
void cv::ocl::BruteForceMatcher_OCL_base::makeGpuCollection | ( | oclMat & | trainCollection, |
oclMat & | maskCollection, | ||
const std::vector< oclMat > & | masks = std::vector< oclMat >() |
||
) |
void cv::ocl::BruteForceMatcher_OCL_base::match | ( | const oclMat & | query, |
const oclMat & | train, | ||
std::vector< DMatch > & | matches, | ||
const oclMat & | mask = oclMat() |
||
) |
void cv::ocl::BruteForceMatcher_OCL_base::match | ( | const oclMat & | query, |
std::vector< DMatch > & | matches, | ||
const std::vector< oclMat > & | masks = std::vector< oclMat >() |
||
) |
void cv::ocl::BruteForceMatcher_OCL_base::matchCollection | ( | const oclMat & | query, |
const oclMat & | trainCollection, | ||
oclMat & | trainIdx, | ||
oclMat & | imgIdx, | ||
oclMat & | distance, | ||
const oclMat & | masks = oclMat() |
||
) |
|
static |
|
static |
|
static |
|
static |
void cv::ocl::BruteForceMatcher_OCL_base::matchSingle | ( | const oclMat & | query, |
const oclMat & | train, | ||
oclMat & | trainIdx, | ||
oclMat & | distance, | ||
const oclMat & | mask = oclMat() |
||
) |
void cv::ocl::BruteForceMatcher_OCL_base::radiusMatch | ( | const oclMat & | query, |
const oclMat & | train, | ||
std::vector< std::vector< DMatch > > & | matches, | ||
float | maxDistance, | ||
const oclMat & | mask = oclMat() , |
||
bool | compactResult = false |
||
) |
void cv::ocl::BruteForceMatcher_OCL_base::radiusMatch | ( | const oclMat & | query, |
std::vector< std::vector< DMatch > > & | matches, | ||
float | maxDistance, | ||
const std::vector< oclMat > & | masks = std::vector< oclMat >() , |
||
bool | compactResult = false |
||
) |
void cv::ocl::BruteForceMatcher_OCL_base::radiusMatchCollection | ( | const oclMat & | query, |
oclMat & | trainIdx, | ||
oclMat & | imgIdx, | ||
oclMat & | distance, | ||
oclMat & | nMatches, | ||
float | maxDistance, | ||
const std::vector< oclMat > & | masks = std::vector< oclMat >() |
||
) |
|
static |
|
static |
|
static |
|
static |
void cv::ocl::BruteForceMatcher_OCL_base::radiusMatchSingle | ( | const oclMat & | query, |
const oclMat & | train, | ||
oclMat & | trainIdx, | ||
oclMat & | distance, | ||
oclMat & | nMatches, | ||
float | maxDistance, | ||
const oclMat & | mask = oclMat() |
||
) |
DistType cv::ocl::BruteForceMatcher_OCL_base::distType |