SOD C/C++ API Reference - Image Processing


Syntax

void sod_image_draw_circle_thickness(sod_img im, int x0, int y0, int radius, int width, float r, float g, float b);

Description

Draw a single circle with a certain thickness via the Midpoint Circle Algorithm. This function is very useful when working with the CNN/Realnet interfaces for example to mark a region of interest (i.e. face) coordinates. When done, you can save the output on disk via sod_img_save_as_png() for instance.

Typical Output

Draw some circles

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().

int    x0

The x-coordinate, in logical units of the center of the circle.

int    y0

The y-coordinate, in logical units of the center of the circle.

int    radius

The radius, in logical units of the circle.

int    width

The thickness of the circle.

float    r

Red color value in a typical RGB colorspace. This interface handle grayscale colorspace also.

float    g

Green color value in a typical RGB colorspace.

float    b

Blue color value in a typical RGB colorspace.

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



Back