next up previous contents index
Next: km_bitangents Up: Reference Previous: kreadfig   Contents   Index

readpoly

$ \bigcirc$Name


readpoly Read the contours of Polygons on a window




$ \bigcirc$Command Synopsis


readpoly cimage polygons



cimage : input Cimage

polygons : output Polygons




$ \bigcirc$Function Summary


Polygons readpoly (image , window )

Cimage image ;

char *window ;




$ \bigcirc$Description


This module displays the input image on a window, and interactively reads the contours of polygons which are pointed by the operator using the mouse. The polygons are created with a defaut gray level (field gray) set to 0 (black).


Interactive commands :


Key 'Q' soft quit (save the polygons)
Key 'H' help
Key <SPACE> list recorded polygons
Key 'R' redraw the window according to the recorded polygons
Mouse Left button create a new point in the current coordinates (x,y)
Mouse Middle button remove the last recorded point
Mouse Right button terminate the polygon and go ready for the next one




$ \bigcirc$See Also


lsnakes_demo.


$ \bigcirc$Version 1.2


Last Modification date : Thu Nov 29 20:23:56 2001


$ \bigcirc$Author


Jacques Froment






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