next up previous contents index
Next: mscarea Up: Reference Previous: ml_fml   Contents   Index

ml_reconstruct

$ \bigcirc$Name


ml_reconstruct Reconstruct image from morpho_lines of mimage




$ \bigcirc$Command Synopsis


ml_reconstruct [-i] m_image image_out



-i : use the maxvalue of the morpho_lines (default minvalue)

m_image : input mimage

image_out : reconstructed fimage




$ \bigcirc$Function Summary


Fimage ml_reconstruct (v_flag , m_image )

char *v_flag ;

Mimage m_image ;




$ \bigcirc$Description


Using the morpho_lines of m_image this module reconstructs an fimage image_out.

The background of image_out is set to the minvalue of m_image and the list of morpho_lines is read from the first to the last element. For each morpho_line the interior is set to the minvalue associated to the current line.
This allows to reconstruct exactly an image decomposed by ml_decompose with option -o 0.


If the -i flag is on, the background of image_out is set to the maxvalue of m_image and the list of morpho_lines is read from the first to the last element. For each morpho_line the interior is set to the maxvalue associated to the current line.
This allows to reconstruct exactly an image decomposed by ml_decompose with option -o 1.


To reconstruct an m_image containing isolines it doesn't matter if the -i flag is on or not.


If you have transformed the morpho_lines, you have to verify that the points are 4 adjacent and that the conventions, defined in ml_extract, are verified by the coordinates. Else the reconstruction will fail.

The program always draws the morpho_sets following the order in which the morpho_lines appear in m_image, the (background) color being defined by the -i flag.
Thus you are supposed to know the order in which the morpho_lines appear in the input of ml_reconstruct.




$ \bigcirc$See Also


llremove.


$ \bigcirc$Version 3.7


Last Modification date : Thu Jan 24 18:43:47 2002


$ \bigcirc$Author


Georges Koepfler






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