Lines Matching refs:kpts
170 void AKAZEFeatures::Feature_Detection(std::vector<KeyPoint>& kpts) in Feature_Detection() argument
172 kpts.clear(); in Feature_Detection()
174 Find_Scale_Space_Extrema(kpts); in Feature_Detection()
175 Do_Subpixel_Refinement(kpts); in Feature_Detection()
256 void AKAZEFeatures::Find_Scale_Space_Extrema(std::vector<KeyPoint>& kpts) in Find_Scale_Space_Extrema() argument
386 kpts.push_back(pt); in Find_Scale_Space_Extrema()
395 void AKAZEFeatures::Do_Subpixel_Refinement(std::vector<KeyPoint>& kpts) in Do_Subpixel_Refinement() argument
404 for (size_t i = 0; i < kpts.size(); i++) { in Do_Subpixel_Refinement()
405 ratio = (float)fastpow(2, kpts[i].octave); in Do_Subpixel_Refinement()
406 x = fRound(kpts[i].pt.x / ratio); in Do_Subpixel_Refinement()
407 y = fRound(kpts[i].pt.y / ratio); in Do_Subpixel_Refinement()
410 Dx = (0.5f)*(*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y)+x + 1) in Do_Subpixel_Refinement()
411 - *(evolution_[kpts[i].class_id].Ldet.ptr<float>(y)+x - 1)); in Do_Subpixel_Refinement()
412 Dy = (0.5f)*(*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y + 1) + x) in Do_Subpixel_Refinement()
413 - *(evolution_[kpts[i].class_id].Ldet.ptr<float>(y - 1) + x)); in Do_Subpixel_Refinement()
416 Dxx = (*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y)+x + 1) in Do_Subpixel_Refinement()
417 + *(evolution_[kpts[i].class_id].Ldet.ptr<float>(y)+x - 1) in Do_Subpixel_Refinement()
418 - 2.0f*(*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y)+x))); in Do_Subpixel_Refinement()
420 Dyy = (*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y + 1) + x) in Do_Subpixel_Refinement()
421 + *(evolution_[kpts[i].class_id].Ldet.ptr<float>(y - 1) + x) in Do_Subpixel_Refinement()
422 - 2.0f*(*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y)+x))); in Do_Subpixel_Refinement()
424 Dxy = (0.25f)*(*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y + 1) + x + 1) in Do_Subpixel_Refinement()
425 + (*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y - 1) + x - 1))) in Do_Subpixel_Refinement()
426 - (0.25f)*(*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y - 1) + x + 1) in Do_Subpixel_Refinement()
427 + (*(evolution_[kpts[i].class_id].Ldet.ptr<float>(y + 1) + x - 1))); in Do_Subpixel_Refinement()
439 kpts[i].pt.x = x + dst(0); in Do_Subpixel_Refinement()
440 kpts[i].pt.y = y + dst(1); in Do_Subpixel_Refinement()
441 int power = fastpow(2, evolution_[kpts[i].class_id].octave); in Do_Subpixel_Refinement()
442 kpts[i].pt.x *= power; in Do_Subpixel_Refinement()
443 kpts[i].pt.y *= power; in Do_Subpixel_Refinement()
444 kpts[i].angle = 0.0; in Do_Subpixel_Refinement()
447 kpts[i].size *= 2.0f; in Do_Subpixel_Refinement()
451 kpts.erase(kpts.begin() + i); in Do_Subpixel_Refinement()
462 …SURF_Descriptor_Upright_64_Invoker(std::vector<KeyPoint>& kpts, Mat& desc, std::vector<TEvolution>… in SURF_Descriptor_Upright_64_Invoker() argument
463 : keypoints_(&kpts) in SURF_Descriptor_Upright_64_Invoker()
488 …SURF_Descriptor_64_Invoker(std::vector<KeyPoint>& kpts, Mat& desc, std::vector<TEvolution>& evolut… in SURF_Descriptor_64_Invoker() argument
489 : keypoints_(&kpts) in SURF_Descriptor_64_Invoker()
515 …MSURF_Upright_Descriptor_64_Invoker(std::vector<KeyPoint>& kpts, Mat& desc, std::vector<TEvolution… in MSURF_Upright_Descriptor_64_Invoker() argument
516 : keypoints_(&kpts) in MSURF_Upright_Descriptor_64_Invoker()
541 …MSURF_Descriptor_64_Invoker(std::vector<KeyPoint>& kpts, Mat& desc, std::vector<TEvolution>& evolu… in MSURF_Descriptor_64_Invoker() argument
542 : keypoints_(&kpts) in MSURF_Descriptor_64_Invoker()
568 …Upright_MLDB_Full_Descriptor_Invoker(std::vector<KeyPoint>& kpts, Mat& desc, std::vector<TEvolutio… in Upright_MLDB_Full_Descriptor_Invoker() argument
569 : keypoints_(&kpts) in Upright_MLDB_Full_Descriptor_Invoker()
596 Upright_MLDB_Descriptor_Subset_Invoker(std::vector<KeyPoint>& kpts, in Upright_MLDB_Descriptor_Subset_Invoker() argument
602 : keypoints_(&kpts) in Upright_MLDB_Descriptor_Subset_Invoker()
634 …MLDB_Full_Descriptor_Invoker(std::vector<KeyPoint>& kpts, Mat& desc, std::vector<TEvolution>& evol… in MLDB_Full_Descriptor_Invoker() argument
635 : keypoints_(&kpts) in MLDB_Full_Descriptor_Invoker()
667 MLDB_Descriptor_Subset_Invoker(std::vector<KeyPoint>& kpts, in MLDB_Descriptor_Subset_Invoker() argument
673 : keypoints_(&kpts) in MLDB_Descriptor_Subset_Invoker()
708 void AKAZEFeatures::Compute_Descriptors(std::vector<KeyPoint>& kpts, Mat& desc) in Compute_Descriptors() argument
710 for(size_t i = 0; i < kpts.size(); i++) in Compute_Descriptors()
712 CV_Assert(0 <= kpts[i].class_id && kpts[i].class_id < static_cast<int>(evolution_.size())); in Compute_Descriptors()
717 desc = Mat::zeros((int)kpts.size(), 64, CV_32FC1); in Compute_Descriptors()
723 desc = Mat::zeros((int)kpts.size(), (int)ceil(t / 8.), CV_8UC1); in Compute_Descriptors()
727 desc = Mat::zeros((int)kpts.size(), (int)ceil(options_.descriptor_size / 8.), CV_8UC1); in Compute_Descriptors()
735 …parallel_for_(Range(0, (int)kpts.size()), MSURF_Upright_Descriptor_64_Invoker(kpts, desc, evolutio… in Compute_Descriptors()
740 … parallel_for_(Range(0, (int)kpts.size()), MSURF_Descriptor_64_Invoker(kpts, desc, evolution_)); in Compute_Descriptors()
746 …parallel_for_(Range(0, (int)kpts.size()), Upright_MLDB_Full_Descriptor_Invoker(kpts, desc, evoluti… in Compute_Descriptors()
748 …parallel_for_(Range(0, (int)kpts.size()), Upright_MLDB_Descriptor_Subset_Invoker(kpts, desc, evolu… in Compute_Descriptors()
754 …parallel_for_(Range(0, (int)kpts.size()), MLDB_Full_Descriptor_Invoker(kpts, desc, evolution_, opt… in Compute_Descriptors()
756 …parallel_for_(Range(0, (int)kpts.size()), MLDB_Descriptor_Subset_Invoker(kpts, desc, evolution_, o… in Compute_Descriptors()