SOD C/C++ API Reference - Image Processing


Syntax

sod_img sod_blend_image(sod_img fore, sod_img back, float alpha);

Description

Perform linear blending (i.e. image addition) on an input image.

Parameters

sod_img    fore

The foreground image. The image can be loaded from disk using sod_img_load_from_file(), from memory (i.e. network socket) via sod_img_load_from_mem() or dynamically created via sod_make_image().

sod_img    back

The background image.

float    alpha

Constant weight value.

Return Value

Blended image is returned in an instance of the sod_img object. Once done, you must release the memory allocated to this object via sod_free_image to avoid memory leaks.

Example

Checkout the introduction course, the C/C++ samples on the download page or refer to the SOD Github Repository.

See also

sod_canny_edge_imagesod_grayscale_imagesod_image_draw_bboxsod_hough_lines_detectsod_hilditch_thin_imagesod_make_image.



Back