Lines Matching refs:train
236 cv::Mat query, train;
247 queryDescCount = 300; // must be even number because we split train data in some cases in two
260 // Generate train decriptors as follows:
261 // copy each query descriptor to train set countFactor times
282 trainBuf.convertTo(train, CV_32F);
294 mask.create(query.rows, train.rows, CV_8UC1);
299 matcher->match(loadMat(query), loadMat(train), matches, mask);
319 cv::cuda::GpuMat d_train(train);
322 matcher->add(std::vector<cv::cuda::GpuMat>(1, d_train.rowRange(0, train.rows / 2)));
323 matcher->add(std::vector<cv::cuda::GpuMat>(1, d_train.rowRange(train.rows / 2, train.rows)));
329 masks[mi] = cv::cuda::GpuMat(query.rows, train.rows/2, CV_8UC1, cv::Scalar::all(1));
379 mask.create(query.rows, train.rows, CV_8UC1);
384 matcher->knnMatch(loadMat(query), loadMat(train), matches, knn, mask);
419 mask.create(query.rows, train.rows, CV_8UC1);
424 matcher->knnMatch(loadMat(query), loadMat(train), matches, knn, mask);
456 cv::cuda::GpuMat d_train(train);
459 matcher->add(std::vector<cv::cuda::GpuMat>(1, d_train.rowRange(0, train.rows / 2)));
460 matcher->add(std::vector<cv::cuda::GpuMat>(1, d_train.rowRange(train.rows / 2, train.rows)));
466 masks[mi] = cv::cuda::GpuMat(query.rows, train.rows / 2, CV_8UC1, cv::Scalar::all(1));
519 cv::cuda::GpuMat d_train(train);
522 matcher->add(std::vector<cv::cuda::GpuMat>(1, d_train.rowRange(0, train.rows / 2)));
523 matcher->add(std::vector<cv::cuda::GpuMat>(1, d_train.rowRange(train.rows / 2, train.rows)));
529 masks[mi] = cv::cuda::GpuMat(query.rows, train.rows / 2, CV_8UC1, cv::Scalar::all(1));
587 matcher->radiusMatch(loadMat(query), loadMat(train), matches, radius);
599 mask.create(query.rows, train.rows, CV_8UC1);
604 matcher->radiusMatch(loadMat(query), loadMat(train), matches, radius, mask);
633 cv::cuda::GpuMat d_train(train);
636 matcher->add(std::vector<cv::cuda::GpuMat>(1, d_train.rowRange(0, train.rows / 2)));
637 matcher->add(std::vector<cv::cuda::GpuMat>(1, d_train.rowRange(train.rows / 2, train.rows)));
643 masks[mi] = cv::cuda::GpuMat(query.rows, train.rows / 2, CV_8UC1, cv::Scalar::all(1));