A recent StackOverflow question asked how to detect a quadrilateral from a scattered collection of line segments.
These line segments may be the result of a Hough transform, for example.
The repository holds my attempt at solving this problem.
Copyright (c) 2013 Drew Noakes Licensed under the LGPL license.
Drew Noakes