Exemple #1
0
 public static extern IntPtr cvGetStarKeypoints(
     IntPtr img,
     IntPtr storage,
     StarDetector param);
 private extern static void CvStarDetectorDetectKeyPoints(
     ref StarDetector detector,
     IntPtr image,
     IntPtr keypoints);
Exemple #3
0
        public void TestStarDetector()
        {
            Image<Gray, byte> box = new Image<Gray, byte>("box.png");
             StarDetector detector = new StarDetector();
             detector.SetDefaultParameters();

             MKeyPoint[] keypoints = detector.DetectKeyPoints(box);
             foreach (MKeyPoint kp in keypoints)
             {
            box.Draw(new CircleF(kp.Point, kp.Size), new Gray(255), 1);
             }
        }
Exemple #4
0
 private static extern void CvStarDetectorDetectKeyPoints(
     ref StarDetector detector,
     IntPtr image,
     IntPtr keypoints);
 public static extern IntPtr cvGetStarKeypoints(
     IntPtr img,
     IntPtr storage,
     StarDetector param);