Dali VM : Mosaic
Tables of Contents
|
|
|
|
|
|
- mosaic_set_right_transform
|
|
- mosaic_set_bottom_transform
|
|
|
|
|
|
|
|
|
- mosaic_check_all_connected
|
|
|
|
|
|
Allocation Primitives
mosaic_new width height
- Creates a mosaic of width and height and returns a handle to it.
mosaic_free mos
- Frees up all the memory associated with all the nodes of the mosaic.
iterator_new mos
- Creates a iterator for the mosaic mos and returns a handle to it. An iterator is
needed while creating a mosaic. Basically, it keeps track of where to add the next image
in the mosaic mos.
iterator_free iterate
- Frees up the memory associated with the iterator.
Manipulation and Query Primitives
mosaic_add_next iterate image
- Adds the image to the next position following the serpentine zigzag motion. The iterator
iterate keeps track of where to insert the next node. Returns -1 in case of error or the
mosaic is already full, otherwise returns 1.
mosaic_set_right_transform mos xpos ypos trans
- Sets the right transform of the node at location (xpos, ypos) in the mosaic mos to
value trans(which is a list of five elements)
mosaic_set_bottom_transform mos xpos ypos trans
- Sets the bottom transform of the node at location (xpos, ypos) in the mosaic mos to
value trans (which is a list of five elements)
mosaic_get_image mos xpos ypos
- Returns the BitImage associated with the node at location (xpos,ypos) in the mosaic mos.
Processing Primitives
mosaic_fill_gaps mos
- Interpolates the missing right or bottom transform at any of the nodes in the mosaic
mos.
mosaic_check_all_connected mos
- Checks whether the right and bottom links are present for each nodes for the mosaic mos.
Returns negative values depending upon the missing links, otherwise returns 1 for fully
connected mosaic.
mosaic_compute_composite mos
- Computes the composite transform for each of the node of the mosaic mos.
Last updated: 10/25/04 10:33:49 PM