Function sdfgen_lib::gen_sdf [−][src]
pub fn gen_sdf(
img: &DynamicImage,
active: &Vec<[u32; 2]>,
from: [u32; 2],
to: [u32; 2],
id: u32,
scale: u32
) -> DynamicImage
Expand description
Generates a distance field from an image and an active map (obtained from get_active()).
img is the input image,
active the white pixels in the image,
from coordinates where the reading of img starts
to coordinates where the reading of img ends
id simply an identifier for the console log. If this is not important to you just pass 0,
scale the factor of the image read
The mapping of the output is all over the place.