Exemple #1
0
        public HoughCircle[] GetMostIntensiveCircles(int count)
        {
            int num = System.Math.Min(count, circles.Count);

            HoughCircle[] array = new HoughCircle[num];
            circles.CopyTo(0, array, 0, num);
            return(array);
        }
Exemple #2
0
        /// <summary>
        /// Get specified amount of circles with highest intensity.
        /// </summary>
        ///
        /// <param name="count">Amount of circles to get.</param>
        ///
        /// <returns>Returns arrary of most intesive circles. If there are no circles detected,
        /// the returned array has zero length.</returns>
        ///
        public HoughCircle[] GetMostIntensiveCircles(int count)
        {
            // lines count
            int n = Math.Min(count, circles.Count);

            // result array
            HoughCircle[] dst = new HoughCircle[n];
            circles.CopyTo(0, dst, 0, n);

            return(dst);
        }
        /// <summary>
        /// Get specified amount of circles with highest intensity.
        /// </summary>
        /// 
        /// <param name="count">Amount of circles to get.</param>
        /// 
        /// <returns>Returns arrary of most intesive circles. If there are no circles detected,
        /// the returned array has zero length.</returns>
        /// 
        public HoughCircle[] GetMostIntensiveCircles(int count)
        {
            // lines count
            int n = Math.Min(count, circles.Count);

            // result array
            HoughCircle[] dst = new HoughCircle[n];
            circles.CopyTo(0, dst, 0, n);

            return dst;
        }