예제 #1
0
        /// <summary>
        /// Get the Star detector parameters
        /// </summary>
        /// <returns></returns>
        public MCvStarDetectorParams GetStarDetectorParameters()
        {
            MCvStarDetectorParams p = new MCvStarDetectorParams();

            p.MaxSize                = MaxSize;
            p.ResponseThreshold      = ResponseThreshold;
            p.LineThresholdProjected = LineThresholdProjected;
            p.LineThresholdBinarized = LineThresholdBinarized;
            p.SuppressNonmaxSize     = SuppressNonmaxSize;
            return(p);
        }
예제 #2
0
        /// <summary>
        /// Create a star detector with the specific parameters
        /// </summary>
        /// <param name="maxSize">
        /// Use 45 as default. Maximum size of the features. The following
        /// values of the parameter are supported:
        /// 4, 6, 8, 11, 12, 16, 22, 23, 32, 45, 46, 64, 90, 128</param>
        /// <param name="responseThreshold">
        /// Use 30 as default. Threshold for the approximated laplacian,
        /// used to eliminate weak features. The larger it is,
        /// the less features will be retrieved
        /// </param>
        /// <param name="lineThresholdProjected">
        /// Use 10 as default. Another threshold for the laplacian to eliminate edges.
        /// The larger the threshold, the more points you get.
        /// </param>
        /// <param name="lineThresholdBinarized">
        /// Use 8 as default. Another threshold for the feature size to eliminate edges.
        /// The larger the threshold, the more points you get.</param>
        /// <param name="suppressNonmaxSize">
        /// Use 5 as default.
        /// </param>
        public StarDetector(int maxSize, int responseThreshold, int lineThresholdProjected, int lineThresholdBinarized, int suppressNonmaxSize)
        {
            _maxSize                = maxSize;
            _responseThreshold      = responseThreshold;
            _lineThresholdProjected = lineThresholdProjected;
            _lineThresholdBinarized = lineThresholdBinarized;
            _suppressNonmaxSize     = suppressNonmaxSize;

            MCvStarDetectorParams p = GetStarDetectorParameters();

            _featureDetectorPtr = CvStarGetFeatureDetector(ref p);
        }
예제 #3
0
 public static extern IntPtr cvGetStarKeypoints(
     IntPtr img,
     IntPtr storage,
     MCvStarDetectorParams param);
예제 #4
0
 private extern static IntPtr CvStarGetFeatureDetector(ref MCvStarDetectorParams detector);