A highly selective HT based algorithm for detecting extended, almost rectilinear shapes