/// <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; }