SOD C/C++ API Reference - Image Processing


Syntax

void sod_translate_image(sod_img input, float s);

Description

Perform constant value addition on each pixel of a given image (Image Arithmetic). If you want to process a single channel, then call sod_translate_image_channel() instead.

Parameters

sod_img    input

The input image to be processed. 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().

float    s

Constant value to add to each single pixel of the entire image. This value must be set between 0..1 such as 0.7.

Return Value

None.

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_image_draw_bboxsod_resize_imagesod_hough_lines_detectsod_crop_imagesod_scale_image.



Back