**Name**

**flstb_quantize** Quantize the Fast Level Sets Transform of a bilinear interpolated image

**Command Synopsis**

**flstb_quantize** [-l *levels*] [-o *offset*] [-s *step*] *bilinear_tree* *quantized_tree*

-llevels: Levels of quantization (Fsignal)

-ooffset: Offset of the quantization (default 0.5)

-sstep: Step of the quantization (default 1.0)

bilinear_tree: The tree of the interpolated image

quantized_tree: The tree of the quantized image

**Function Summary**

void flstb_quantize (pLevels , pOffset , pStep , pTree , pQuantizedTree )

Fsignal pLevels ;

float *pOffset , *pStep ;

Shapes pTree , pQuantizedTree ;

**Description**

The module `flstb_quantize` is used to extract the shapes at some levels
in a bilinear interpolated image.
Actually, it is based on the tree of shapes
extracted by `flst_bilinear` (see documentation for this module) and
provides with the tree of shapes associated to level lines at given levels.

The exception to this is the root which keeps its original gray level. Notice that if the values of some data points are not in the set of quantization levels, the original image cannot be reconstructed from the extracted tree.

For example, for an image with integral gray values at data points, it could be useful to extract the tree of shapes at half integral levels, since the associated level lines are likely to be more regular than the ones associated to integral levels.

**See Also**

`ll_boundaries2`, `ll_boundaries`, `ll_edges`, `ll_extract`.

**Version 1.2**

Last Modification date : Thu Jan 24 23:50:42 2002

**Author**

Pascal Monasse