next up previous contents index
Next: cccrop Up: Reference Previous: vpoint   Contents   Index

vpsegplot

$ \bigcirc$Name


vpsegplot Display vanishing points and associated segments (output of vpoint)




$ \bigcirc$Command Synopsis


vpsegplot [-l] image allsegs vpoints vsegs n crv



-l : show supporting lines instead of segments

image : input image (only used to obtain dimensions)

allsegs : input 5-Flist of all detected segments (x1 y1 x2 y2 -log10(nfa))

vpoints : input 9-Flist of vanishing regions detected by vpoint (x1 y1 x2 y2 x3 y3 x4 y4 -log10(nfa))

vsegs : input segments indexes associated to each detected vanishing region (Flists)

n : input integer: index of vanishing region to display (for n out of bounds, segments not contributing to any vp will be displayed)

crv : store n-th vp and contributing segments as curves (output, Flists)




$ \bigcirc$Function Summary


void vpsegplot (image , allsegs , vpoints , vsegs , n , crv , lines )

Fimage image ;

Fimage allsegs ;

Flist vpoints ;

Flists vsegs ;

int n ;

Flists crv ;

char *lines ;




$ \bigcirc$Description


This module serves as an utility to graphically display the output of vpoint using fkview.

Example


Compute line segments in building.tif
align_mdl -c ksegs building.tif allsegs
Display these segments
fkview -s -b building.tif ksegs
Compute vanishing regions
vpoint -s csegs building.tif allsegs vpoints
returns NVP = 3 and NVP_masked = 0
Display the first vanishing region
vpsegplot building.tif allsegs vpoints csegs 0 kvp0
fkview -s -b building.tif kvp0
Display segments not contributing to any vanishing region
vpsegplot building.tif allsegs vpoints csegs -1 kvp-none
fkview -s -b building.tif kvp-none




$ \bigcirc$Version 1.0


Last Modification date : Thu Apr 15 03:42:29 2004


$ \bigcirc$Author


Andres Almansa






next up previous contents index
Next: cccrop Up: Reference Previous: vpoint   Contents   Index
mw 2004-05-05