SOD C/C++ API Reference - Image Processing
sod_img sod_img_get_layer(sod_img input, int layer);
Extract a color channel from a given image.
The target color channel to be extracted 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.
Target color channel pixels are 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.
Checkout the introduction course, the C/C++ samples on the download page or refer to the SOD Github Repository.
sod_canny_edge_image • sod_grayscale_image • sod_copy_image • sod_hough_lines_detect • sod_hilditch_thin_image • sod_make_image.