detect and fit curved lines in an image

조회 수: 21 (최근 30일)
Eric Franck
Eric Franck 2012년 12월 8일
댓글: sheeha66 2015년 3월 26일
I'm working on a project that includes lane detection and tracking; I'm able to detect straight lines in image using HT; I'd like to know how to accurately detect and fit curved lines in an image. Thanks folks
  댓글 수: 1
sheeha66
sheeha66 2015년 3월 26일
Hi eric.My project is exactly like you but im using the b-snake rather than HT.Can I know how you removed the unwanted background such as trees and shadows from the road? What is suitable technique that you use ? I really hope for your reply.Tq

댓글을 달려면 로그인하십시오.

답변 (2개)

Image Analyst
Image Analyst 2012년 12월 11일
If you have the coordinates of the pixels, you could use polyfit to fit them to a polynomial.
See articles on road following: Vision Bib
  댓글 수: 3
Image Analyst
Image Analyst 2012년 12월 11일
Well, maybe use the algorithm J recommended above or pick one from the exhaustive list I gave in Vision Bib. Or start simply with an edge detection routine, like the edge() function in MATLAB. Of course getting those coordinates is required before fitting to a curve can be done - you have to have something to fit to.

댓글을 달려면 로그인하십시오.


Jürgen
Jürgen 2012년 12월 8일
Hi,
Hough Transform can also be used for detecting curves:http://faculty.washington.edu/cfolson/papers/pdf/cviu99.pdf
regards,J
  댓글 수: 1
Eric Franck
Eric Franck 2012년 12월 11일
Thanks a lot for your quick reply J, I've read the paper but frankly speaking it's been kinda difficult for me to derive a working code based on that paper within these days. Can u direct me to a working code for curve fitting? not necessarily based on HT of course. the ones I hv can only detect straight lines and no curves!
regards!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Trigonometry에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by