This paper sets out a new representation of an image which is contra;st ind
ependent. The image is decomposed into a tree of "shapes" based on connecte
d components of level sets, which provides a full and nonredundant represen
tation of the image. A fast algorithm to compute the tree, the fast level l
ines transform (FLLT), is explained in details. Some simple and direct appl
ications of this representation are shown.