static const int OPT_SIZE = 100;
static const char * T_ARR [] = {
- "uchar",
- "char",
- "ushort",
- "short",
- "int",
- "float -D T_FLOAT",
+ "uchar",
+ "char",
+ "ushort",
+ "short",
+ "int",
+ "float -D T_FLOAT",
"double"};
template < int BLOCK_SIZE, int MAX_DESC_LEN/*, typename Mask*/ >
vector< pair<size_t, const void *> > args;
char opt [OPT_SIZE] = "";
- sprintf(opt,
- "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d -D MAX_DESC_LEN=%d",
+ sprintf(opt,
+ "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d -D MAX_DESC_LEN=%d",
T_ARR[query.depth()], distType, block_size, m_size);
if(globalSize[0] != 0)
vector< pair<size_t, const void *> > args;
char opt [OPT_SIZE] = "";
- sprintf(opt,
- "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d",
+ sprintf(opt,
+ "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d",
T_ARR[query.depth()], distType, block_size);
if(globalSize[0] != 0)
{
vector< pair<size_t, const void *> > args;
char opt [OPT_SIZE] = "";
- sprintf(opt,
- "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d -D MAX_DESC_LEN=%d",
+ sprintf(opt,
+ "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d -D MAX_DESC_LEN=%d",
T_ARR[query.depth()], distType, block_size, m_size);
if(globalSize[0] != 0)
vector< pair<size_t, const void *> > args;
char opt [OPT_SIZE] = "";
- sprintf(opt,
- "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d",
+ sprintf(opt,
+ "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d",
T_ARR[query.depth()], distType, block_size);
if(globalSize[0] != 0)
vector< pair<size_t, const void *> > args;
char opt [OPT_SIZE] = "";
- sprintf(opt,
- "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d -D MAX_DESC_LEN=%d",
+ sprintf(opt,
+ "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d -D MAX_DESC_LEN=%d",
T_ARR[query.depth()], distType, block_size, m_size);
if(globalSize[0] != 0)
vector< pair<size_t, const void *> > args;
char opt [OPT_SIZE] = "";
- sprintf(opt,
- "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d",
+ sprintf(opt,
+ "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d",
T_ARR[query.depth()], distType, block_size);
if(globalSize[0] != 0)
vector< pair<size_t, const void *> > args;
char opt [OPT_SIZE] = "";
- sprintf(opt,
- "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d -D MAX_DESC_LEN=%d",
+ sprintf(opt,
+ "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d -D MAX_DESC_LEN=%d",
T_ARR[query.depth()], distType, block_size, m_size);
if(globalSize[0] != 0)
vector< pair<size_t, const void *> > args;
char opt [OPT_SIZE] = "";
- sprintf(opt,
- "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d",
+ sprintf(opt,
+ "-D T=%s -D DIST_TYPE=%d -D BLOCK_SIZE=%d",
T_ARR[query.depth()], distType, block_size);
if(globalSize[0] != 0)
{
if (query.empty() || train.empty())
return;
-
+
CV_Assert(query.channels() == 1 && query.depth() < CV_64F);
CV_Assert(train.cols == query.cols && train.type() == query.type());
return;
CV_Assert(query.channels() == 1 && query.depth() < CV_64F);
-
+
const int nQuery = query.rows;
ensureSizeIsEnough(1, nQuery, CV_32S, trainIdx);
if (query.empty() || trainCollection.empty())
return;
- typedef void (*caller_t)(const oclMat & query, const oclMat & trains, const oclMat & masks,
- const oclMat & trainIdx, const oclMat & imgIdx, const oclMat & distance);
+ // typedef void (*caller_t)(const oclMat & query, const oclMat & trains, const oclMat & masks,
+ // const oclMat & trainIdx, const oclMat & imgIdx, const oclMat & distance);
CV_Assert(query.channels() == 1 && query.depth() < CV_64F);
// radiusMatchSingle
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 &trainIdx, oclMat &distance, oclMat &nMatches, float maxDistance, const oclMat &mask)
{
if (query.empty() || train.empty())
return;
if (query.empty() || empty())
return;
+#if 0
typedef void (*caller_t)(const oclMat & query, const oclMat * trains, int n, float maxDistance, const oclMat * masks,
const oclMat & trainIdx, const oclMat & imgIdx, const oclMat & distance, const oclMat & nMatches);
-#if 0
static const caller_t callers[3][6] =
{
{