public static extern IntPtr cvGetStarKeypoints( IntPtr img, IntPtr storage, StarDetector param);
private extern static void CvStarDetectorDetectKeyPoints( ref StarDetector detector, IntPtr image, IntPtr keypoints);
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); } }
private static extern void CvStarDetectorDetectKeyPoints( ref StarDetector detector, IntPtr image, IntPtr keypoints);