Fixed line extraction algorithm