Research Article

Automated Recognition of a Wall between Windows from a Single Image

Algorithm 1

The algorithm of line segments linking.
Input: line segments set
Output: the new line segments set
()
() for each line segment   do
()  
()  for each line segment   do
()    if   is collinear with   then
()      
(7)  
(8) function  newline ()
(9)  if    then
(10)    find the most close line segment  
(11)    if   is adjacent to   then
(12)     
(13)     delete from
(14)     newline ()
(15)  return  
(16) function  
(17)  find the top most vertex and bottom most vertex of and
(18)  draw a line segment between and