SOD C/C++ API Reference - Image Processing
void sod_translate_image_channel(sod_img input, int c, float v);
Perform constant value addition on each pixel of a selected color channel unlike sod_translate_image() which process the entire image (i.e. all channels).
The target color channel starting from 0 for Red, 1 for Green and 2 for Blue in a typical RGB colorspace. Note that in a grayscale image, this value must be set to 0.
Constant value to add to each single pixel of the target color channel. This value must be set between 0..1 such as 0.7.
Checkout the introduction course, the C/C++ samples on the download page or refer to the SOD Github Repository.
sod_canny_edge_image • sod_translate_image • sod_resize_image • sod_hough_lines_detect • sod_crop_image • sod_translate_image.