miércoles, noviembre 16, 2011

Line detection in matlab

Although line detection is a basic image processing operation, and a supposedly non-interesting research topic anymore, available implementations of line detectors are really far from perfect. For such a basic operation, is surprinsingly hard to find a decent C/matlab implementation. It is plenty of hough transform based implementations, but I personally don't like them, in my experience the parameters of hough transform are really hard to tune to get decent results.

 Recently, a new line detector has been published which outperforms previous approaches, you can take a look at it at the IPOL journal: www.ipol.im. In particular, I'd like to draw your attention to the LSD algorithm: http://www.ipol.im/pub/algo/gjmr_line_segment_detector/. This is a very neat implementation in C language.

If you want to test it from matlab, I contributed a mex wrapper to run it. It is available at: http://iie.fing.edu.uy/rosaluna/wiki/ContributedCode#LSD-MEX:_Line_Segment_Detector_for_matlab.

Comments and feedback are welcome.

No hay comentarios.: