An optimal O(n) algorithm for identifying line segments from a sequence of chain codes

作者:

Highlights:

摘要

An optimal algorithm for identifying straight lines in chain codes is described. The algorithm turns the complicated problem of determining the straightness of digital arcs into a simple task by constructing a passing area around the pixels. It also solves the problem of detecting all straight segments from a sequence of chain codes in O(n) time, where n is the length of the sequence. It has been found that this algorithm is not only simple and intuitive, but also highly efficient.

论文关键词:Straight line detection,Chain codes,Digital straight lines,Line drawings,Contours,Polygonal approximation

论文评审过程:Received 4 August 1993, Revised 28 April 1994, Accepted 13 October 1994, Available online 7 June 2001.

论文官网地址:https://doi.org/10.1016/0031-3203(94)00132-6