home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
vis-ftp.cs.umass.edu
/
vis-ftp.cs.umass.edu.tar
/
vis-ftp.cs.umass.edu
/
pub
/
Software
/
ASCENDER
/
ascender.tar.Z
/
ascender.tar
/
Terrain
/
adjust-terrain.lisp
next >
Wrap
Lisp/Scheme
|
1995-09-12
|
679b
|
22 lines
;;
;; adjust-terrain: Take into account the polygon hypotheses generated
;; by the building detector in a single image and reproduce
;; a terrain model. For each polygon in the
;; "UMass 2d Buildings" feature set, attempt to fit
;; a plane to the data encompassed by the building polygon.
;; adjust the terrain to incorporate the fit plane.
;;
;;
(in-package 'cme)
(defun adjust-terrain
(let* ((pane (ic::pick-a-pane (ic::get-interactor)
"Pick a pane containing the rooftop hypotheses"))
(2dworld (2dworld (topview pane)))
(polys (inferiors (find-fs-named 2dworld "UMass 2d Buildings"))))
(dolist (poly polys)
(fit-elevation-plane-to-poly (