Re: [Vxl-users] line clipping and plotting into vil images From: Ian Scott - 2009-05-26 16:20:07 ```Christoph John wrote: > I have a little question concerning the functionality of vxl. I would like to draw a line given in homogenous coordinates into a vil image. > I found some support for projective geometry computations in the vgl library and was therefore wondering if there are functions available in vxl to do line clipping and drawing (Bresenham for example). If so, where can I find these functions? There is an implementation of Bresenham's algorithm in vil_fill_line() in core/vil/vil_fill You would have to convert the homogeneous coordinates to normal 2D ones first. You can clip using one of the functions in core/vgl/vgl_intersect.h Ian. ```
 [Vxl-users] line clipping and plotting into vil images From: Christoph John - 2009-05-26 16:06:20 ```Hello, I have a little question concerning the functionality of vxl. I would like to draw a line given in homogenous coordinates into a vil image. I found some support for projective geometry computations in the vgl library and was therefore wondering if there are functions available in vxl to do line clipping and drawing (Bresenham for example). If so, where can I find these functions? Thanks for your help. Cheers Christoph -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02 ```
 Re: [Vxl-users] line clipping and plotting into vil images From: Ian Scott - 2009-05-26 16:20:07 ```Christoph John wrote: > I have a little question concerning the functionality of vxl. I would like to draw a line given in homogenous coordinates into a vil image. > I found some support for projective geometry computations in the vgl library and was therefore wondering if there are functions available in vxl to do line clipping and drawing (Bresenham for example). If so, where can I find these functions? There is an implementation of Bresenham's algorithm in vil_fill_line() in core/vil/vil_fill You would have to convert the homogeneous coordinates to normal 2D ones first. You can clip using one of the functions in core/vgl/vgl_intersect.h Ian. ```