Crate sdfgen_lib[][src]

Constants

INF
WHITE

Functions

create_shadow_copy

Creates a black image with the dimensions of img.

gen_sdf

Generates a distance field from an image and an active map (obtained from get_active()).

get_active

Returns a vector of the coordinates in a given image.

get_closest

Finds the closest coordinate in the give coordinate list active. Returns and array of the size of 3. If secondpass is not enabled these will all be the same ( the closest coordinate). second_pass enables the search of three closest values, instead of just one.