AForge.Imaging.HoughLineTransformation.GetMostIntensiveLines C# (CSharp) Method

GetMostIntensiveLines() public method

Get specified amount of lines with highest intensity.
public GetMostIntensiveLines ( int count ) : AForge.Imaging.HoughLine[]
count int Amount of lines to get.
return AForge.Imaging.HoughLine[]
        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;
        }