/// <summary> /// Get specified amount of lines with highest <see cref="HoughLine.Intensity">intensity</see>. /// </summary> /// /// <param name="count">Amount of lines to get.</param> /// /// <returns>Returns array of most intesive lines. If there are no lines detected, /// the returned array has zero length.</returns> /// public HoughLine[] GetMostIntensiveLines(int count) { // lines count int n = Math.Min(count, lines.Count); // result array HoughLine[] dst = new HoughLine[n]; lines.CopyTo(0, dst, 0, n); return(dst); }
// Get specified amount of lines with highest intensity private HoughLine[] GetMostIntensiveLines( int count ) { // lines count int n = Math.Min( count, lines.Count ); // result array HoughLine[] dst = new HoughLine[n]; lines.CopyTo( 0, dst, 0, n ); return dst; }