Beispiel #1
0
        private IEnumerable<KeyPoint> FindFeatures_HarrisCornerDetector(string filename)
        {
            using (var src = new Mat(filename, ImreadModes.GrayScale))
            {
                // find ínteresting corners
                Point2f[] corners = src.GoodFeaturesToTrack(100, 0.01, 100, null, 15, true, 1);

                IEnumerable<KeyPoint> keypoints = corners.Select(s => new KeyPoint(s, 100));
                return keypoints;
            }
        }