[Solved] Can anyone give a simple code for houghlines using C#? As I got the transform, I want to detect the lines in images


I recommend using an existing feature extraction library. Some popular ones are AForge.NET and OpenCV.

Pulled off of AForge.NET example documentation:

HoughLineTransformation lineTransform = new HoughLineTransformation( );
// apply Hough line transofrm
lineTransform.ProcessImage( sourceImage );
Bitmap houghLineImage = lineTransform.ToBitmap( );
// get lines using relative intensity
HoughLine[] lines = lineTransform.GetLinesByRelativeIntensity( 0.5 );

foreach ( HoughLine line in lines )
{
    // ...
}

You can install AForge.NET via the NuGet Package Manager included with Visual Studio. (Google for details.)

0

solved Can anyone give a simple code for houghlines using C#? As I got the transform, I want to detect the lines in images