Lines Matching refs:kpts

183 void KAZEFeatures::Feature_Detection(std::vector<KeyPoint>& kpts)  in Feature_Detection()  argument
185 kpts.clear(); in Feature_Detection()
187 Determinant_Hessian(kpts); in Feature_Detection()
188 Do_Subpixel_Refinement(kpts); in Feature_Detection()
311 void KAZEFeatures::Determinant_Hessian(std::vector<KeyPoint>& kpts) in Determinant_Hessian() argument
346 for (int ik = 0; ik < (int)kpts.size(); ik++) { in Determinant_Hessian()
347 …if (kpts[ik].class_id == level || kpts[ik].class_id == level + 1 || kpts[ik].class_id == level - 1… in Determinant_Hessian()
348 …dist = pow(kpts_par_[i][j].pt.x - kpts[ik].pt.x, 2) + pow(kpts_par_[i][j].pt.y - kpts[ik].pt.y, 2); in Determinant_Hessian()
351 if (kpts_par_[i][j].response > kpts[ik].response) { in Determinant_Hessian()
380 kpts.push_back(kpts_par_[i][j]); in Determinant_Hessian()
384 kpts[id_repeated] = kpts_par_[i][j]; in Determinant_Hessian()
397 void KAZEFeatures::Do_Subpixel_Refinement(std::vector<KeyPoint> &kpts) { in Do_Subpixel_Refinement() argument
407 vector<KeyPoint> kpts_(kpts); in Do_Subpixel_Refinement()
481 kpts.clear(); in Do_Subpixel_Refinement()
485 kpts.push_back(kpts_[i]); in Do_Subpixel_Refinement()
494 …KAZE_Descriptor_Invoker(std::vector<KeyPoint> &kpts, Mat &desc, std::vector<TEvolution>& evolution… in KAZE_Descriptor_Invoker() argument
495 : kpts_(&kpts) in KAZE_Descriptor_Invoker()
508 std::vector<KeyPoint> &kpts = *kpts_; in operator ()() local
514 kpts[i].angle = 0.0; in operator ()()
517 kpts[i].angle = 0.0; in operator ()()
519 Get_KAZE_Upright_Descriptor_128(kpts[i], desc.ptr<float>((int)i)); in operator ()()
521 Get_KAZE_Upright_Descriptor_64(kpts[i], desc.ptr<float>((int)i)); in operator ()()
525 … KAZEFeatures::Compute_Main_Orientation(kpts[i], evolution, options_); in operator ()()
528 Get_KAZE_Descriptor_128(kpts[i], desc.ptr<float>((int)i)); in operator ()()
530 Get_KAZE_Descriptor_64(kpts[i], desc.ptr<float>((int)i)); in operator ()()
552 void KAZEFeatures::Feature_Description(std::vector<KeyPoint> &kpts, Mat &desc) in Feature_Description() argument
554 for(size_t i = 0; i < kpts.size(); i++) in Feature_Description()
556 CV_Assert(0 <= kpts[i].class_id && kpts[i].class_id < static_cast<int>(evolution_.size())); in Feature_Description()
561 desc = Mat::zeros((int)kpts.size(), 128, CV_32FC1); in Feature_Description()
564 desc = Mat::zeros((int)kpts.size(), 64, CV_32FC1); in Feature_Description()
567 …parallel_for_(Range(0, (int)kpts.size()), KAZE_Descriptor_Invoker(kpts, desc, evolution_, options_… in Feature_Description()