next up previous contents index
Next: cml_reconstruct Up: Reference Previous: cml_decompose   Contents   Index

cml_draw

$ \bigcirc$Name


cml_draw Draw cmorpho_lines of cmimage




$ \bigcirc$Command Synopsis


cml_draw [-b] [-a bimage] [-o movie] cmimage image_out



-b : draw border

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

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

cmimage : input cmimage

image_out : color image of cmorpho_lines, size (2L-1)x(2C-1)




$ \bigcirc$Function Summary


Ccimage cml_draw (cmimage , bimage , border , movie )

Cmimage cmimage ;

Ccimage bimage ;

char *border ;

Ccmovie movie ;




$ \bigcirc$Description


This modules is similar to ml_draw, but acts on a Cmimage instead on a Mimage : it is intended to visualize the color topographic map the cmimage contains [CF00].

It draws all the Cmorpho_lines of cmimage in black (0) on a white background (255) into the Ccimage image_out.

If the option -o movie is selected, the Cmorpho_lines are drawn is the Cmovie movie so that an image number n contains the Cmorpho_lines associated to the n-th color level (according to the total order used in cml_decompose). 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 Cmorpho_lines (in that case, it should be a Ccimage).

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

If cmimage 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 Cmorpho_line (see the figure in ml_extract).




$ \bigcirc$Version 1.0


Last Modification date : Thu Apr 15 08:22:05 2004


$ \bigcirc$Author


Jacques Froment, Georges Koepfler






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