Searched refs:keypoints (Results 1 - 25 of 70) sorted by relevance

123

/external/opencv3/samples/cpp/tutorial_code/features2D/AKAZE_tracking/
H A Dstats.h9 int keypoints; member in struct:Stats
14 keypoints(0)
21 keypoints += op.keypoints;
29 keypoints /= num;
H A Dutils.h14 vector<Point2f> Points(vector<KeyPoint> keypoints);
46 cout << "Keypoints " << stats.keypoints << endl;
50 vector<Point2f> Points(vector<KeyPoint> keypoints) argument
53 for(unsigned i = 0; i < keypoints.size(); i++) {
54 res.push_back(keypoints[i].pt);
/external/opencv3/modules/features2d/src/
H A Dkeypoint.cpp68 // takes keypoints and culls them by the response
69 void KeyPointsFilter::retainBest(std::vector<KeyPoint>& keypoints, int n_points) argument
71 //this is only necessary if the keypoints size is greater than the number of desired points.
72 if( n_points >= 0 && keypoints.size() > (size_t)n_points )
76 keypoints.clear();
79 //first use nth element to partition the keypoints into the best and worst.
80 std::nth_element(keypoints.begin(), keypoints.begin() + n_points, keypoints.end(), KeypointResponseGreater());
82 float ambiguous_response = keypoints[n_point
105 runByImageBorder( std::vector<KeyPoint>& keypoints, Size imageSize, int borderSize ) argument
133 runByKeypointSize( std::vector<KeyPoint>& keypoints, float minSize, float maxSize ) argument
157 runByPixelsMask( std::vector<KeyPoint>& keypoints, const Mat& mask ) argument
[all...]
H A Dfeature2d.cpp53 * Detect keypoints in an image.
55 * keypoints The detected keypoints.
56 * mask Mask specifying where to look for keypoints (optional). Must be a char
60 std::vector<KeyPoint>& keypoints,
65 keypoints.clear();
68 detectAndCompute(image, mask, keypoints, noArray(), false);
73 std::vector<std::vector<KeyPoint> >& keypoints,
87 keypoints.resize(nimages);
91 detect(images[i], keypoints[
59 detect( InputArray image, std::vector<KeyPoint>& keypoints, InputArray mask ) argument
72 detect( InputArrayOfArrays _images, std::vector<std::vector<KeyPoint> >& keypoints, InputArrayOfArrays _masks ) argument
101 compute( InputArray image, std::vector<KeyPoint>& keypoints, OutputArray descriptors ) argument
113 compute( InputArrayOfArrays _images, std::vector<std::vector<KeyPoint> >& keypoints, OutputArrayOfArrays _descriptors ) argument
[all...]
H A Dkaze.cpp109 std::vector<KeyPoint>& keypoints,
135 impl.Feature_Detection(keypoints);
140 cv::KeyPointsFilter::runByPixelsMask(keypoints, mask.getMat());
146 impl.Feature_Description(keypoints, desc);
108 detectAndCompute(InputArray image, InputArray mask, std::vector<KeyPoint>& keypoints, OutputArray descriptors, bool useProvidedKeypoints) argument
H A Dorb.cpp63 const UMat& keypoints,
79 ocl::KernelArg::PtrReadOnly(keypoints),
86 const UMat& keypoints, UMat& responses,
97 ocl::KernelArg::PtrReadOnly(keypoints),
106 const UMat& keypoints, UMat& desc, const UMat& pattern,
118 ocl::KernelArg::PtrReadOnly(keypoints),
215 const std::vector<float>& layerScale, std::vector<KeyPoint>& keypoints,
219 int j, i, nkeypoints = (int)keypoints.size();
223 const KeyPoint& kpt = keypoints[j];
698 void detectAndCompute( InputArray image, InputArray mask, std::vector<KeyPoint>& keypoints,
61 ocl_HarrisResponses(const UMat& imgbuf, const UMat& layerinfo, const UMat& keypoints, UMat& responses, int nkeypoints, int blockSize, float harris_k) argument
85 ocl_ICAngles(const UMat& imgbuf, const UMat& layerinfo, const UMat& keypoints, UMat& responses, const UMat& umax, int nkeypoints, int half_k) argument
105 ocl_computeOrbDescriptors(const UMat& imgbuf, const UMat& layerInfo, const UMat& keypoints, UMat& desc, const UMat& pattern, int nkeypoints, int dsize, int wta_k) argument
214 computeOrbDescriptors( const Mat& imagePyramid, const std::vector<Rect>& layerInfo, const std::vector<float>& layerScale, std::vector<KeyPoint>& keypoints, Mat& descriptors, const std::vector<Point>& _pattern, int dsize, int wta_k ) argument
[all...]
H A Dfast.cpp56 void FAST_t(InputArray _img, std::vector<KeyPoint>& keypoints, int threshold, bool nonmax_suppression) argument
67 keypoints.clear();
247 keypoints.push_back(KeyPoint((float)j, (float)(i-1), 7.f, -1, (float)score));
259 static bool ocl_FAST( InputArray _img, std::vector<KeyPoint>& keypoints, argument
286 keypoints.clear();
297 keypoints.push_back(KeyPoint((float)pt[i].x, (float)pt[i].y, 7.f, -1, 1.f));
324 keypoints.push_back(KeyPoint((float)pt2[i].x, (float)pt2[i].y, 7.f, -1, (float)pt2[i].z));
331 void FAST(InputArray _img, std::vector<KeyPoint>& keypoints, int threshold, bool nonmax_suppression, int type) argument
334 ocl_FAST(_img, keypoints, threshold, nonmax_suppression, 10000))
342 FAST_t<8>(_img, keypoints, threshol
358 FAST(InputArray _img, std::vector<KeyPoint>& keypoints, int threshold, bool nonmax_suppression) argument
371 detect( InputArray _image, std::vector<KeyPoint>& keypoints, InputArray _mask ) argument
[all...]
H A Dgftt.cpp76 void detect( InputArray _image, std::vector<KeyPoint>& keypoints, InputArray _mask ) argument
101 keypoints.resize(corners.size());
103 std::vector<KeyPoint>::iterator keypoint_it = keypoints.begin();
H A Dakaze.cpp166 std::vector<KeyPoint>& keypoints,
200 impl.Feature_Detection(keypoints);
205 KeyPointsFilter::runByPixelsMask(keypoints, mask.getMat());
211 impl.Compute_Descriptors(keypoints, desc);
165 detectAndCompute(InputArray image, InputArray mask, std::vector<KeyPoint>& keypoints, OutputArray descriptors, bool useProvidedKeypoints) argument
/external/opencv3/modules/cudafeatures2d/src/
H A Dfeature2d_async.cpp50 OutputArray keypoints,
56 keypoints.clear();
60 detectAndComputeAsync(image, mask, keypoints, noArray(), false, stream);
64 OutputArray keypoints,
74 detectAndComputeAsync(image, noArray(), keypoints, descriptors, true, stream);
79 OutputArray /*keypoints*/,
49 detectAsync(InputArray image, OutputArray keypoints, InputArray mask, Stream& stream) argument
63 computeAsync(InputArray image, OutputArray keypoints, OutputArray descriptors, Stream& stream) argument
H A Dfast.cpp70 virtual void detect(InputArray _image, std::vector<KeyPoint>& keypoints, InputArray _mask);
73 virtual void convert(InputArray _gpu_keypoints, std::vector<KeyPoint>& keypoints);
98 void FAST_Impl::detect(InputArray _image, std::vector<KeyPoint>& keypoints, InputArray _mask)
102 keypoints.clear();
110 convert(d_keypoints, keypoints);
144 GpuMat& keypoints = _keypoints.getGpuMatRef();
148 count = nonmaxSuppression_gpu(kpLoc.ptr<short2>(), count, score, keypoints.ptr<short2>(LOCATION_ROW), keypoints.ptr<float>(RESPONSE_ROW), StreamAccessor::getStream(stream));
151 keypoints.release();
155 keypoints
[all...]
/external/opencv3/modules/features2d/test/
H A Dtest_orb.cpp61 std::vector<KeyPoint> keypoints; local
62 fd->detect(image, keypoints, roi);
64 de->compute(image, keypoints, descriptors);
69 for(std::vector<KeyPoint>::const_iterator kp = keypoints.begin(); kp != keypoints.end(); ++kp)
H A Dtest_descriptors_regression.cpp151 vector<KeyPoint> keypoints; local
156 dextractor->compute( image, keypoints, descriptors );
160 ts->printf( cvtest::TS::LOG, "compute() on empty image and empty keypoints must not generate exception (1).\n");
167 dextractor->compute( image, keypoints, descriptors );
171 ts->printf( cvtest::TS::LOG, "compute() on nonempty image and empty keypoints must not generate exception (1).\n");
185 ts->printf( cvtest::TS::LOG, "compute() on empty images and empty keypoints collection must not generate exception (2).\n");
203 vector<KeyPoint> keypoints; local
204 FileStorage fs( string(ts->get_data_path()) + FEATURES2D_DIR + "/keypoints.xml.gz", FileStorage::READ );
206 detector->detect(img, keypoints);
208 read( fs.getFirstTopLevelNode(), keypoints );
355 vector<vector<KeyPoint> > keypoints; local
391 vector<KeyPoint> keypoints; local
[all...]
H A Dtest_keypoints.cpp77 vector<KeyPoint> keypoints; local
78 detector->detect(image, keypoints);
80 if(keypoints.empty())
82 ts->printf(cvtest::TS::LOG, "Detector can't find keypoints in image.\n");
88 for(size_t i = 0; i < keypoints.size(); i++)
90 const KeyPoint& kp = keypoints[i];
/external/opencv3/modules/java/src/
H A Dfeatures2d+DescriptorExtractor.java44 // C++: void compute(Mat image, vector_KeyPoint& keypoints, Mat descriptors)
47 //javadoc: javaDescriptorExtractor::compute(image, keypoints, descriptors)
48 public void compute(Mat image, MatOfKeyPoint keypoints, Mat descriptors) argument
50 Mat keypoints_mat = keypoints;
58 // C++: void compute(vector_Mat images, vector_vector_KeyPoint& keypoints, vector_Mat& descriptors)
61 //javadoc: javaDescriptorExtractor::compute(images, keypoints, descriptors)
62 public void compute(List<Mat> images, List<MatOfKeyPoint> keypoints, List<Mat> descriptors) argument
65 List<Mat> keypoints_tmplm = new ArrayList<Mat>((keypoints != null) ? keypoints.size() : 0);
66 Mat keypoints_mat = Converters.vector_vector_KeyPoint_to_Mat(keypoints, keypoints_tmpl
[all...]
H A Dfeatures2d+FeatureDetector.java80 // C++: void detect(Mat image, vector_KeyPoint& keypoints, Mat mask = Mat())
83 //javadoc: javaFeatureDetector::detect(image, keypoints, mask)
84 public void detect(Mat image, MatOfKeyPoint keypoints, Mat mask) argument
86 Mat keypoints_mat = keypoints;
92 //javadoc: javaFeatureDetector::detect(image, keypoints)
93 public void detect(Mat image, MatOfKeyPoint keypoints) argument
95 Mat keypoints_mat = keypoints;
103 // C++: void detect(vector_Mat images, vector_vector_KeyPoint& keypoints, vector_Mat masks = std::vector<Mat>())
106 //javadoc: javaFeatureDetector::detect(images, keypoints, masks)
107 public void detect(List<Mat> images, List<MatOfKeyPoint> keypoints, Lis argument
119 detect(List<Mat> images, List<MatOfKeyPoint> keypoints) argument
[all...]
/external/opencv3/modules/ts/src/
H A Dcuda_perf.cpp271 std::vector<cv::KeyPoint>* keypoints; member in struct:perf::KeypointIdxCompare
273 explicit KeypointIdxCompare(std::vector<cv::KeyPoint>* _keypoints) : keypoints(_keypoints) {}
277 cv::KeyPoint kp1 = (*keypoints)[i1];
278 cv::KeyPoint kp2 = (*keypoints)[i2];
289 void sortKeyPoints(std::vector<cv::KeyPoint>& keypoints, cv::InputOutputArray _descriptors) argument
291 std::vector<size_t> indexies(keypoints.size());
295 std::sort(indexies.begin(), indexies.end(), KeypointIdxCompare(&keypoints));
300 new_keypoints.resize(keypoints.size());
312 new_keypoints[i] = keypoints[new_idx];
317 keypoints
[all...]
/external/opencv3/modules/core/src/
H A Dtypes.cpp63 void KeyPoint::convert(const std::vector<KeyPoint>& keypoints, std::vector<Point2f>& points2f, argument
68 points2f.resize( keypoints.size() );
69 for( size_t i = 0; i < keypoints.size(); i++ )
70 points2f[i] = keypoints[i].pt;
79 points2f[i] = keypoints[idx].pt;
89 void KeyPoint::convert( const std::vector<Point2f>& points2f, std::vector<KeyPoint>& keypoints, argument
92 keypoints.resize(points2f.size());
94 keypoints[i] = KeyPoint(points2f[i], size, -1, response, octave, class_id);
/external/opencv3/modules/features2d/misc/java/test/
H A DSURFFeatureDetectorTest.java76 List<MatOfKeyPoint> keypoints = new ArrayList<MatOfKeyPoint>();
83 detector.detect(crosses, keypoints);
85 assertEquals(3, keypoints.size());
87 for (MatOfKeyPoint mkp : keypoints) {
103 MatOfKeyPoint keypoints = new MatOfKeyPoint();
106 detector.detect(cross, keypoints);
108 List<KeyPoint> lkp = keypoints.toList();
120 MatOfKeyPoint keypoints = new MatOfKeyPoint();
122 detector.detect(img, keypoints, mask);
124 List<KeyPoint> lkp = keypoints
[all...]
H A DFASTFeatureDetectorTest.java57 MatOfKeyPoint keypoints = new MatOfKeyPoint();
59 detector.detect(img, keypoints);
61 assertListKeyPointEquals(Arrays.asList(truth), keypoints.toList(), EPS);
63 // OpenCVTestRunner.Log("points found: " + keypoints.size());
64 // for (KeyPoint kp : keypoints)
71 MatOfKeyPoint keypoints = new MatOfKeyPoint();
73 detector.detect(img, keypoints, mask);
75 assertListKeyPointEquals(Arrays.asList(truth[0], truth[1]), keypoints.toList(), EPS);
H A DSTARFeatureDetectorTest.java76 MatOfKeyPoint keypoints = new MatOfKeyPoint();
78 detector.detect(img, keypoints);
80 assertListKeyPointEquals(Arrays.asList(truth), keypoints.toList(), EPS);
86 MatOfKeyPoint keypoints = new MatOfKeyPoint();
88 detector.detect(img, keypoints, mask);
90 assertListKeyPointEquals(Arrays.asList(truth[0], truth[2], truth[5], truth[7]), keypoints.toList(), EPS);
H A DORBDescriptorExtractorTest.java46 MatOfKeyPoint keypoints = new MatOfKeyPoint(point);
50 extractor.compute(img, keypoints, descriptors);
79 MatOfKeyPoint keypoints = new MatOfKeyPoint(point);
87 extractor.compute(img, keypoints, descriptors);
/external/opencv3/modules/stitching/test/
H A Dtest_matchers.cpp62 for (size_t i = 0; i < roi_features.keypoints.size(); ++i)
64 Point2f pt = roi_features.keypoints[i].pt;
/external/opencv3/modules/calib3d/src/
H A Dcirclesgrid.cpp570 keypoints = testKeypoints;
628 Point2f vec1 = keypoints[i] - keypoints[*it1];
629 Point2f vec2 = keypoints[*it1] - keypoints[*it2];
634 vectors.push_back(keypoints[i] - keypoints[*it2]);
635 vectors.push_back(keypoints[*it2] - keypoints[i]);
817 const std::vector<Point2f> &keypoints, st
816 rectifyGrid(Size detectedGridSize, const std::vector<Point2f>& centers, const std::vector<Point2f> &keypoints, std::vector<Point2f> &warpedKeypoints) argument
[all...]
/external/opencv3/modules/features2d/include/opencv2/
H A Dfeatures2d.hpp88 // //! writes vector of keypoints to the file storage
89 // CV_EXPORTS void write(FileStorage& fs, const String& name, const std::vector<KeyPoint>& keypoints);
90 // //! reads vector of keypoints from the specified file storage node
91 // CV_EXPORTS void read(const FileNode& node, CV_OUT std::vector<KeyPoint>& keypoints);
93 /** @brief A class filters a vector of keypoints.
96 keypoints filter class, it has only several needed by now static methods.
104 * Remove keypoints within borderPixels of an image edge.
106 static void runByImageBorder( std::vector<KeyPoint>& keypoints, Size imageSize, int borderSize );
108 * Remove keypoints of sizes out of range.
110 static void runByKeypointSize( std::vector<KeyPoint>& keypoints, floa
1276 compute2( const Mat& image, std::vector<KeyPoint>& keypoints, CV_OUT Mat& imgDescriptor ) argument
[all...]

Completed in 590 milliseconds

123