Next: , Previous: , Up: Image Processing   [Contents][Index]


Compose

Other Guile-CV procedures and methods to compose images.

Procedures

im-compose
im-compose-channels
Procedure: im-compose position alignment [#:color '(0 0 0)] img-1 img-2 …
Procedure: im-compose-channels position alignment channels widths heights [#:value '0.0]

Returns a new image or a new channel.

The valid position and alignment symbols are:

left right

top center bottom

above below

left center right

When used, the optional #:color keyword argument must come after the mandatory alignment argument and precede img-1, otherwise Guile will raise an exception. For RGB images, it is the color used to padd images passed in argument that are inferior, in width or height (depending on the position), to the biggest of them. For GRAY images, the #:color is reduced to its corresponding gray value:

(/ (reduce + 0 color) 3)

For the im-compose-channels procedure, the list of channels, widths and heights must be of equal length and equally ordered, so the nth element of widths and heights are the width and height of the nth element of channels. The optional #:value keyword argument is used to padd channels that are inferior, in width or height (depending on the position), to the biggest of them.