next up previous contents index
Next: ml_extract Up: Reference Previous: ml_decompose   Contents   Index

ml_draw

$ \bigcirc$Name


ml_draw Draw morpho_lines of mimage




$ \bigcirc$Command Synopsis


ml_draw [-b] [-a bimage] [-o movie] mimage image_out



-b : draw border

-a bimage : add the original bitmap image to the background

-o movie : movie made with one b/w image per level

mimage : input m_image

image_out : b/w image of morpho_lines, size (2L-1)x(2C-1)




$ \bigcirc$Function Summary


Cimage ml_draw (m_image , bimage , border , movie )

Mimage m_image ;

Cimage bimage ;

char *border ;

Cmovie movie ;




$ \bigcirc$Description


This modules draws all the morpho_lines of m_image in black (0) on a white background (255) into the cimage image_out. It is used to visualize the topographic map the m_image contains [CCM96],[CCM99].

If the option -o movie is selected, the morpho_lines are drawn is the Cmovie movie so that an image number n contains the morpho_lines associated to the n-th gray level. Warning : this option may cause huge data output.

If the option -a bimage is selected, the background of the image output is made by the zoomed image bimage, this last one being the original bitmap image used to compute the morpho_lines (in that case, it should be a Cimage).

If the option -b is selected, the image output has two columns and to rows more than the size indicated below. This is usefull to draw the border image.

If m_image is of size NC×NL, the output image_out will be of size (2NC - 1)(2NL - 1).
Indeed the boundary between regions is drawn ``between'' the pixels, thus we have to add NC - 1 columns and NL - 1 lines to be able to draw the boundaries.
The ``corners'' obtained in this way are the correct locations of the vertices of a morpho_line (see the figure in ml_extract).




$ \bigcirc$See Also


ml_extract.


$ \bigcirc$Version 8.1


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


$ \bigcirc$Author


Jacques Froment, Georges Koepfler






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